- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I downloaded several versions in the past, but now can't seem to find any. The newest of the previous ones I tried was 2021.4, which like all the prior ones would not work with FFMPEG. I think because it was built with a version older than my raspberry pi has. I wanted to try 2022.1 but am unable to find it (or older ones). I went here: Install OpenVINO™ Runtime for Raspbian OS — OpenVINO™ documentation — Version(2022.1)
The link for raspbian goes to a common page for 2022.1 and 2022.1.1 and has a download path only for 2022.1.1 (which doesn't have opencv so is of no use to me). Navigating to 2022.1 in the storage site has no debian or raspbian files. Changing the version on the first page to 2021.4, it says to download l_openvino_toolkit_runtime_raspbian_p_<version>.tgz from https://storage.openvinotoolkit.org/repositories/openvino/packages/ and again, the raspbian file does not exist.
I was hoping to try 2022.1 to see if that would work.
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got this imshow problem on pre-built ones and my cross-compile one that worked, but do not get it from the plain opencv and my first attempt with openvino that got the bad_weak_ptr error. So it isn't a bug in opencv or even a problem with compiling with openvino, but either cross-compiling or the cmake options (I need to compare and try experiments with that yet). I don't think the discussion you linked is the same problem. My issue, imshow should by default bring up the window with WINDOW_AUTOSIZE but the cross-compiled build gets the window with WINDOW_NORMAL instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul,
Does it take effect if manually change to WINDOW_AUTOSIZE?
If no, you can try with resizeWindow().
Regards,
Peh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A namedWindow function before the imshow can set the attribute. All windows that could exist can't all be done at the start because if no imshow is done it brings up a blank window (that changes to the image and correct size on the imshow). If there was a way to just set the default, that would be easy. But the default should be WINDOW_AUTOSIZE anyway. So if I can't get a build that fixes this the workaround is adding the namedWindow in front of each imshow in the code. I haven't had the time to look at the cmake options yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul,
Sorry for my late response. I was figuring this out these few days and hard work was not in vain.
Follow back the instructions in the previous reply and change OpenCV version to 4.5.5-openvino-2022.1.0 in Step 3.
git clone --recurse-submodules -b 4.5.5-openvino-2022.1.0 https://github.com/opencv/opencv.git
I’ve validated that this OpenCV version is compatible with OpenVINO 2021.4.2, which DNN API is working well and cv2.imshow also using the default window flag, WINDOW_AUTOSIZE.
Regards,
Peh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know why this works, but it does--Thanks!
An additional change is step 7: the dist-packages in the path changed to site-packages
With that my tests worked--used ffmpeg and the NCS2 and imshow had the right behavior.
Thanks for all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul,
Glad to hear that it works to you.
This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Regards,
Peh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »