This service will captures a MJPEG video and produces a MQTT's motion messages.
It's was designed for the BazzDoorbell project.
This service is a Rust axiomatic solution based on the image-compare/image crates.
How to configure the environment:
cp env.example.sh env.sh
$EDITOR env.sh
source env.sh
How to compile:
cargo build --release
How to run the service:
cargo run
How to cross compile:
cross build --target x86_64-unknown-linux-gnu --release
cross build --target armv7-unknown-linux-gnueabihf --release
How to run the benchmarks:
cargo bench
How to run FlameGraph:
cargo bench --all-features --bench image -- --profile-time=5