Text field with black color

  • 1.2K Views
  • Last Post 25 February 2014
  • Topic Is Solved
Anup Gandhi posted this 22 February 2014

Hi,

I am evaluating the ABBY OCR SDK trial version. I want to know if there any possible way that I could recognize only text field with Black color. This image has every thing in different colors except the few fields which are in black color and I want to capture those text fields.

Thanks in advance.

Order By: Standard | Newest | Votes
Anastasia Galimova posted this 23 February 2014

To get text with black color we recommend to recognize page (using the processImage method) and perform export to XML.

According to output XML document scheme, there is a "color" tag. It is optional and is specified when the text color is not black. So if you remove (on your side) all the text with the "color" tag you will get what you need.

  • Liked by
  • Anup Gandhi
Anup Gandhi posted this 23 February 2014

Thanks for the quick reply. But I can check the response XML and it has no color information whereas in the image, there are text fields which are in blue color. Let me know if you want me to share image and response xml with you.

Anastasia Galimova posted this 25 February 2014

We apologize for the wrong information, the "color" tag is absent now. It is possible to do the following:

a. specify the coordinates of the text you want to recognize and use the processTextField or the processFields method;

b. use any other information (not the text color) from the output XML file to find the text you need; actual tags are described in this table: http://ocrsdk.com/documentation/specifications/xml-scheme-recognized-document/.

If both of this variants are impossible, please share the image you recognize and probably the tag will be added in the future.

Close