Class Hints (2.20.2)

Hints(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Hints for OCR Engine

Attribute

NameDescription
language_hints MutableSequence[str]
List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).