ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class ATSPIRegionMatcherImpl.ATSPIRegionMatcherImpl(config, strategy=None)¶
- match(haystack, needle, rect)¶
Look to see if the needle can be found in the haystack.
Parameters:
haystack: an Region to search
needle: an Region to look for
rect: if specified as a 4 element list (or tuple) those are the coordinates of a rectangle to bound the search, otherwise it is ignored
Return: a list of tuples which are the upper left coordinates that are the start of a match of the needle
- match_at(haystck, needle, corner)¶
Rather than searching the entire haystack for the needle, look at the location starting with the given corner (upper left) and see if there is a match that starts right there.
Parameters:
haystack: the Region to search for the needle
needle: the Region to find in the haystack
corner: Not used for this implementation
Return: True if there is a match at that corner, False otherwise
- use_exact_matching()¶
This is a no-op for this class