When I did the background difference in opencv,
OpenCV Error: Assertion failed(m.dims>=2) in Mat, file/build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/core/src/matrix.cpp, line 269
Traceback (most recent call last):
File "sabun5.py", line 16, in <module>
img_m=cv2.threshold(img_df, 50, 255, cv2.THRESH_BINARY)[1]
cv2.error:/build/opencv-ISmtkH/opencv2.4.9.1+dfsg/modules/core/src/matrix.cpp:269:error:(-215)m.dims>=2 infunction Mat
The error occurred.What does this error mean?The programming language is Python.
python opencv
After correcting the path notation in the image, it was successful.
This post was edited based on @user7341567's Comment and posted as Community Wiki.This post was edited based on @user7341567's Comment and posted as Community Wiki.
© 2024 OneMinuteCode. All rights reserved.