python-imagesearch
python-imagesearch copied to clipboard
gdi32.GetDIBits() failed
ScreenShotError exception is thrown when using region_grabber
In fact, I can't use this library at all... Even just copying the simple example:
from python_imagesearch.imagesearch import imagesearch
pos = imagesearch(path) if pos[0] != -1: print("position : ", pos[0], pos[1]) else: print("image not found")
gives me an error: Exception has occurred: AttributeError 'NoneType' object has no attribute 'shape'
@Yumtard I'm guessing your path is wrong, try with an absolute path to the image you want to search.