How do I select text from a scanned photo?
The firebase-mlkit's text recognition API returns a frame
as well as cornerPoints
for each of the VisionTextBlock
, VisionTextLine
, and VisionTextElement
:
They should help you to select the words, lines, or text blocks.
SOS video
Updated on December 01, 2022Comments
-
SOS video over 1 year
I'm in the process of writing an app with which you can take a picture of a text and then the text is scanned and transferred to a variable. I've done that with the plugin firebase_ml_vision and everything works.
The problem I have is that I want to decide for myself which text is scanned from the photo. For example, this could work in such a way that each word and number is automatically given a frame and the user then taps the words that are transferred to the variable. This also works with Google translator (see screenshot) but unfortunately I haven't found anything yet how to do it... Do you know how it works?
-
Ankit Tale over 3 yearsYou can take help of this library. pub.dev/packages/tesseract_ocr
-
Ankit Tale over 3 yearsI will suggest learn the code and make code as per requirement in app.
-