Skip to main content

Image recognition

8 commands. Toolkit id ooa.image.

CommandWhat it does
Click imageFind a picture on the screen (optionally waiting for it, in a region, or its n-th appearance) and click it with the chosen button at its centre, corner or an offset.
Compare imagesCompare two pictures pixel by pixel: whether they are the same, how much differs, where, and optionally a copy of the first with the changes in red.
Find image in imageLook for a small picture inside a larger image file, optionally in a region and for its n-th appearance; returns the point of the match.
Find image on screenLook for a picture on the screen, optionally in a region and for its n-th appearance; returns the point of the match.
Image is in image fileTrue when the picture appears inside an image file.
Image is on screenTrue when the picture is visible on the screen, or inside one window, within the tolerance.
Wait for imageWait until a picture appears on the screen, or disappears from it, checking a region at a chosen interval (IMAGE.NOT_FOUND after the timeout).
Wait for screen changeWait until a region of the screen changes (e.g. a result appears), or until it stops changing (e.g. a page or application has finished drawing).