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

(-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine' #10

Closed
yancccc opened this issue Jun 2, 2023 · 1 comment

Comments

@yancccc
Copy link

yancccc commented Jun 2, 2023

使用自己的数据集,运行python encoding.py报错。
new_img = cv2.warpAffine(img,RotationMatrix,(img.shape[1],img.shape[0]))
cv2.error: OpenCV(4.4.0) /home/ycc/opencv-4.4.0/modules/imgproc/src/imgwarp.cpp:2594: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine'
请问是什么原因呢?

@yancccc yancccc closed this as completed Jun 2, 2023
@Storm0921
Copy link

我也遇到了同样的问题,你是怎么解决的?

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

2 participants