Find initial coordinates for method processFields

  • 1.2K Views
  • Last Post 09 April 2015
UnderCover posted this 08 April 2015

Hi,

While calling processFields method, we need to send a settings with left, right, top, bottom coordinates. In my scenario, user would take an image from camera, so image might have different resolutions, may be landscaped or portrait mode. In such cases, the left, right, top, bottom differs accordingly depending upon image, so these values could not be hard coded. How do we detect boundary for an image and hence create a settings with co-ordinates dynamically and call the method processFields.

Thanks in advance for your answer.

Order By: Standard | Newest | Votes
Oksana Serdyuk posted this 08 April 2015

Actually in case the forms are quite different each time, there is no such solution at the moment. In Cloud OCR SDK it is necessarily to specify the exact region of the text field which you are going to recognize. However if your images do not include any handprinted text and you processed the printed text only, you can try the full-page recognition mode (for example, the processImage method with the textExtraction profile). In this case you can recognize all the text on a page and extract the information you need on your side. To parse the recognized text, it could be helpful to export it with the coordinates (set exportFormat=xml).

Also ABBYY provides a wide choice of products and probably another our product will fit for your scenario better. We recommend to pay your attention on the Data and Document Capture software (ABBYY FlexiCapture, ABBYY FlexiCapture for Invoices, ABBYY FlexiCapture Engine). These offline products are created specially for forms and invoices processing.

UnderCover posted this 08 April 2015

Hi

Thank u for such quick response. Could you suggest me the way to retrieve checkbox value using method processImage?

Let me know.

Oksana Serdyuk posted this 09 April 2015

Unfortunately, the processImage method cannot recognize checkmarks. For this you can use the processFields or processCheckmarkField methods, but in this case you should specify the exact coordinates of the fields.

However ABBYY FlexiCapture will be the best solution for forms recognition.

Close