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

When the image is cropped, it returns empty array #1

Open
bewuwy opened this issue Dec 22, 2021 · 0 comments
Open

When the image is cropped, it returns empty array #1

bewuwy opened this issue Dec 22, 2021 · 0 comments

Comments

@bewuwy
Copy link

bewuwy commented Dec 22, 2021

When trying to use your tool, the screenshot is taken properly, but in line 146 of main.py, when the image is cropped

crop = img[coords[i][2]:coords[i][3], coords[i][0]:coords[i][1], :]

the variable becomes an empty string

Resulting then in error:

cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\smooth.dispatch.cpp:617: error: (-215:Assertion failed) !_src.empty() in function 'cv::GaussianBlur'

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

1 participant