OcrViewer constructor
OcrViewer({
- Key? key,
- required ReaderType readerType,
- required dynamic onValueReaded(
- String? value
- required DeviceOrientation deviceOrientation,
- Widget? child,
- dynamic onImageAvailable(
- Image? image
- dynamic imageFileCallback(
- File imageFile
- OcrRecognizingType ocrRecognizingType = OcrRecognizingType.numeric,
- bool autopop = false,
- int limitOfMatches = 3,
- double heightInterestFactor = 0.2,
- double widthInterestFactor = 0.7,
- Color ocrTextColor = Colors.blue,
- Color ocrBorderColor = Colors.blue,
Implementation
OcrViewer(
{super.key,
required this.readerType,
required this.onValueReaded,
required this.deviceOrientation,
this.child,
this.onImageAvailable,
this.imageFileCallback,
this.ocrRecognizingType = OcrRecognizingType.numeric,
this.autopop = false,
this.limitOfMatches = 3,
this.heightInterestFactor = 0.2,
this.widthInterestFactor = 0.7,
this.ocrTextColor = Colors.blue,
this.ocrBorderColor = Colors.blue});