Community

Query

I'm getting recognized text when scanned and it is displayed on the screen too, but how to fetch the data in string format. Working on Android SDK OCR.

Thanks in Advance

Was this article helpful?

0 out of 0 found this helpful

Comments

6 comments

  • Avatar
    Oksana Serdyuk

    Could you please specify what exactly ABBYY product you use: Mobile OCR Engine or Real-Time Recognition SDK?

    0
  • Avatar
    Rajath Ravishankar
    I'm using Real time Recognition SDK (Android)
    0
  • Avatar
    Oksana Serdyuk

    We return recognized result as text lines with their coordinates represented by objects of the TextLine class. Each TextLine contains the information about the enclosing quadrangle for a single line of text and the recognized text as a string, as well as some additional information about the characters. Please see the details in the Developer’s Documentation: TextLine class

    0
  • Avatar
    Rajath Ravishankar

    if there is 4 lines in a block then i could retrieve only last line.

    Example  :

    Lorem Ipsum is simply dummy text

    of the printing and typesetting industry.

    Lorem Ipsum has been the industry's

    standard Lorem 

     

    could only store "standard Lorem " in string, not able to store all 4 lines.

    Thanks

    0
  • Avatar
    Oksana Serdyuk

    Perhaps other lines are not included in the specified search area (areaOfInterest)?

    Please find how our text capture code sample is implemented. The onFrameProcessed method is where you work with the recognition results. This method is called on the UI thread to return the result when the frame is recognized. And the setLines method gets the recognition result as string lines and make some further actions.

    0
  • Avatar
    Rajath Ravishankar

    Thank you so much for the response

    0

Please sign in to leave a comment.