Full layout and text region classification capability of Cloud OCR SKD Answered

I'm trying to recognise semantic information about text regions e.g. headers, footers, page numbers, captions etc. I cannot find any information about how to achieve this in the documentation. Please can you provide a python code example?

I am using the supplied python example here: In order to get this Python code to work, I had to change line 90 of from

return {"Authorization": "Basic %s" % base64.encodestring( ...


return {"Authorization": "Basic %s" % base64.b64encode( ...

I'm currently just executing this call:

python infile.png outfile.xml -l English -xml


This issue is now fixed on GitHub:

Was this article helpful?

0 out of 0 found this helpful


1 comment

  • Avatar
    Oksana Serdyuk

    This feature is not supported in ABBYY Cloud OCR SDK. But you can try to use another our SDK for your needs, namely ABBYY FineReader Engine. You can access the logical structure of a document formatting attributes, including headers, footers, page numbers, fonts, styles etc., via the IFRDocument::DocumentStructure and IFRPage::PageStructure properties. Please find more information in Help → Guided Tour → Advanced Techniques → Working with the Logical Structure of a Document.

    For trial version of FineReader Engine, please fill the form at our site.


Please sign in to leave a comment.