TextDetectionClassifierQuantized

open class TextDetectionClassifierQuantized : TextDetectionClassifier

This TensorFlow Lite classifier works with the quantized EfficientNet model.

Constructors

Link copied to clipboard
open fun TextDetectionClassifierQuantized(    activity: Activity,     device: TextDetectionClassifier.Device,     numThreads: Int,     textCaptureConfig: TextCaptureConfig,     KEY: String)
Initializes a ClassifierQuantizedMobileNet.

Functions

Link copied to clipboard
open fun close()
Closes the interpreter and model to release resources.
Link copied to clipboard
open fun create(    activity: Activity,     model: TextDetectionClassifier.Model,     device: TextDetectionClassifier.Device,     numThreads: Int,     textCaptureConfig: TextCaptureConfig,     KEY: String): TextDetectionClassifier
Creates a classifier with the provided configuration.
Link copied to clipboard
open fun recognizeImage(bitmap: Bitmap, sensorOrientation: Int): ArrayList<TextDetectionClassifier.Recognition>
Runs inference and returns the classification results.

Properties

Link copied to clipboard
val imageSizeX: Int
Image size along the x axis.
Link copied to clipboard
val imageSizeY: Int
Image size along the y axis.
Link copied to clipboard
val TAG: String