Skip to content

OCR

Functionality for vizualization results from MediaCatch Vision API

Bases: BaseViz

Class to visualize OCR results.

Parameters:

Name Type Description Default
file_path str

File path.

required
results list[dict[str, Any]]

Results from OCR API.

required
output_path str

Output path.

required
max_text_length int

Max text length to show (will add ... at the end). Defaults to 30.

30
avg_char_width int

Average character. Defaults to 10.

10
min_chars int

Minimum characters to alway show. Defaults to 3.

3