Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示cv2.resize函数报错,请教是怎么回事? #28

Open
axltfytx opened this issue Sep 21, 2018 · 4 comments
Open

提示cv2.resize函数报错,请教是怎么回事? #28

axltfytx opened this issue Sep 21, 2018 · 4 comments

Comments

@axltfytx
Copy link

self.bg  = cv2.resize(cv2.imread("./images/template.bmp"),(226,70));

cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

@kiosy
Copy link

kiosy commented Nov 13, 2018

self.bg  = cv2.resize(cv2.imread("./images/template.bmp"),(226,70));

cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

我也是,请问您解决了吗?

@wuzhaoshuai
Copy link

我也是,请问您解决了吗?

@steamyao
Copy link

百度了一下,说是路径错误,但是跟着项目教程来的啊,求解?

@chuyhu
Copy link

chuyhu commented Nov 27, 2020

我解决了,这个是因为那个 text的字符长度不对,在生成的时候 if里判断是长度为9,但是字符串生成的是长度为7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants