Commit 41e3ec50 authored by Sergey Pinus's avatar Sergey Pinus
Browse files

Remove PP core from requirements and add try execpt block to import PPOCR

parent a5faace1
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2,7 +2,16 @@ import numpy as np
from typing import List
import os
import logging

try:
    from paddleocr import PaddleOCR
    PADDLE_OCR_AVAILABLE = True
except ImportError:
    PADDLE_OCR_AVAILABLE = False
    logging.warning(
        'PaddleOCR is not installed. Install it by following https://www.paddlepaddle.org.cn/en/install/quick?docurl'
    )

import cv2
import re

+0 −2
Original line number Diff line number Diff line
@@ -45,9 +45,7 @@ multivolumefile
httpx[socks,brotli]
langdetect
translators
easyocr
paddleocr
paddlepaddle-gpu
json5
httpx-socks
pywin32; sys_platform == 'win32'