ocracy.backends.aws_textract.adapter#

Adapter for AWS Textract — image -> text + word boxes via detect_document_text.

Textract reports geometry as fractions of the page (0..1), so this adapter scales boxes to pixels using the decoded image size. LINE blocks build the reading-order text; WORD blocks carry boxes + confidence (rescaled 0..100 -> 0..1).

Classes

Adapter(config)

AWS Textract adapter.

class ocracy.backends.aws_textract.adapter.Adapter(config)[source]#

Bases: BaseOcrAdapter

AWS Textract adapter.