Skip to content

Commit

Permalink
Update hocr_extract_images.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Dec 30, 2023
1 parent e6064a0 commit ea13411
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hocr_tools_lib/tools/hocr_extract_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def extract_images(
parser = html.HTMLParser(encoding=doc.original_encoding)
doc = html.document_fromstring(content.encode('UTF-8'), parser=parser)
else:
assert isinstance(hocr, (str, bytes, Support)), type(hocr)
doc = html.parse(hocr)

pages = doc.xpath('//*[@class="ocr_page"]')
Expand Down

0 comments on commit ea13411

Please sign in to comment.