I am using ocr cloud sdk in my application for ocr. I want to know that how to detect bold/italic characters in xml returned by cloud service. I am using following code to get xml

String url = string.Format("http://cloud.ocrsdk.com/processImage?language={0}&exportFormat={1},{2}", language, exportFormat, "xml");

var request = CreateRequest(url, "POST", Credentials, Proxy);

In this link following answer is posted by a user.

The parameter xcf (--xmlWriteCharFormatting) is neccessary to get the font size.

I want to know if this parameter also works in cloud ocr service or there is some other parameters/way to detect bold/italic characters.

asked 06 Nov '15, 12:52

amirkhan's gravatar image

amirkhan
115

edited 06 Nov '15, 12:53


The XML output format that ABBYY Cloud OCR SDK creates is the same that ABBYY FineReader Engine creates with the default options. It contains information on text and characters, but does not support the character formatting information, such as bold/italic/underlined font styles. Unfortunately, now the XML scheme in Cloud OCR SDK can only be expanded by setting the parameter xml:writeRecognitionVariants to true (it specifies whether the variants of characters recognition should be written to the output file).

Please vote if you want to have the information about text font styles for the feature request: http://forum.ocrsdk.com/questions/3693/feature-request-font-info-in-xml. Hope it will be implemented in future.

link

answered 06 Nov '15, 14:00

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28
×6
×5

Asked: 06 Nov '15, 12:52

Seen: 1,309 times

Last updated: 06 Nov '15, 14:00

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal