Page 1 of 1

YOLO / live object detection with events controlled by Domoticz

Posted: Wednesday 07 June 2017 12:37
by Teknor
Hi all - I want to share some thoughts with you.

YOLO is an open source object identification software which works on live stream video. You can see plenty of demo videos on Youtube.

https://github.com/pjreddie/darknet/wik ... -Detection

Image

It would be awesome to integrate YOLO with controller functionality for object detection in Domoticz, when you i.e. can set up different alerts or rules based on what kind of objects that are identified in the video stream from a webcam/surveillance cam (car, boat, wild animal, dog, cat, persons). Functionality for counting different objects types passing the video strem per time unit etc.

This will take DIY survailance to a new level :!:

Image

This is beyond my development skills, but would very much like to hear you experts' opinions and thoughts about this. :D
Spoiler: show
https://pjreddie.com/darknet/yolo/

Real-Time Detection on a Webcam

Running YOLO on test data isn't very interesting if you can't see the result. Instead of running it on a bunch of images let's run it on the input from a webcam!

To run this demo you will need to compile Darknet with CUDA and OpenCV. Then run the command:

./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights
YOLO will display the current FPS and predicted classes as well as the image with bounding boxes drawn on top of it.

You will need a webcam connected to the computer that OpenCV can connect to or it won't work. If you have multiple webcams connected and want to select which one to use you can pass the flag -c <num> to pick (OpenCV uses webcam 0 by default).