Question

I'm working on an application that destined to scan a bill (electricity bill for example) and get the relevant details (amount to pay, user's client number and deadline payment date) I've downloaded the ABBYY ocr cloud trial and willing to but the full license but having some difficulties regarding the usage .

The documentation seems to advise using : http://ocrsdk.com/documentation/quick-start/text-fields/?utm_source=http://stackoverflow.com&utm_medium=comment&utm_campaign=smm but when working with the demo - I can't find how and where to add the "'region'" field and how can I make it scan several regions at the same time.

I've looked at the code where the language option was defined, but couldn't find the 'region' option - what type should it be ? (Rectangle?)

If anyone worked or works with abbyy I would love to get some help! thanks a lot!!

Was it helpful?

Solution

In our sample for Windows Phone the processImage method is used. It allows to recognize the whole image.

To recognize separate text fields with specified coordinates, you can use the processTextField method (to recognize one field) or the processFields method (to recognize several fields).

To use the processTextField method, you can change this line to something like string url = "http http://cloud.ocrsdk.com/processTextField?region=0,0,200,200&language=english";

The result format is XML.

“Region” is a rectangle. The coordinates of the region are measured in pixels relative to the left top corner of the image and are specified in the following order: left, top, right, bottom.

We recommend to read the Quick Start Guide: How to Work with Cloud OCR SDK.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top