Skip to content

Commit 6e74a59

Browse files
committed
MODIFY PDF2TXT
1 parent d415e89 commit 6e74a59

File tree

2 files changed

+2
-69
lines changed

2 files changed

+2
-69
lines changed

scripts/pdf2txt.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
import cv2
66
except :
77
os.system('pip install opencv-python')
8+
import cv2
89
try :
910
from paddleocr import PaddleOCR , draw_ocr , download_with_progressbar
1011
except:
1112
os.system('pip install paddleocr')
13+
from paddleocr import PaddleOCR , draw_ocr , download_with_progressbar
1214
output_folder_path = 'res/'
1315
if not os.path.exists(output_folder_path):
1416
os.makedirs(output_folder_path)

scripts/ptf2txt.py

-69
This file was deleted.

0 commit comments

Comments
 (0)