Explorar el Código

在ocr_single_line中调用enlarge_canvas,以减少失真

YLXJ hace 2 años
padre
commit
3d4d50a8f4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      module/ocr/base_ocr.py

+ 1 - 0
module/ocr/base_ocr.py

@@ -147,6 +147,7 @@ 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: