-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't load object_detection.py #1
Comments
Looks like you're not getting an image from the webcam. Do you have a camera available at /dev/video0 ? |
hey @gudovskiy @mantoone Thanks for the response, I have used OPTION 2 and was able to run video.py and I am able to run yolo_example.py. I don't think there is anything wrong with openCV right now. I am pasting the full log, can you take a look at it? The problem seems happening on line 113 File "object_detection_app.py", line 113, in worker
|
@Nyceane could you paste content of frame and try calling cv2.imshow() for it? |
Hey @gudovskiy It says when I printed it. |
Found some issue, I am able to run python video.py fine, but python3 video.py can't find video source. Let me playing around it a little more. |
@Nyceane sure. Check whether opencv was installed from pip3 by runnung "pip3 list", you may want to remove pip3 version. |
hey @gudovskiy After reinstalling and installing different cameras, i finally got both examples running, but neither of them are finding targets using both YoloTiny and YoloSmall also, object_detection.py is running at about 1 frame a second with an error on line 73, which is comparing an array of nans (probs) to a float (threshold) yolo_example is having same problem on line 40, np.array(probs>=threshold let me know if you ran into same trouble. |
@Nyceane looks like you are using YOLO small which is not producing proper results due to some reason. Only YOLO tiny is working now. |
@gudovskiy yoloTiny is not producing any results either in both cases, no errors tho |
@Nyceane strange, mine is working even on Raspberry Pi. |
Make sure the caffemodel and the prototxt files have the same name! In this case yolo_tiny.caffemodel and yolo_tiny.prototxt when you compile (python3 ./mvNCCompile.pyc data/yolo_tiny.prototxt -s 12). |
@pascalpm, they are same name |
@gudovskiy @Nyceane At what FPS does it run ?? |
@ashwinnair14 ~5-6 FPS with USB3 |
@Nyceane Did you solve your problem? I meet the same problem, python3 video.py can't find video source. How did you solve this problem? |
Hitting the exact same error |
Hi,
Now, got it to work Detection error is pretty high. Thanks for your effort in putting together this project and sharing with every one. |
@thepaintedsnipe thank you. other guy solved the same way #4 |
@gudovskiy Do you have the file for the reading the video stream from a PiCamera instead of cv2.VideoCapture? Or should the videoCapture work on Pi as well using the camera module on its own? |
@gotibhai as I remember, PiCamera also worked using openCV. I tried its own driver and didn't notice any difference. So, both should work. |
I met the same error like you ,I cannot get the bounding box on RPI 3 too,I‘m sure there is no problem with the program,because it works well on pc with the same graph. |
@gudovskiy Did the code work as well on the pi as it did on a development host? It's not working well on the pi for me. Even yolo_example.py is not working on the pi. @HEUzhouhanwen Yeah, My error is a little different. I got it working on the pi hooked on to the monitor. I modified the file a bit to use PiCamera module. Everything worked fine there but then I hooked up an adafruit PITFT 2'4 screen to the pi to show the results there and it doesn't work. The boxes are not showing properly. I'm always getting this same box with 0.05 probability. |
@gotibhai for PI the difficulty was to install OpenCV. Apart from that everything should work fine but slower due to USB2.0 |
@gudovskiy Ahh that sucks. OpenCV worked me but it's not predicting properly at all. |
@Nyceane did you manage to solve the problem of it not predicting? |
@Nyceane I solve the problem ,I try all the way to find the error but failed.Today I notice the pc(it can get the bounding box) use the previous version of api, the I install the previous NCS api,so guess what ? I get the bounding box!!!! |
I am still getting this error. [DEBUG/MainProcess] created semlock with handle 140640753795072 Can anyone kindly help me out with this. Thanks! |
Hey, I am getting an error loading this.
Let me know if you can help
The text was updated successfully, but these errors were encountered: