1
0

2 Commity 2646edabc0 ... c6787d14db

Autor SHA1 Správa Dátum
  zyc c6787d14db 改变参数 3 rokov pred
  zyc 1189738e28 改变参数 3 rokov pred

+ 6 - 0
logs/all-2021-03-12.log

@@ -268,3 +268,9 @@ TypeError: The input data is inconsistent with expectations.
 [2021-03-12 14:10:42,951] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 374
 [2021-03-12 14:11:00,533] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
 [2021-03-12 14:11:13,776] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
+[2021-03-12 14:31:33,213] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
+[2021-03-12 14:31:42,325] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 480
+[2021-03-12 14:32:00,245] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 403
+[2021-03-12 14:32:27,593] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
+[2021-03-12 14:32:33,975] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
+[2021-03-12 14:32:46,174] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454

+ 1 - 1
utils/PaddleOCR/deploy/hubserving/ocr_system/module.py

@@ -96,7 +96,7 @@ class OCRSystem:
                 continue
 
             # 图片预处理
-            img = self.resizeImg(img)
+            img = self.resizeImg(img, 800)
 
             starttime = time.time()
             dt_boxes, rec_res = self.text_sys(img)

+ 1 - 1
utils/PaddleOCR/deploy/hubserving/ocr_system/params.py

@@ -32,7 +32,7 @@ def read_params():
     cfg.rec_algorithm = "CRNN"
     cfg.rec_model_dir = "./utils/PaddleOCR/inference/ch_ppocr_mobile_v2.0_rec_infer/"
 
-    cfg.rec_image_shape = "3, 32, 96"
+    cfg.rec_image_shape = "3, 32, 64"
     cfg.rec_char_type = 'ch'
     cfg.rec_batch_num = 1
     cfg.max_text_length = 20