赞
踩
yum -y install tesseract
composer require thiagoalessio/tesseract_ocr
use thiagoalessio\TesseractOCR\TesseractOCR;
echo (new TesseractOCR($this->getlocalPath().'/public/static/images/8055.png'))
->allowlist(range('0', '9'))
->run();
显示:
识别中文
$tes = (new TesseractOCR($imgPath))->lang('chi_sim');
echo $tes->run();
将中文包放到/usr/share/tesseract/tessdata/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。