Identifies the screen in the given image. If possible it will perform an 'exact' match, meaning that it all the primary pixels specified in {@link Screen} were within range. An exact match is very accurate, howeversometimes an exact match is not possible due to effects (eg partial effects) or obstructing objects (eg a card being dragged over certain pixels) so a partial match is performed. If a partial match doesn't identify a screen with high enough confidence, no screen is returned.
It is considered normal that some screens can't be identified. Only the screens that indicate important events have been defined in Screen so far; some Hearthstone screens can't be identified but this is silently ignored by the HearthstoneAnalyser which expects some unknown screens.
@param image The image to identify a Hearthstone screen from. @param previousScreen The last screen that was identified; optional, but specify this to narrow down the search, reduce the risk of false positives (eg jumping out of a game unexpectedly) and generally make the analysis faster. @return The Screen that was identified, or null if no screen could beidentified with reasonable confidence.
|
|