https://github.com/adjivas/motion_detection
https://github.com/adjivas/motion_detection
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/adjivas/motion_detection
- Owner: adjivas
- License: agpl-3.0
- Created: 2023-04-20T16:02:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T09:59:38.000Z (over 2 years ago)
- Last Synced: 2025-02-05T08:16:39.854Z (over 1 year ago)
- Language: Rust
- Size: 265 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Motion Detection

This service will captures a MJPEG video and produces a MQTT's motion messages.
It's was designed for the [BazzDoorbell](https://github.com/guino/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:
```shell
cp env.example.sh env.sh
$EDITOR env.sh
source env.sh
```
How to compile:
```shell
cargo build --release
```
How to run the service:
```shell
cargo run
```
How to cross compile:
```shell
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:
```shell
cargo bench
```
How to run FlameGraph:
```shell
cargo bench --all-features --bench image -- --profile-time=5
```