TextDetectionClassifier

abstract class TextDetectionClassifier

A classifier specialized to label images using TensorFlow Lite.

Types

Link copied to clipboard
enum Device
The runtime device type used for executing classification.
Link copied to clipboard
enum Model
The model type used for classification.
Link copied to clipboard
open class Recognition
An immutable result returned by a Classifier describing what was recognized.

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

Inheritors

Link copied to clipboard