Comments (8)
请看最新的代码,example文件夹里面,可以直接运行study.php
或者index.php
from imageocr.
链接是以前用来测试的,现在无效了,最新的代码里面使用了自动生成的方法,应该没有这个错误
from imageocr.
不太理解这个要怎么用,我把composer require mohuishou/image-ocr 生成的文件放在tp5的vendor,把image-ocr改名为ImageOCR。
控制器中
public function index()
{
vendor('Mohuishou.ImageOCR.Image');
$image=new \Mohuishou\ImageOCR\Image("http://auto.test.com/sss.png");
$a=$image->find();
$code=implode("",$a);
echo "验证码:$code \n";}
然后报
致命错误: Class 'Mohuishou\ImageOCR\StorageFile' not found
//从数据库中取出特征值
$db=new StorageFile();
from imageocr.
直接在根目录用composer require mohuishou/image-ocr,然后访问http://auto.testv.com/vendor/mohuishou/image-ocr/
也会报路径错误,里面命名空间都是Mohuishou\ImageOCR\Example ,我要怎么来安装合适呢
from imageocr.
可以给个步骤吗?放到TP5上或者直接在根目录,我下载example里面的文件。composer 后运行也是各种路径错误
from imageocr.
不太清楚tp5的逻辑,你可以先git clone项目到本地,然后composer install,然后试试进入本地文件夹运行php -S localhost:8080,看看示例能不能运行,然后具体使用的时候可以参考example来写,因为每个验证码识别的参数和步骤都要进行一定的调整,所以具体逻辑需要自己完善
from imageocr.
可以运行了,我再研究研究适配的。谢谢哈,开发这个好东西。 有些1个字母会变成几个数字 这个情况应该可以判断下位数
from imageocr.
没事,这个具体的参数是要调整的
from imageocr.
Related Issues (20)
- 错误:请先获取分割后的图片 HOT 5
- 能识别那种数学计算的验证码吗 HOT 3
- 运行测试实例,出现这个问题
- 可以识别那种以数学计算公式来验证的吗? HOT 2
- 无法安装,请求帮助 HOT 3
- composer 安装不了 HOT 2
- 运行时出现这个问题 HOT 2
- 运行时CaptchaBuilder类找不到 HOT 2
- 识别不了数字7 HOT 1
- Uncaught Error: Class 'Minho\Captcha\CaptchaBuilder' not found in D:\xampp\htdocs\captcha\index.php:8 HOT 2
- 写了一个验证码用这个识别试了试
- 识别报错! HOT 10
- 写了个自动训练脚本训练了一晚上之后变成这样了 HOT 6
- 使用例子识别验证码访问提示 请先获取分割之后的图片
- 出现"请先获取分割之后的图片" 的问题 HOT 3
- example/index.php HOT 2
- 运行example结果始终为0000 HOT 2
- 建议 HOT 2
- 滴水算法/粘连字符串分割测试
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imageocr.