error: (-215:Assertion failed) ! ssize.empty() in function ‘resize‘
1. Cause of the problem:
(1) The image path is correct, and does not contain Chinese, but the image path is not the whole path
(2) the image path is wrong, and no image is found
(3) the image path contains Chinese, and the function reports an error
2. Solution:
step by step check
(1) whether the file path is correct
(2) whether it is an absolute path
(3) whether the file name contains Chinese characters
If there is no way to solve, more detailed steps reference! Empty() in function ‘CV:: cascade classifier’
the errors are different, but the solutions are similar.
Read More:
- OpenCV error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor‘
- cv2.error: OpenCV(3.4.2) error: (-215:Assertion failed) !empty() in function ‘detectMultiScale‘
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- error(-215) !empty() in function detectMultiScale solution
- (-215:Assertion failed) 0 <= contourIdx && contourIdx < (int)last in function ‘cv::drawContours‘
- RT-thread assertion failed at function:rt_application_init
- Assertion failed: Assertion failed on expression: ‘pred(* previous, *i)’
- Solve the problem of “error empty block statement no empty” in the console (Vue project)
- Unity 3D – assertion failed: assertion failed on expression: ‘! Getmaineditorwindow()’ error
- Information contained in Debug Assertion Failed of Microsoft Visual C++ Runtime Library
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- Error: (- 215: assertion failed)
- XML tag has empty body less… (Ctrl+F1) Reports empty tag body. The validation works in XML / JSP
- [Solved] Unity Error: Assertion failed on expression: ‘m_ErrorCode == MDB_MAP_RESIZED
- VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
- Several methods of deleting all empty lines in text under Linux
- PCL Programming Notes — assertion ` PX! = 0 ‘failed
- How to empty a whole line in latex (simple and effective)