"\u001b[?25hBuilding wheels for collected packages: python-Levenshtein, bce-python-sdk\n",
" Building wheel for python-Levenshtein (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for python-Levenshtein: filename=python_Levenshtein-0.12.2-cp37-cp37m-linux_x86_64.whl size=149861 sha256=ae99f26d05485406ee1c40a1f8fcfd7aa34b4556616827b2256d66ba9f165171\n",
" Stored in directory: /root/.cache/pip/wheels/05/5f/ca/7c4367734892581bb5ff896f15027a932c551080b2abd3e00d\n",
" Building wheel for bce-python-sdk (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for bce-python-sdk: filename=bce_python_sdk-0.8.64-py3-none-any.whl size=202973 sha256=8badeb6a8030bbb9b3952fff9833a75115d31184862c5e355e07af25d03e4336\n",
" Stored in directory: /root/.cache/pip/wheels/fd/ee/a5/4ad3bdc0e60b48e892e8bd6f661a3201d7e76dccfa9e968b34\n",
"Successfully built python-Levenshtein bce-python-sdk\n",
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"markdown 3.3.6 requires importlib-metadata>=4.4; python_version < \"3.10\", but you have importlib-metadata 4.2.0 which is incompatible.\n",
"albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.4.0 which is incompatible.\u001b[0m\n",
"from paddleocr import PaddleOCR, draw_ocr # main OCR dependencies\n",
"from matplotlib import pyplot as plt # plot images\n",
"import cv2 #opencv\n",
"import os # folder directory navigation\n",
"# Paddleocr At present, it supports both Chinese and English 、 english 、 French 、 German 、 Korean 、 Japanese , It can be modified by lang Switch parameters \n",
"\n",
"# The parameters are `ch`, `en`, `french`, `german`, `korean`, `japan`.\n",
"\n",
"ocr = PaddleOCR(use_angle_cls=True, lang=\"ar\") # need to run only once to download and load model into memory\n",
"/usr/local/lib/python3.7/dist-packages/scipy/fft/__init__.py:97: DeprecationWarning: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.\n",
" from numpy.dual import register_func\n",
"/usr/local/lib/python3.7/dist-packages/scipy/special/orthogonal.py:81: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.\n",
"Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations\n",
" from numpy import (exp, inf, pi, sqrt, floor, sin, cos, around, int,\n",
"/usr/local/lib/python3.7/dist-packages/scipy/sparse/sputils.py:17: DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`.\n",
" supported_dtypes = [np.typeDict[x] for x in supported_dtypes]\n"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"download https://paddleocr.bj.bcebos.com/dygraph_v2.0/multilingual/en_ppocr_mobile_v2.0_det_infer.tar to /root/.paddleocr/whl/det/en/en_ppocr_mobile_v2.0_det_infer/en_ppocr_mobile_v2.0_det_infer.tar\n"
"download https://paddleocr.bj.bcebos.com/dygraph_v2.0/multilingual/arabic_ppocr_mobile_v2.0_rec_infer.tar to /root/.paddleocr/whl/rec/arabic/arabic_ppocr_mobile_v2.0_rec_infer/arabic_ppocr_mobile_v2.0_rec_infer.tar\n"
"download https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar to /root/.paddleocr/whl/cls/ch_ppocr_mobile_v2.0_cls_infer/ch_ppocr_mobile_v2.0_cls_infer.tar\n"