Process ocr_caption lines

This commit is contained in:
Odin Dahlström
2025-01-30 17:49:06 +01:00
parent 137b054f43
commit b7d63f3dc1
+1 -1
View File
@@ -210,7 +210,7 @@ class HocrTransform:
for element in par.iterfind(self._child_xpath('span'))
if 'class' in element.attrib
and element.attrib['class']
in {'ocr_header', 'ocr_line', 'ocr_textfloat'}
in {'ocr_header', 'ocr_line', 'ocr_textfloat', 'ocr_caption'}
):
found_lines = True
direction = self._get_text_direction(par)