tessract-ocr文本识别系统网页搭建php_进一步完善及操作流程详解

项目github源代码:

https://github.com/chudongfang/my_work_git/tree/master/ocr_php

1.首先,安装tessract-ocr,确保3.03版本以上

ubuntu 

sudo apt-get install tesseract-ocr
centos

yum install tesseract.i686

2.由于要调用php库,安装php管理依赖的工具comporser

3.从comporser中得到   tesseract-ocr-for-php

     执行命令;

comporser requir thiagoalessio/tesseract_ocr
确保版本最新!:1.0.0-RC


4.调用其进行进行网页编写

网页地址:115.159.205.168/ocr_php/public/index.php

index.php





OCR文本识别系统























请选择语言类型(可多选):

lang($lan_type) ->run(); ?>

width="440" height="300" />

识别结果:



introduce1.php





OCR文本识别系统












































点击图片进行识别



intro_deal.php





OCR文本识别系统





















lang($lan_type) ->run();

?>


width="440" height="600" />

识别结果:






你可能感兴趣的:(自写小项目,php)