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

ValueError: zero-size array to reduction operation minimum which has no identity #3

Open
nimesh131 opened this issue Mar 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nimesh131
Copy link

When try to process images (.png) getting the error as -

Traceback (most recent call last):
  File "D:\xampp\htdocs\testing\preyash\PyCaptcha\Captcha_solving-main\process_images.py", line 10, in <module>
    result = preprocess_image('temp/'+img)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\xampp\htdocs\testing\preyash\PyCaptcha\Captcha_solving-main\pre_processing.py", line 39, in preprocess_image
    result = result[x.min():x.max(), y.min():y.max()]
                    ^^^^^^^
  File "D:\Python\Lib\site-packages\numpy\core\_methods.py", line 45, in _amin
    return umr_minimum(a, axis, None, out, keepdims, initial, where)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation minimum which has no identity

Unable to figure out to fix the error.

@NotTrueFalse
Copy link
Owner

Hello, can you show me your file structure under Captcha_solving-main? (using the command tree)

@NotTrueFalse NotTrueFalse self-assigned this Mar 22, 2024
@NotTrueFalse NotTrueFalse added the bug Something isn't working label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants