my solution to this problem is
file path is correct, the image format is PNG, and the required format in the code is JPG, converting PNG to JPG will solve the problem.
Read More:
- cv2.error: OpenCV(3.4.2) error: (-215:Assertion failed) !empty() in function ‘detectMultiScale‘
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- error: (-215:Assertion failed) !ssize.empty() in function ‘resize‘
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- (-215:Assertion failed) 0 <= contourIdx && contourIdx < (int)last in function ‘cv::drawContours‘
- opencv cvtColor dtype issue(error: (-215) )
- Undeclared identifier CV in opencv4.2.0_ WINDOW_ AUTOSIZE
- error(-215) !empty() in function detectMultiScale solution
- ./src/router/index.js Module not found: Error: Can‘t resolve ‘@/views/tet_demo‘ in ‘D:\admin\src\rou
- cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-buil
- Solve the problem of “error empty block statement no empty” in the console (Vue project)
- RT-thread assertion failed at function:rt_application_init
- Opencv’s imread() function returns null when reading images
- Opencv, CV2. Puttext() usage
- (-2:Unspecified error) could not find a writer for the specified extension in function‘cv::imwrite_
- Unity 3D – assertion failed: assertion failed on expression: ‘! Getmaineditorwindow()’ error