paul-pias / Object-Detection-and-Distance-Measurement

Using yolov3 & yolov4 weights objects are being detected from live video frame along with the measurement of the object from the camera without the support of any extra hardware device.
348 stars 118 forks source link

Wrong output rpi #23

Open mostafarahim opened 4 years ago

mostafarahim commented 4 years ago

the output has no detection as you can see

python3.5 /home/pi/o/object_detection.py Loading network..... Network successfully loaded [INFO] elasped time: 4.74 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.41 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.45 [INFO] approx. FPS: 0.2 [INFO] elasped time: 5.33 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.46 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.11 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.89 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.57 [INFO] approx. FPS: 0.2 [INFO] elasped time: 8.39 [INFO] approx. FPS: 0.1 [INFO] elasped time: 7.41 [INFO] approx. FPS: 0.1

paul-pias commented 4 years ago

That's weird. There is no such issues in my end. However, what I can see from your output is that your FPS is too low which may cause the problem. I would suggest you debug the code line by line to find out the point from where the code may cause an issue. Another approach can be cythonizing the .py files so that you can run your code in c/c++ using GCC which will results in much better FPS alias better performance on RPI.

frostybaby commented 3 years ago

the output has no detection as you can see

python3.5 /home/pi/o/object_detection.py Loading network..... Network successfully loaded [INFO] elasped time: 4.74 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.41 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.45 [INFO] approx. FPS: 0.2 [INFO] elasped time: 5.33 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.46 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.11 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.89 [INFO] approx. FPS: 0.2 [INFO] elasped time: 4.57 [INFO] approx. FPS: 0.2 [INFO] elasped time: 8.39 [INFO] approx. FPS: 0.1 [INFO] elasped time: 7.41 [INFO] approx. FPS: 0.1

Hello @mostafarahim! I'm also quite having a hard time since I'm using Raspberry Pi instead of Windows. Were you able to successfully run the codes in here?