PrintAllText

class PrintAllText(text_getter: GetText | None = None)[source]

Bases: OCRInstruction

Print all detected text blocks and their coordinates.

property id: int

Return the unique OCR instruction identifier.

Returns:

OCR instruction identifier.

Return type:

int

perform(ui: BaseUi, text_reader: BaseTextReader, *args, **kwargs)[source]

Execute the instruction with a text reader.

Parameters:
  • ui (BaseUi) – UI instance used during execution.

  • text_reader (BaseTextReader) – Text reader used to detect text.

  • args – Additional positional arguments for the execution flow.

  • kwargs – Additional keyword arguments for the execution flow.

Returns:

Updated UI state when the implementation returns it.

Return type:

BaseUi