-
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
Cannot use the openvino's pre built opencv #94
Comments
@dkurt, any ideas? |
@sovereignscout, Please show the output of the following python commands from your script: import cv2 as cv
print(cv.__file__) |
Hi. I get same error when I use bin and xml files in readFromModelOptimizer function in openvino's version of opencv built in openvino. I also build opencv 4.0.0-openvino and opencv 4.1.0 with |
CMake output should contain these lines:
These OpenCV versions are not able to work properly with IE from OpenVINO 2019R1. |
@farshadopencv, Please analyze the CMake summary. It contains all the information about your build: getBuildInformation |
@alalek @dkurt Thanks for your help. Now I can build opencv 4.1.0 with IE backend. But now I encounter another problem. when I pass my bin, xml files of model into object_detection.cpp script, I have following error: OpenCV(4.1.0) Error: Assertion failed (> Failed to initialize Inference Engine backend: Unsupported primitive of type: PriorBoxClustered name: PriorBoxClustered_5 I changed object_detection.cpp to avoid parser as follows: **#define _CRT_SECURE_NO_WARNINGS #include #include <opencv2/dnn.hpp> #include "common.hpp" std::string keys = using namespace cv; float confThreshold, nmsThreshold; void postprocess(Mat& frame, const std::vector& out, Net& net); void drawPred(int classId, float conf, int left, int top, int right, int bottom, Mat& frame); void callback(int pos, void* userdata); std::vector getOutputsNames(const Net& net); int main(int argc, char** argv)
} void postprocess(Mat& frame, const std::vector& outs, Net& net)
} void drawPred(int classId, float conf, int left, int top, int right, int bottom, Mat& frame)
} void callback(int pos, void*) |
Similar issue: opencv/opencv#14409. It looks like there is something wrong with Windows package. @farshadopencv please check the solution from opencv/opencv#14409 (comment). It looks like your CPU might also don't support AVX2. |
@farshadopencv thank you give a example!!! I ran successfully on "Release" mode |
Hello, When I input the command " sudo python3 face_detection.py", it tells me that : Traceback (most recent call last): Have you ever come across a problem like this? Any good Suggestions? thank you! |
This means that used OpenCV binaries are not from OpenVINO package (
Don't use |
Hello @alalek,
|
hi @farshadopencv , I wish you can help me |
|
Hello. I am trying to use open vino's version of opencv which is already build with IE backend but i am unable to do so. Whenever i try to load .xml and .bin files of the model in the cv.dnn.readNet , i get the following error:
Traceback (most recent call last):
File "facedetection.py", line 16, in
'pruned_mobilenet_reduced_ssd_shared_weights/dldt/face-detection-adas-0001.xml')
cv2.error: OpenCV(4.0.0) /io/opencv/modules/dnn/src/dnn.cpp:2538: error: (-2:Unspecified error) Build OpenCV with Inference Engine to enable loading models from Model Optimizer. in function 'readFromModelOptimizer
The installation guide says to source the /opt/intel/openvino_2019.1.094/bin/setupvars.sh script in order to update the $OpenCV_DIR variable which I did but it didnt work. When i echo the variable, it points to the following path:
/opt/intel/openvino_2019.1.094/opencv/cmake
I even tried to sym link the cv2.so file from /opt/intel/openvino_2019.1.094/python/python3.5/ directory to the /usr/local/lib/python3.5/dist-packages/ directory but still it doesnt work.
Can you'll please enlist the exact steps to be taken or where i am going wrong? Thanks in advance.
The text was updated successfully, but these errors were encountered: