OcrInput class

An image to read text from.

Annotations

Constructors

OcrInput({required Uint8List png, required int width, required int height, List<String> languageHints = const []})
A PNG image of width x height pixels. languageHints are language codes ("en", "bn") the recognizer may use to pick its model; empty leaves the choice to it.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
Height in pixels.
final
languageHints → List<String>
Languages the text is likely in; empty when unknown.
final
png → Uint8List
The image, PNG encoded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited