How to use the airtest.image.locate_image function in airtest

To help you get started, we’ve selected a few airtest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NetEase / airtest / airtest / trash / android.py View on Github external
def _image_locate(origin_file, query_file, threshold=0.3):
    '''
    image match
    '''
    log.debug('search image(%s) from(%s)', query_file, origin_file)
    pts = image.locate_image(origin_file, query_file, threshold=threshold)
    return pts
github NetEase / airtest / airtest / trash / ios.py View on Github external
def _image_locate(origin_file, query_file):
    '''
    image match
    '''
    log.debug('search image(%s) from(%s)', query_file, origin_file)
    pts = image.locate_image(origin_file, query_file)
    return pts