Cloud native motion detection microservice
Go to file
Lauri Võsandi 2ab39f879d
continuous-integration/drone Build is passing Details
Add `DEBUG` environment variable to toggle Sanic debugging
2022-02-27 14:16:33 +02:00
config Improved error handling 2022-02-13 19:53:47 +02:00
.drone.yml Initial commit 2022-02-12 20:44:39 +02:00
.flake8 Fix formatting and add linters 2022-02-16 22:33:08 +02:00
.gitignore Initial commit 2022-02-12 20:44:39 +02:00
.gitlint Fix formatting and add linters 2022-02-16 22:33:08 +02:00
.pre-commit-config.yaml Fix formatting and add linters 2022-02-16 22:33:08 +02:00
Dockerfile Refactor 2022-02-25 23:07:03 +02:00
README.md Refactor 2022-02-25 23:07:03 +02:00
camdetect.py Add `DEBUG` environment variable to toggle Sanic debugging 2022-02-27 14:16:33 +02:00
docker-compose.yml Refactor 2022-02-25 23:07:03 +02:00
mongo-init.sh Improved error handling 2022-02-13 19:53:47 +02:00

README.md

Cloud native motion detection microservice

This software implements the motion detection portion of well known motion-project as a microservice. For the tiling counterpart see camera-tiler repository.

In a nutshell:

  • It brings the MJPEG stream into the cluster
  • Performs highly optimal JPEG DCT coefficient based motion detection without actually decoding the JPEG frame to a bitmap
  • WIP: Writes events to MongoDB
  • WIP: Uploads screenshots to S3
  • Exposes endpoint for distributing MJPEG stream inside the cluster, eg by the camera-tiler
  • Exposes endpoint for inspecting DCT blocks where motion has been detected

Developing

Bundled docker-compose.yml brings up:

To manually trigger event:

docker kill -sUSR1 camera-motion-detect_camdetect_1