We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue by lecheel Monday Feb 13, 2012 at 02:32 GMT Originally opened as autopilot-rs#31
from PIL import Image possible add following api for rect compare using native autopy instead PIL
def compare_rect((ax,ay),bmp_name): im=Image.open(bmp_name) rect = ((ax-1,ay-1),(im.size[0]+2,im.size[1]+2)) tst = bitmap.Bitmap.open(bmp_name) scr = bitmap.capture_screen(rect) pos = scr.find_bitmap(tst) if pos: return 1 else: return 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue by lecheel
Monday Feb 13, 2012 at 02:32 GMT
Originally opened as autopilot-rs#31
from PIL import Image
possible add following api for rect compare using native autopy instead PIL
def compare_rect((ax,ay),bmp_name):
im=Image.open(bmp_name)
rect = ((ax-1,ay-1),(im.size[0]+2,im.size[1]+2))
tst = bitmap.Bitmap.open(bmp_name)
scr = bitmap.capture_screen(rect)
pos = scr.find_bitmap(tst)
if pos:
return 1
else:
return 0
The text was updated successfully, but these errors were encountered: