public class NativeGenericTextRecognizer
public static int DEFAULT_MINIMUM_REQUIRED_FRAME_COUNT
public static int DEFAULT_MAXIMUM_ACCUMULATED_FRAME_COUNT
public static int DEFAULT_OCR_RESOLUTION_LIMIT
public static io.scanbot.generictext.NativeGenericTextRecognizer.Companion Companion
public NativeGenericTextRecognizer(@NotNull
java.lang.String tessDataPath)
tessDataPath - Path to OCR blobs, needed for optical recognition@Nullable public NativeTextRecognitionResult scanNv21(@NotNull kotlin.Array[] nv21, int width, int height, int orientation, @Nullable android.graphics.Rect finderRect)
Scan image to recognize a text and validate it with the predefined validator
nv21 - image in form of nv21-encoded byte arraywidth - image width, pixelsheight - image height, pixelsorientation - image orientation. Default is 0finderRect - if non-null - perform scanning only in given area. Default is nullpublic void cleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer
public void setConfiguration(@NotNull
NativeGenericTextRecognizerConfig config)
Sets the configuration to use during the text recognition
protected void finalize()