adjivas / motion_detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Motion Detection

badge

This service will captures a MJPEG video and produces a MQTT's motion messages.

It's was designed for the BazzDoorbell project.

What is in this crate?

This service is a Rust axiomatic solution based on the image-compare/image crates.

Play with it!

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

Test the performences

How to run the benchmarks:

cargo bench

How to run FlameGraph:

cargo bench --all-features --bench image -- --profile-time=5

About

License:GNU Affero General Public License v3.0


Languages

Language:Rust 99.2%Language:Shell 0.8%