fixup c0137c2 (missing arguments for utils_ocr)

This commit is contained in:
Robert Sachunsky 2025-10-08 14:56:57 +02:00
parent 1d4815b48f
commit 027b87d321

View file

@ -96,6 +96,7 @@ from .utils.rotate import (
rotation_image_new rotation_image_new
) )
from .utils.utils_ocr import ( from .utils.utils_ocr import (
return_start_and_end_of_common_text_of_textline_ocr_without_common_section,
return_textline_contour_with_added_box_coordinate, return_textline_contour_with_added_box_coordinate,
preprocess_and_resize_image_for_ocrcnn_model, preprocess_and_resize_image_for_ocrcnn_model,
return_textlines_split_if_needed, return_textlines_split_if_needed,
@ -4796,7 +4797,6 @@ class Eynollah:
self.logger.info("Using light text line detection for OCR") self.logger.info("Using light text line detection for OCR")
self.logger.info("Processing text lines...") self.logger.info("Processing text lines...")
self.device.reset()
gc.collect() gc.collect()
torch.cuda.empty_cache() torch.cuda.empty_cache()