openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.57k stars 1.4k forks source link

图像匹配报错:NameError: name 'findit' is not defined #848

Closed shifengboy closed 6 months ago

shifengboy commented 1 year ago

执行图像匹配代码时报如下错误: 代码:

imdata = "home.jpg" # 也可以是URL, PIL.Image或OpenCV打开的图像
d.image.match(imdata)
d.image.click(imdata, timeout=20.0)

保存信息: Traceback (most recent call last): File "/Users/chenshifeng/MyCode/www.py", line 374, in d.image.match(imdata) File "/usr/local/lib/python3.9/site-packages/uiautomator2/image.py", line 253, in match fi = findit.FindIt(engine=['template'], NameError: name 'findit' is not defined

Process finished with exit code 1

codeskyblue commented 6 months ago

图像功能不在维护