I am having running some python code under OpenVINO some of the OpenCV APIs are crashing.
the following API crashed cv2.destroyAllWindows()
I got the following error message:
Traceback (most recent call last):
File "C:\Python_venv\yolo\yolo_object_detection.py", line 115, in <module>
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-z5gfhs5a\opencv\modules\highgui\src\window.cpp:645:
error: (-2:Unspecified error)
The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support.
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure
script in function 'cvDestroyAllWindows'
I'm certain that I initialized the OpenVINO vars by calling setupvars.bat every time I open the console.
Does anyone have any idea how to fix this problem? If I have to rebuild OpenCV, can anyone provide the instructions as I am new to OpenVINO and still figuring things out.
Thank you in advance.
I'm using Anaconda myself with opencv 4.4.0 Openvino and it is validated to works fine.
Please help to ensure that you had set it up properly.
I recommend you to ensure the pre-requisite in your system first:
After you already done that, you can proceed to next steps.
create a virtual env : conda create --name
(then proceed the next steps of installation here, as in official Openvino documentation provided below)
This is Openvino official documentation that shows step by step installation process:https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.htm...
I'm not using Conda. The OpenVINO installation guide, guided me to install Python 3.7. and that is what I have been using.
I can share my code with you, nothing proprietary yet.
I trained my model using yolov3 on Google Colab and now trying to use OpenVINO environment to detect the obj.
Please let me know how you can help maybe a Zoom or Webex session and I can also show to you.
Any Python version between Python 3.6 - 3.8 64-bit should do it.
Please note that you need to convert your model to IR first before you able to use it with Openvino.
This is the official documentation on how to do it: https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_tf_specific_...
And also a step by step tutorial's video on how to convert and use the IR with Openvino:
Note: You can do this with or without Anaconda as long as you have a compatible Python version and other pre-requisite as stated in https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.htm...
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question