使用paddlehub实现身份证的识别

 

首先安装anaconda。

创建一个paddlehub的环境:为什么使用3.8呢,是看到一个文章说的,推荐使用。

conda create -n paddlehub_env python=3.8

成功后,切换到paddle_env环境:

conda activate paddlehub_env

 

如何服务器windows server 2008 报错 ImportError: DLL load failed while importing cv2: 找不到指定的模块。

 

 

 

安装基础包:

pip install --upgrade paddlepaddle -i https://mirror.baidu.com/pypi/simple
pip install --upgrade paddlehub -i https://mirror.baidu.com/pypi/simple

pip install shapely -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install pyclipper -i https://pypi.tuna.tsinghua.edu.cn/simple
conda install -c anaconda py-OpenCV
hub serving start -m chinese_ocr_db_crnn_server
hub serving start -m chinese_ocr_db_crnn_mobile
conda create --name paddleOCR_env python=3.8 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/  # 这是一行命令
posted @ 2022-05-18 22:34  二奎  阅读(606)  评论(0编辑  收藏  举报