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

Assertion failed #2

Closed
luckymancvp opened this issue Dec 16, 2021 · 2 comments
Closed

Assertion failed #2

luckymancvp opened this issue Dec 16, 2021 · 2 comments

Comments

@luckymancvp
Copy link

Thank for your repo !

I've cloned it to my machine, and run but I had an error. Do you have any suggestion

D:\Projects\BombCryptoCaptchaSolver>python captchaSolver.py
Traceback (most recent call last):
  File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 195, in <module>
    number = numberOcr(img, "hsvOcr")
  File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 113, in numberOcr
    positions = locateAll("%s/%s.png" % (folder, number), img, confidence=thresh)
  File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 87, in locateAll
    res = cv2.matchTemplate(img, template, cv2.TM_CCOEFF_NORMED)
cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:1164: error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'cv::matchTemplate'
@TheMegafuji
Copy link
Owner

You've figured out what was the problem? If you don't mind sharing its a good thing to have the solution.

@luckymancvp
Copy link
Author

You've figured out what was the problem? If you don't mind sharing its a good thing to have the solution.

Thanks for your great work. Because I tested many times and forgot click connet wallet button so It didn't show captcha

==> error

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