- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Bob T,
I'm not sure what you mean when you say "recompile". Yes the samples and demos have to be built but this is true regardless of platform (true for CPU, GPU and VPU also).
Maybe you're talking about re-compiling OpenCV from scratch ?
raspbian-stretch Inference Engine backend doc will help you with various tasks.
But you will want to start with the Raspbian OpenVino Install Guide
Though we've tested only on RPI 3 there is no reason it shouldn't work on RPI 4. Please try it and post questions here should you get stuck.
Thanks !
Shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Bob T.
Indeed you are right. I stand corrected.
Shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like Jesus was able to help a customer in this IDZ Post regarding RPI4 and OpenVino
Hope it helps,
Thanks,
Shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shubha,
That links seems to be broken.
Are there any updated/consolidated guides from Intel on how to recompile OpenVino 2020.4 for the pi4? Or simply how to update the OpenVino setup to use an existing compiled OpenCV 4.1 that's already on the pi4?
Here's my problem:
I am successfully using the 2020.4 download on my raspberry pi 4 with a USB camera:
However, when I pass a RTSP url into cv2.VideoCapture() I get the following error:
=========================
>>> import cv2
>>> print (cv2.__version__)
4.2.0-openvino
>>> cam = cv2.VideoCapture("rtsp://admin:password@192.168.1.37/onvif1/")
[ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (1759) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Unauthorized
[ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ERROR:0] global ../opencv/modules/videoio/src/cap.cpp (116) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.2.0-openvino) ../opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):
=========================
The RTSP url is correct, it works perfectly with vlc on the same pi 4.
On the same pi 4, if I do NOT run "~/openvino/bin/setupvars.sh" then I am able to view the RTSP feed using the same python3 code i.e.:
>>> import cv2
>>> print (cv2.__version__)
4.1.0
>>> cam = cv2.VideoCapture("rtsp://admin:password@192.168.1.37/onvif1/")
<VideoCapture 0xb6743a80>
>>>
The only obvious difference is the cv2.__version__ :
4.2.0-openvino (works for USB camera but not RTSP) vs 4.1.0 (works for both)
Does anyone know why running /openvino/bin/setupvars.sh causes openVINO to fail with just RTSP streams? Is this a bug with Intel's openVINO distribution?
And how could I resolve the various gstreamer errors thrown with RTSP urls:
OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Unauthorized
OpenCV | GStreamer warning: unable to start pipeline
The issue is specific to RTSP streams.
Many thanks
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page