ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
412 stars 128 forks source link

Feature Request: Include support for Google Coral USB Accelerator #283

Closed jshank closed 4 years ago

jshank commented 4 years ago

I solemnly swear that I have read the readme and all fantastic supporting documentation

Event Server version

5.15-Docker

Hooks version

5.15.5

FYI that command should be python3 -c "import zmes_hook_helpers as h; print (h.__version__)" for the docker version based on dlandon/zoneminder

The version of ZoneMinder you are using:

v1.34.16

What is the nature of your issue

Enhancement

Details

Would it be possible to enhance/modify the machine learning hooks to utilize the Google Coral USB Accelerator/TPU?

Frigate has similar ML hooks to this project but natively supports TPU devices instead of requiring costly and power hungry GPUs to handle more than 3 video streams. Adding TPU support to Docker is much simpler by passing through the /dev/bus/usb vs the sordid history of Docker and NVIDIA GPU integration.

Why not just use Frigate then? It's because ZMES provides per-monitor customization in the objectconfig.ini, native integration with Zoneminder and the fantastic ZMNinja.

There are plenty of object detection examples in the Frigate repository and face detection examples are found in the goruck/edge-tpu-servers repository.

I'm happy to provide you the hardware if you'd be interested in adding support.

Thanks!

pliablepixels commented 4 years ago

Definitely something I'd like to do. It's not the hardware that is the issue, it is available time. If someone wants to start, I can help. It may be a while before I dive in myself.

pliablepixels commented 4 years ago

done, will be released in a while. Lots of breaking changes in 6.0. See https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html (5.16 will become 6.0)