Skip to content

App Crashes on OCR  #71

Open
Open
@Yoda-Man

Description

@Yoda-Man

Future _read() async {
List texts = [];
try {
texts = await FlutterMobileVision.read(
waitTap: true,
flash: _torchOcr,
autoFocus: _autoFocusOcr,
multiple: _multipleOcr,
showText: _showTextOcr,
preview: _previewOcr,
camera: _ocrCamera,
fps: 2.0,
);
setState(() {
currentLogItem.washOption = texts[0].value;
});
} on Exception {
texts.add(OcrText('Failed to recognize text'));
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions