通过OCR对图片、pdf等进行文字识别转换非常的重要,用途也越来越广泛,最近发现这个Python的开发源项目,现在分享一下。

因为这是tensorflow版本所以不用安装darknetpython版本:3.6.10

tensorflow版本:1.8

tensorflow-gpu版本:1.8

cuda版本:9.0

使用Anaconda3安装环境

##下载Anaconda3 python 环境安装包(https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.shconda create -n chineseocr python=3.6 pip scipy numpy jupyter ipython ##运用conda 创建python环境

source activate chineseocr

git submodule init && git submodule update

pip install easydict opencv-contrib-python==4.0.0.21 Cython h5py lmdb mahotas pandas requests bs4 matplotlib lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install -U pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install keras==2.1.5 tensorflow==1.8 tensorflow-gpu==1.8

pip install web.py==0.40.dev0 redis conda install pytorch torchvision -c pytorch

记住了这里要安装cuda 和 cudann 一定只能是N卡

只需要安装显卡驱动和cuda就可以跑了

一键安装cuda 和 cudnn

命令:conda install cupy

如果没有安装cuda 那就

命令 conda install cudaconda install cudatoolkit

如果提示cuda版本不对那就conda install cudnn==9 #后面带上版本

资源地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

本文来自投稿,不代表访得立场,如若转载,请注明出处:http://www.found5.com//view/1375.html

Logo

一站式 AI 云服务平台

更多推荐