digitalbrain79 / darknet-nnpack

Darknet with NNPACK
Other
305 stars 75 forks source link

use pi camera for detection on raspberry pi 4 #37

Open aminatamima opened 4 years ago

aminatamima commented 4 years ago

Hello could someone help on how i can use the project to detect from a pi camera ? Please Thank you

aminatamima commented 4 years ago

Could someone help please ?

josilvacastillo commented 4 years ago

with darknet original repo: ./darknet detector demo cfg/coco.data cfg/yolov3-tiny.cfg yolov3-tiny.weights

in this repo you should build darknet before with opencv=1 in Makefile (install opencv before) make clean make i did this before, the cámera works, but the detector don't works.

aminatamima commented 4 years ago

I meant with raspberry pi-caméra, this command doesnt work.

But i found and tested this link http://funofdiy.blogspot.com/2018/08/deep-learning-with-raspberry-pi-real.html with a python script for pi-cam live detection. It works but without opencv =1 :( . got error opencv not found even if i have opencv well installed

josilvacastillo commented 4 years ago

i tested that branch and its nice, the python script display the predictions.png image in a loop. when opencv=0 its create a predictions.png but its not display. i think that the problem is in the version of opencv, its need "python-opencv" from apt, but im build from source the 3.4.6 version

Alexismichel commented 4 years ago

If I take a picture with raspberry camera and execute ./darknet detector test cfg/coco.data cfg/yolov3-tiny.cfg yolov3-tiny.weights data/my_picture.jpg, the program detect well. If I try detect on live video, ./darknet detector demo cfg/coco.data cfg/yolov3-tiny.cfg yolov3-tiny.weights, there is no detection... @josilvacastillo have you found any solution to get the nnpack-darknet working on raspberry pi 4 ?

smallworld-network-wupeng commented 4 years ago

If I take a picture with raspberry camera and execute ./darknet detector test cfg/coco.data cfg/yolov3-tiny.cfg yolov3-tiny.weights data/my_picture.jpg, the program detect well. If I try detect on live video, ./darknet detector demo cfg/coco.data cfg/yolov3-tiny.cfg yolov3-tiny.weights, there is no detection... @josilvacastillo have you found any solution to get the nnpack-darknet working on raspberry pi 4 ?

I have same problem ,this looks very weird WX20200225-220907

Jaswar commented 4 years ago

Hello, Has anyone been able to solve the problem of not having any detections when using ./darknet detector demo?

whgsh commented 3 years ago

same problem here...using ./darknet detector demo, no detection