安装环境:Ubuntu16.04, Nvidia Titan x, cuda 8.0, cudnn 5.0, protobuf 2.6, python 2.7, OpenCV 3.2
下载TextBoxes:https://github.com/MhLiao/TextBoxes
# 修改Makefile.config文件:use cuda,use opencv, mkl
git clone https://github.com/MhLiao/TextBoxes.git
cd TextBoxes
make -j64
make py
测试demo
下载训练好的模型Models trained on ICDAR 2013,拷贝到文件夹examples/TextBoxes/下。
# 测试demo.jpg的文本区域检测
python examples/TextBoxes/demo.py
报错1:No module named shapely
安装shapely:
sudo apt-get install python-shapely
报错2:Could not find lib geos_c or load any of its variants
安装shapely的依赖库GEOS:
sudo apt-get install libgeos-dev