onDisplay Function
abstract fun onDisplay(picture: ScanPicture): Boolean
Delivers the binarized image that recognition runs on. For large inputs the engine downscales the recognition raster, so this image may be smaller than the original.
The return value selects the coordinate space of the recognized text (tag bounds and the progress-callback rectangles):
true: report coordinates in the space of the image delivered here;false, or no DisplayCallback at all: report coordinates in the original image’s native space.
Return
true to keep coordinates in this image’s space, false for the original native space
Parameters
- picture — the binarized recognition image (possibly downscaled)