pip install opencv-python
pip install Levenshtein
pip install tqdm
# for gpu device (find more details in Paddle):
conda install paddlepaddle-gpu==3.0.0 paddlepaddle-cuda=11.8 -c paddle -c nvidia
or for cpu device:
conda install paddlepaddle==3.0.0 -c paddle
pip install paddleocr==3.0.0
if you want to use gpu-version, modify
self.ocr = PaddleOCR(
......
device="gpu:0"
)