Merge pull request #29 from 8baby8/main

test
This commit is contained in:
chaoke 2024-02-29 12:38:35 +08:00 committed by GitHub
commit 36cae99183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,10 +5,12 @@ try:
import cv2
except :
os.system('pip install opencv-python')
import cv2
try :
from paddleocr import PaddleOCR , draw_ocr , download_with_progressbar
except:
os.system('pip install paddleocr')
from paddleocr import PaddleOCR , draw_ocr , download_with_progressbar
output_folder_path = 'res/'
if not os.path.exists(output_folder_path):
os.makedirs(output_folder_path)