mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix: initialize df_osd to avoid uninitialized variable error
Signed-off-by: IoannisMaras <maras2002@gmail.com>
This commit is contained in:
parent
a2b83fe4ae
commit
45b9ded576
@ -231,6 +231,7 @@ class TesseractOcrCliModel(BaseOcrModel):
|
|||||||
fname = image_file.name
|
fname = image_file.name
|
||||||
high_res_image.save(image_file)
|
high_res_image.save(image_file)
|
||||||
doc_orientation = 0
|
doc_orientation = 0
|
||||||
|
df_osd=None
|
||||||
try:
|
try:
|
||||||
df_osd = self._perform_osd(fname)
|
df_osd = self._perform_osd(fname)
|
||||||
doc_orientation = _parse_orientation(df_osd)
|
doc_orientation = _parse_orientation(df_osd)
|
||||||
|
Loading…
Reference in New Issue
Block a user