| Total Complexity | 0 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from dataclasses import dataclass, field |
||
| 2 | from typing import List, Union, Optional |
||
| 3 | from ocrd_models.ocrd_page import OcrdPage |
||
| 4 | from PIL.Image import Image |
||
| 5 | |||
| 6 | from ocrd_models.ocrd_page_generateds import AlternativeImageType, PageType |
||
| 7 | |||
| 8 | @dataclass |
||
| 9 | class OcrdPageResultImage(): |
||
| 10 | pil : Image |
||
| 11 | file_id_suffix : str |
||
| 12 | alternative_image : Optional[Union[AlternativeImageType, PageType]] |
||
| 13 | |||
| 14 | @dataclass |
||
| 15 | class OcrdPageResult(): |
||
| 16 | pcgts : OcrdPage |
||
| 17 | images : List[OcrdPageResultImage] = field(default_factory=list) |
||
| 18 |