error: (-215:Assertion failed) size.width> 0 & & size.height> 0 in function ‘CV ::imshow’
Solution:
change the name and path of the picture to English or number
window name should also be set to English or number, otherwise it will show the code
from the code of https://www.zhihu.com/question/67157462/answer/251754530
Chinese path can be read normal, but still have window name Chinese garbled.
update: fix window name mess
change system Settings, check the system default code under the CMD window to enter CHCP. If the system encoding is UTF-8, output 65001, modify the language setting to UTF-8, and operate as follows:
red envelope + discount, ali cloud on cloud gift package!
https://promotion.aliyun.com/ntms/yunparter/invite.html?UserCode = 5 wzgtzow
“universal cloud computing” cloud host as low as 4
https://promotion.aliyun.com/ntms/act/qwbk.html?UserCode = 5 wzgtzow
cloud communication exclusive ali cloud new users 】 【 8 fold the
https://www.aliyun.com/acts/alicomcloud/new-discount?UserCode =5wzgtzow
[trademark registration service] as low as 680
https://tm.aliyun.com/?userCode=5wzgtzow
Read More:
- OpenCV error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor‘
- (-215:Assertion failed) 0 <= contourIdx && contourIdx < (int)last in function ‘cv::drawContours‘
- cv2.error: OpenCV(3.4.2) error: (-215:Assertion failed) !empty() in function ‘detectMultiScale‘
- Undefined reference to ‘CV:: imread (CV:: String const & int)’
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- AttributeError: module ‘cv2.cv2‘ has no attribute ‘face‘
- Android get screen width and height and get control width and height
- Error in comparing the size function of STL with negative number
- (-2:Unspecified error) could not find a writer for the specified extension in function‘cv::imwrite_
- Copying a param with shape torch. Size ([262, 2048]), parameter size does not match
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- cv2 error – function not implemented [How to Solve]
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- Android gets the height and width of the screen
- error: (-215:Assertion failed) !ssize.empty() in function ‘resize‘
- How to solve “import cv2 failed ImportError: DLL load fail: Cannot find the specified module” in Anaconda environment
- Undeclared identifier CV in opencv4.2.0_ WINDOW_ AUTOSIZE
- ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)