Adding image file to IFlexiCaptureProcessor object?

  • 923 Views
  • Last Post 30 January 2017
Hari posted this 23 July 2014

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.

Order By: Standard | Newest | Votes
SDK_support posted this 23 July 2014

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.

SGumaste posted this 27 January 2017

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?.

IvanPopov posted this 30 January 2017

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.

Close