OcrOptions class
OCR options
- Annotations
-
- @JsonSerializable(createFactory: false, includeIfNull: false, explicitToJson: true, createToJson: true)
Constructors
-
OcrOptions({List<
String> ? languages, bool shouldGeneratePdf = false, OcrEngine engine = OcrEngine.SCANBOT_OCR, PdfRenderingOptions pdfOptions = const PdfRenderingOptions()})
Properties
- engine ↔ OcrEngine
-
OCR engine to be used for OCR. DEFAULT: Scanbot OCR.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
languages
↔ List<
String> ? -
A list with OCR languages of the text to be recognized (e.g. {"en", "de"}).
WORKS ONLY WITH THE TESSERACT OCR ENGINE.
read / write
- pdfOptions ↔ PdfRenderingOptions
-
pdf generation options if shouldGeneratePdf is true
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shouldGeneratePdf ↔ bool
-
Flag to generate a PDF with OCR layer text (sandwiched PDF).
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited