VisionAdapter class constructor
A FinderInterface instance used for on-screen image detection (Default: TemplateMatchingFinder)
A ScreenActionProvider instance used to retrieve screen data (Default: ScreenAction)
A DataSink instance used to write output data to disk (Default: ImageWriter)
findOnScreenRegion will search for a given pattern inside a Region of the main screen If multiple possible occurrences are found, the one with the highest probability is returned. For matchProbability < 0.99 the search will be performed on grayscale images.
A MatchRequest which holds all required matching data
MatchResult containing location and probability of a possible match
grabScreen will return an Image containing the current screen image
An Image which will contain screenshot data as well as dimensions
highlightScreenRegion highlights a screen Region for a given duration by overlaying it with an opaque window
The Region to highlight
The highlight duration
Overlay opacity
screenHeight returns the main screens height as reported by the OS. Please notice that on e.g. Apples Retina display the reported width and the actual pixel size may differ
The main screens height as reported by the OS
screenSize returns a Region object with the main screens size. Please note that on e.g. Apples Retina display the reported width and the actual pixel size may differ
A Region object representing the size of a systems main screen
screenWidth returns the main screens width as reported by the OS. Please notice that on e.g. Apples Retina display the reported width and the actual pixel size may differ
The main screens width as reported by the OS
VisionAdapter serves as an abstraction layer for all image based interactions.
This allows to provide a high level interface for image based actions, without having to spread (possibly) multiple dependencies all over the code. All actions which involve screenshots / images are bundled in this adapter.