How can I get font name of recognized text using Java SDK? (Not cloud - local version)

asked 06 Aug '15, 12:45

Zmiter's gravatar image

Zmiter
135

edited 06 Aug '15, 17:40


It is not possible to get the font name using ABBYY Cloud OCR SDK. Please vote for the feature request: http://forum.ocrsdk.com/questions/3693/feature-request-font-info-in-xml. Hope it will be implemented in future.

However, you can try another our SDK - ABBYY FineReader Engine 11 which allows to access the recognized text and get information about a character position, formatting, font attributes, etc. For trial version of ABBYY FineReader Engine, please fill the form at our site.

link

answered 06 Aug '15, 16:33

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

I meant local SDK, not cloud version :) Actually I've found one approach and it looks pretty much like this

ICharParams charParams = engine.CreateCharParams();

document.getPages().getElement(0) .getPageStructure().getPageSections().getElement(0) .getMainText().getPageStream().getPageElements().getElement(0) .GetAsText().getParagraphs().getElement(0) .GetCharParams(0, charParams);

charParams.getFontName();

(06 Aug '15, 17:41) Zmiter
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:

×47
×11
×6

Asked: 06 Aug '15, 12:45

Seen: 765 times

Last updated: 06 Aug '15, 17:41

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