Hi,

I'm looking at using the java with the finereader engine and would like to know if it possible to extract the text from an image file and store it into a variable as a string for later use?

If it is possible do you have an example of what the code would look like?

Thanks

asked 22 Aug '14, 11:59

bk86's gravatar image

bk86
1112


To extract text from the image you could load the image into FRDocument using FRDocument::AddImageFile method and than process it (analyse, recognize and synthesize) using FRDocument::Process method.

After processing the image you could access the recognized text by FRDocument->FRPages[0]->Layout->Blocks[0]->TextBlock->Text->Paragraphs[0]->Text. The meaning of Paragraph::Text is a simple text that you could write down into the string variable.

If you need more clarifications, please, send us a letter to SDK_Support@abbyy.com with your request and your license number.

link

answered 22 Aug '14, 15:40

SDK_support's gravatar image

SDK_support ♦♦
2763

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×46
×2

Asked: 22 Aug '14, 11:59

Seen: 7,426 times

Last updated: 22 Aug '14, 15:40

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal