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

error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'matchTemplate' #4

Open
chihsuanbjjh opened this issue Jan 11, 2020 · 2 comments

Comments

@chihsuanbjjh
Copy link

source code:
import pyautogui, time
import snp

begin_time = time.time()
for i in range(10):
loc = snp.locateOnScreen('python.png',threshold = 0.87,region=None)
print(loc)
end_time = time.time()

print('fps:',10/(end_time-begin_time))

錯誤訊息:
error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'matchTemplate'

@chihsuanbjjh
Copy link
Author

macOS Catalina 10.15.2
python 3.7

@Slyfoe
Copy link

Slyfoe commented Feb 15, 2022

ma pis pe eroare asta de tot cacatul

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