4 ms·
I'm looking for something to run on a Raspberry Pi, to detect humans on a security camera. The built-in camera software has false triggering, esp. on windy days
by Tempest1981 6y ago
I'm looking for something to run on a Raspberry Pi, to detect humans on a security camera. The built-in camera software has false triggering, esp. on windy days.
When looking at these projects, how do I figure out what hardware they're aimed at? This one mentions NVidia/CUDA.
Is there any sort of hardware abstraction layer that YOLO or R-CNNs can operate on? Can I use any of this code (or models) for my R-Pi?
- dmm 6y agoChezck out the Frigate project. It uses the Coral tpu accelerator which could be used with the rpi. https://github.com/blakeblackshear/frigate https://github.com/blakeblackshear/frigate
- w_t_payne 6y agoYou might want to investigate the Movidius Neural Compute stick (which you can use with a RPi), or the Nvidia Jetson Nano, which has a lot more oomph.
- 8fingerlouie 6y agoI use the Movidius NCS and it's pretty much the optimal solution for light OpenCV work. It draws very little power, but as the Pi itself is powered by USB, don't expect to run much else off of USB on it. I use it in the exact same scenario, a Raspberry Pi (Zero W) with a camera with motion detection and notifications on movement, my implementation may be specific though. Each of my Raspberry Pi cameras runs motion (https://motion-project.github.io/index.html https://motion-project.github.io/index.html), and recorded files are stored on a NFS share. Each camera has it's own directory within this share (or rather each camera has it's own share within a parent directory), and the server then runs a python script that monitors for changed/added files, and runs object detection on the newly created/changed files. If a person is detected in the file, it then proceeds to create a "screenshot" of the frame with the most/largest bounding box, and sends a notification through Pushover.net including the screenshot with bounding box. There implementation is not quite as simple as described here, i.e. i use a "notification service" listening on MQTT for sending pushover notifications, but the gist of it is described above. Edit: I should probably clarify that my cameras are based on Raspberry Pi Zero W. They have enough power to run motion at 720p - at around 30fps. Not great, but good enough for most applications. I've since migrated most to Unifi Protect instead. A little higher hardware cost, a lot better quality :)
- dekhn 6y agoI played with the Movidius stick for a bit but it didn't seem like Intel was committed to Movidius tech in the long term. So I'm curious what the "next" thing will be.
- 8fingerlouie 6y agoThey were/are committed enough to put out a second version, and I guess these things are still pretty much a niche market, I mean they specifically target embedded applications. I think the next thing, which is already happening, is embedded “AI” processors on SOCs. Apple is doing it with their A12 processors, and it’s probably only a question of time before you can purchase “general purpose” ARM chips with “AI” capabilities.
- earleybird 6y ago'round about 2004 I built a pentium based 'motion' recorder. It kept a circular buffer of images that were spooled to the output stream when motion was detected. Motion was determined by optical flow iirc - the OpenCV call returned an array of blob center points, size, and velocity vector. If the blob was large enough and the velocity vector made sense (eg, horizontal as in walking or driving at an appropriate magnitude) it was considered motion. Reduced leaf flutter, branch waving false positives to effectively zero. No ML required. ML is too liberally applied without understanding how or why it has triggered. I've lost track of the original quote but the spirit of it is: "It's artificial intelligence while we don't understand it. Once we understand it, it's computer science"
- Tempest1981 6y agoInteresting, I may try that out of curiosity. Although seeing Mask R-CNN demos is pretty intriguing, albeit expensive. I remember a professor saying, "The definition of AI is: something that doesn't work"
- mycall 6y agoI found Sipeed MaixCube [1] to be pretty good at YOLO, lots of tech for only $25. [1] https://www.seeedstudio.com/Sipeed-Maix-Cube-p-4553.html https://www.seeedstudio.com/Sipeed-Maix-Cube-p-4553.html
- rsaxvc 6y agoYou can use darknet with NNPACK on the RPis