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.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
languages List<String>?
A list with OCR languages of the text to be recognized (e.g. {"en", "de"}).
getter/setter pair
pdfOptions PdfRenderingOptions
PDF generation options if shouldGeneratePdf is true
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldGeneratePdf bool
Flag to generate a PDF with OCR layer text (sandwiched PDF).
getter/setter pair

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