Is there any way to add images as byte[] to the IFlexiCaptureProcessor for OCR processing rather than giving the path of image file to the "AddImageFile" method of IFlexiCaptureProcessor object?.

Also it will be appreciable if you could tell us , how to get the recognization result in an xml, or is there any out of the box method to get the same from IFlexiCaptureProcessor . Currently i am getting it in an IDocument object , but i want to get the same on an xml file.

asked 23 Jul '14, 10:51

Hari's gravatar image

Hari
112

can you please share code snippet or link for: Is there any way to add images as byte[] to the IFlexiCaptureProcessor for OCR processing rather than giving the path of image file to the "AddImageFile" method of IFlexiCaptureProcessor object?.

(27 Jan, 18:08) SGumaste

There is no ready-to-use example for this scenario, but you can implement it yourself, just follow these steps: 1. Implement the IReadStream interface and create an IReadStream object using your byte array. 2. Pass the IReadStream object to the OpenImageFileFromStream method of an ImageProcessingTools object to get an ImageFile object. 3. Use the OpenImagePage method of the ImageFile object to get Image objects representing separate pages of the loaded file. 4. Pass the Image objects to the AddImage method of the FlexiCaptureProcessor object to add images to the processing queue.

(30 Jan, 10:30) IvanPopov ♦♦

There is a way to add images from memory, for example. Please see more details in this Help article → Guided Tour → Advanced Techniques → Setting up a Custom Image Source.

Yes, sure you free to choose which format export recognition results to. The export settings can be set up either in Documents Definition or via FileExportParameters object. Please find more details in Help → Guided Tour → Advanced Techniques → Tuning Export Parameters.

link

answered 23 Jul '14, 14:59

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:

×30
×2

Asked: 23 Jul '14, 10:51

Seen: 853 times

Last updated: 30 Jan, 10:30

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