Answers for "OpenCV(3.4.3) /opt/opencv_contrib/modules/ximgproc/src/structured_edge_detection.cpp:432: error: (-215:Assertion failed) modelFile.isOpened() in function 'StructuredEdgeDetectionImpl'"

20

error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

This error happened because the image didn't load properly.
So you have a problem with the previous line cv2.imread my suggestion is :

Check if the images exist in the path you give

Check the count variable to see if it has a valid number
Posted by: Guest on March-09-2020

Code answers related to "OpenCV(3.4.3) /opt/opencv_contrib/modules/ximgproc/src/structured_edge_detection.cpp:432: error: (-215:Assertion failed) modelFile.isOpened() in function 'StructuredEdgeDetectionImpl'"

Browse Popular Code Answers by Language