소스 검색

修改日志配置

zyc 3 년 전
부모
커밋
db33b92018
8개의 변경된 파일3개의 추가작업 그리고 476개의 파일을 삭제
  1. 3 3
      invoice_ocr/settings.py
  2. 0 197
      logs/all-2021-03-11.log
  3. 0 276
      logs/all-2021-03-12.log
  4. 0 0
      logs/error-2021-03-11.log
  5. 0 0
      logs/error-2021-03-12.log
  6. 0 0
      logs/info-2021-03-11.log
  7. 0 0
      logs/info-2021-03-12.log
  8. 0 0
      logs/invoice_ocr.log

+ 3 - 3
invoice_ocr/settings.py

@@ -142,7 +142,7 @@ LOGGING = {
         'default': {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': os.path.join(log_path, 'all-{}.log'.format(time.strftime('%Y-%m-%d'))),
+            'filename': os.path.join(log_path, 'all.log'),
             'maxBytes': 1024 * 1024 * 5,  # 文件大小
             'backupCount': 5,  # 备份数
             'formatter': 'standard',  # 输出格式
@@ -152,7 +152,7 @@ LOGGING = {
         'error': {
             'level': 'ERROR',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': os.path.join(log_path, 'error-{}.log'.format(time.strftime('%Y-%m-%d'))),
+            'filename': os.path.join(log_path, 'error.log'),
             'maxBytes': 1024 * 1024 * 5,  # 文件大小
             'backupCount': 5,  # 备份数
             'formatter': 'standard',  # 输出格式
@@ -168,7 +168,7 @@ LOGGING = {
         'info': {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': os.path.join(log_path, 'info-{}.log'.format(time.strftime('%Y-%m-%d'))),
+            'filename': os.path.join(log_path, 'info.log'),
             'maxBytes': 1024 * 1024 * 5,
             'backupCount': 5,
             'formatter': 'standard',

+ 0 - 197
logs/all-2021-03-11.log

@@ -1,197 +0,0 @@
-[2021-03-11 15:45:11,090] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 15:45:18,176] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 36
-[2021-03-11 16:48:41,324] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 16:55:01,145] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 16:56:00,609] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 16:56:39,716] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 16:56:44,906] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 14, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 72, in predict
-    predicted_data = self.read_images(paths)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 51, in read_images
-    img_path), "The {} isn't a valid file.".format(img_path)
-AssertionError: The .PaddleOCR/doc/imgs/11.jpg isn't a valid file.
-[2021-03-11 16:56:44,907] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 83254
-[2021-03-11 16:57:26,616] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 16:57:30,898] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 14, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 16:57:30,899] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 81632
-[2021-03-11 17:09:26,941] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:09:30,716] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 14, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:09:30,717] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82459
-[2021-03-11 17:10:55,703] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:11:02,591] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 14, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:11:02,593] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 81741
-[2021-03-11 17:35:31,917] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:35:41,540] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:35:41,542] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82573
-[2021-03-11 17:36:43,172] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:36:46,332] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 16, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:36:46,333] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82334
-[2021-03-11 17:38:20,368] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:38:26,483] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 15, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:38:26,485] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82333
-[2021-03-11 17:42:13,675] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:42:46,110] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 15, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:42:46,115] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 84339
-[2021-03-11 17:44:59,338] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:46:38,923] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:46:49,402] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 15, in post
-    res = ocr.predict(paths=image_path)
-  File "D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 85, in predict
-    dt_boxes, rec_res = self.text_sys(img)
-AttributeError: 'OCRSystem' object has no attribute 'text_sys'
-[2021-03-11 17:46:49,403] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82334
-[2021-03-11 17:47:33,531] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 17:47:43,431] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 2809
-[2021-03-11 17:49:15,419] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\PaddleOCR\deploy\hubserving\ocr_system\module.py changed, reloading.
-[2021-03-11 17:49:18,917] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 18:04:57,114] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 18:07:58,829] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 18:08:09,947] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
-    image = images.read()
-AttributeError: 'list' object has no attribute 'read'
-[2021-03-11 18:08:09,950] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 78453
-[2021-03-11 18:09:34,381] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 18:14:45,668] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-11 18:14:48,585] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 12, in post
-    img = cv2.imdecode(image.read(), cv2.IMREAD_ANYCOLOR)
-TypeError: Expected Ptr<cv::UMat> for argument 'buf'
-[2021-03-11 18:14:48,587] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 78852

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

@@ -1,276 +0,0 @@
-[2021-03-12 08:42:46,731] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 08:43:00,571] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 21, in post
-    res = ocr.predict(paths=image_path, invoice_type=1)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 73, in predict
-    predicted_data = self.read_images(paths)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 52, in read_images
-    img_path), "The {} isn't a valid file.".format(img_path)
-AssertionError: The ./PaddleOCR/doc/imgs/test2.jpg isn't a valid file.
-[2021-03-12 08:43:00,574] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 84812
-[2021-03-12 08:43:22,651] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 08:43:33,537] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
-[2021-03-12 08:44:13,453] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 08:45:54,862] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
-[2021-03-12 08:47:56,159] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 08:48:05,749] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
-[2021-03-12 08:48:44,838] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 08:48:51,624] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 09:03:29,840] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:08:12,134] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:08:16,377] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 10, in post
-    invoice_type = request.post.get('invoice_type', 1)
-AttributeError: 'WSGIRequest' object has no attribute 'post'
-[2021-03-12 09:08:16,381] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 78950
-[2021-03-12 09:09:49,649] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:10:09,069] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 09:10:22,290] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 449
-[2021-03-12 09:12:18,278] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 09:26:08,702] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:26:33,841] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:28:00,729] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
-[2021-03-12 09:28:04,137] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:28:08,209] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
-[2021-03-12 09:28:11,355] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:29:26,093] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
-[2021-03-12 09:29:29,345] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:29:34,327] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
-[2021-03-12 09:29:37,492] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:29:53,724] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
-[2021-03-12 09:34:51,274] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 09:55:49,284] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 10:17:38,892] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 10:17:47,253] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 10:20:03,567] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 10:21:00,587] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 10:21:30,968] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 10:21:37,317] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
-[2021-03-12 10:22:53,991] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 10:23:01,293] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
-[2021-03-12 10:24:09,370] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 10:24:09,371] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82610
-[2021-03-12 10:27:17,559] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 10:27:17,560] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82610
-[2021-03-12 10:30:17,393] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 10:30:17,394] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82628
-[2021-03-12 10:36:51,451] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
-    images = request.FILES.getlist('images')
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
-    self._load_post_and_files()
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
-    self._post, self._files = self.parse_file_upload(self.META, data)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
-    parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
-    raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
-django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
-[2021-03-12 10:36:51,461] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
-[2021-03-12 10:39:24,107] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
-    images = request.FILES.getlist('images')
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
-    self._load_post_and_files()
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
-    self._post, self._files = self.parse_file_upload(self.META, data)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
-    parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
-    raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
-django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
-[2021-03-12 10:39:24,108] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
-[2021-03-12 10:53:30,675] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
-    images = request.FILES.getlist('images')
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
-    self._load_post_and_files()
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
-    self._post, self._files = self.parse_file_upload(self.META, data)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
-    parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
-    raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
-django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
-[2021-03-12 10:53:30,676] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
-[2021-03-12 10:54:10,303] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 10:54:10,304] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82628
-[2021-03-12 11:13:17,809] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 11:14:31,507] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 11:14:31,509] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 84633
-[2021-03-12 11:18:02,722] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
-[2021-03-12 11:22:41,428] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\ocr\views.py changed, reloading.
-[2021-03-12 11:22:46,928] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 11:23:01,554] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 11:23:10,062] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
-[2021-03-12 11:23:23,249] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 442
-[2021-03-12 11:23:28,630] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 73
-[2021-03-12 11:23:33,706] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
-Traceback (most recent call last):
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
-    response = get_response(request)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
-    response = wrapped_callback(request, *callback_args, **callback_kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
-    return self.dispatch(request, *args, **kwargs)
-  File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
-    return handler(request, *args, **kwargs)
-  File "D:\pythonProject\invoice_ocr\ocr\views.py", line 21, in post
-    res = ocr.predict(images=image_list, invoice_type=invoice_type)
-  File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
-    raise TypeError("The input data is inconsistent with expectations.")
-TypeError: The input data is inconsistent with expectations.
-[2021-03-12 11:23:33,707] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82466
-[2021-03-12 11:24:25,767] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 11:24:28,224] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 61
-[2021-03-12 12:07:10,402] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 12:07:14,765] [log.py:230] [log:log_response] [WARNING]- Not Found: /
-[2021-03-12 12:07:14,766] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET / HTTP/1.1" 404 2030
-[2021-03-12 12:07:14,772] [log.py:230] [log:log_response] [WARNING]- Not Found: /
-[2021-03-12 12:07:14,772] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET / HTTP/1.1" 404 2030
-[2021-03-12 12:07:14,840] [log.py:230] [log:log_response] [WARNING]- Not Found: /favicon.ico
-[2021-03-12 12:07:14,840] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET /favicon.ico HTTP/1.1" 404 2081
-[2021-03-12 12:07:19,604] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin HTTP/1.1" 301 0
-[2021-03-12 12:07:19,623] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/ HTTP/1.1" 302 0
-[2021-03-12 12:07:19,701] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2194
-[2021-03-12 12:07:19,728] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/base.css HTTP/1.1" 200 16307
-[2021-03-12 12:07:19,733] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2138
-[2021-03-12 12:07:19,734] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/login.css HTTP/1.1" 200 1185
-[2021-03-12 12:07:19,736] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/responsive.css HTTP/1.1" 200 18344
-[2021-03-12 12:07:19,739] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 1360
-[2021-03-12 12:07:19,751] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
-[2021-03-12 12:07:19,788] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
-[2021-03-12 12:07:19,788] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
-[2021-03-12 12:07:26,692] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/ HTTP/1.1" 302 0
-[2021-03-12 12:07:26,707] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2194
-[2021-03-12 14:04:43,609] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 14:05:58,993] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
-[2021-03-12 14:06:14,431] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
-[2021-03-12 14:06:30,574] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 374
-[2021-03-12 14:09:16,172] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[2021-03-12 14:09:23,605] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 286
-[2021-03-12 14:10:35,165] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
-[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

+ 0 - 0
logs/error-2021-03-11.log


+ 0 - 0
logs/error-2021-03-12.log


+ 0 - 0
logs/info-2021-03-11.log


+ 0 - 0
logs/info-2021-03-12.log


+ 0 - 0
logs/invoice_ocr.log