Community

Adding image file to IFlexiCaptureProcessor object?

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.

0

Comments

3 comments

  • Avatar
    SDK_support

    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.

    0
    Comment actions Permalink
  • Avatar
    SGumaste

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

    0
    Comment actions Permalink
  • Avatar
    IvanPopov

    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.