Просмотр исходного кода

fix(module): Delete process "enlarge_canvas" in single ocr

ryland 2 лет назад
Родитель
Сommit
83101b567b
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      module/ocr/base_ocr.py

+ 0 - 1
module/ocr/base_ocr.py

@@ -147,7 +147,6 @@ class BaseCor:
         start_time = time.time()
         image = self.crop(image, self.roi)
         image = self.pre_process(image)
-        image = enlarge_canvas(image)
         # ocr
         result, score = self.model.ocr_single_line(image)
         if score < self.score: