-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 read "model_file" with object_detection_demo from a Docker image on a Raspberry Pi 4 #2042
Comments
@jomoengineer It seems you apply models's .BIN file instead of image or video when using |
@vladimir-dudnik
Am I doing something wrong here? I can run the openvino_fd_myriad.py script and it does not fail, so I am assuming the env is okay.
It would be helpful if there were an examples showing the files used which are available via downloader.py script like there is/was for "object_detection_demo_ssd_async" demo. Perhaps update the "Building Open Model Zoo Demos on Raspberry Pi*" Support page. |
I think what might be happening is that I copy and pasted the example from the web page to the console which added unseen characters. If I remove the "-i" and retype it , it seems to be fine. This was done on a non Docker instance as well. I had a similar issue with the git '--depth 1' option when cloning the Open Model Zoo example from the "Install OpenVINO™ toolkit for Raspbian* OS" page but that might be another issue post. However, I did follow the OpenVINO install from "Install OpenVINO™ toolkit for Raspbian* page, and combined with what is shown on the Raspberry Pi Docker, I tried the 'object_detection_demo' but ran into another issue. Perhaps I should open another issue for this. Error.
|
Okay, I guess person-attributes-recognition-crossroad model is not supported with the object_detection_demo according to the models.lst. I ran with the face-detection-adas model and it did not fail but still gets the GStreamer warning.
|
I tried the same exercise within the Raspberry Pi Docker image and I still get the " Can't read " error.
The file appears to be fine.
|
@jomoengineer not sure what may cause this issue. Open Model Zoo demos use OpenCV to read media files. Could you please try any of OpenCV samples with this video file? @eizamaliev @Wovchena @fzhar do we hide error messages from underlying OpenCV VideoCapture, so that become difficult to troubleshoot issues with demo input access? @terfendail @alalek could you please consult when we may meet messages, like below on RasperryPi board?
|
In the Raspberry Pi Docker container, I built the opencv samples as shown in the opencv samples README,and ran the 'openvino_sample_peopledetect' sample using the same .mp4 file and it produced the error listed below. ReadMe referenced:
Hopefully I did that right. |
@jomoengineer This error message basically says that sample is using OpenCV image reader (imread function), it is not able to open video files. For video files OpenCV has VideoCapture object, I'm not sure if there is relevant sample in OpenCV which comes precompiled with OpenVINO package. Demo in OMZ determine what type of file used as an input and call appropriate OpenCV objects, like image reader for images and VideoCapture for video file or USB camera. OpenCV VideoCapture do not implements video decoder by itself, instead it call to underlaying media backend, which OpenCV detects at initialization time. On Linux systems it might be ffmpeg library or gstreamer. I suspect that on RaspberryPi something wrong with media backends (might be it can't configure gstreamer or can't initialize ffmpeg library by some reason). Unfortunately we do not see exact error message from OpenCV, that is why I ask to try to run some OpenCV sample which can open video file, to ensure that it is able to work with media backends available on the system. |
Hello. Speaking about openvino_sample_peopledetect, you should use this form of command line: Let's stick to open model zoo samples, they are easier to work with. I've tried face-detection-adas on that video and it found nothing (due to perspective of camera). You might want to try YOLO-V3 for instance, it gives more interesting results: ./object_detection_demo -m ../../../../tools/downloader/public/yolo-v3-tiny-tf/FP16/yolo-v3-tiny-tf.xml -i /home/fzharino/Videos/person-bicycle-car-detection.mp4 -at yolo -r (put proper path to converted yolo-v3-tf or yolo-v3-tiny-tf models) Please check if this example works fine, if it won't show any result - I'll debug the problem deeper. |
@fzhar This is the result of running the openvino_sample_peopledetect as you show. I do not believe this is correct.
With regards to the "object_detection_demo", this runs on the Raspberry Pi 4 proper but with the GStreamer warnings. I'll try the Yolo example but not sure what the point is. |
And speaking about docker problem (sorry I missed it in the first message). @jomoengineer, do you have GStreamer or FFMPEG installed in docker image ? Do you use some standard image (please provide a link where you've taken it from, to make sure) or is it custom-built ? |
@fzhar The instructions from this link is what I followed to install the Docker image on the Raspberry Pi 4: |
@jomoengineer, I'll add verbose output for video reading utilities to get better logs and will come up with new version to try. |
Just a note, perhaps another topic, on the Raspberry Pi 4 proper, the 'openvino_sample_peopledetect' sample does run and detects people but with the GStreamer warnings as well:
Also, looking at the help, there is no indication that the use of '-v=" is required to run this, just '-v' or '--video',
|
@jomoengineer have you resolved that issue? OpenCV does not decode video data by itself, it use some media backends instead. And we do not know what media backends available on your system. Could you try to play this .MP4 file with any system application? cc @alalek @mshabunin @alvoron FYI |
@vladimir-dudnik This issue is over a year old and not something I have come back to since. |
I met the same issue on x86 arch. Seems that OpenCV cannot open video file as expected. Does anyone resolve it? |
@vadymeng0 Not sure that is the same issue. What video file can't be opened by OpenCV on x86 system? Note, OpenCV does not decode video by itself, it use some media framworks as backends instead. For example, on Windows it could be Microsoft Media Foundation or ffmpeg (downloaded separately). On Linux it can be gstreamer with its plugins. In any case it not Open Model Zoo or OpenVINO issue. If you can share this video file, some of OpenCV experts might help you to rootcause the problem. |
I am attempting to run a Open Model Zoo example from a OpenVINO Docker image on a Raspberry Pi 4 but each attempt results in "Can't read" the input file.
I've downloaded the models using the downloader.py script and placed then in a 'models' folder under the default user folder but I can not seem to get the demo to work
This is how I am running the demo and the output.
Most examples I have seen show the use of a "object_detection_demo_ssd_async" demo, however this is not available with the latest Release of Open Model Zoo demos.
Am I running this correctly?
The text was updated successfully, but these errors were encountered: