如何在使用PHP的网站上实现OCR? [英] How can I implement OCR on a website using PHP?

查看:219
本文介绍了如何在使用PHP的网站上实现OCR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有免费的OCR库在Linux服务器上使用PHP或Python?这个想法是能够上传一个图像,并从中提取字符,或允许用户绘制字符,并解析出来的图像

解决方案

由于您在Linux系统上,我强烈推荐Google的开源项目 ocropus

这不是PHP,但我认为这将是您的最佳选择。当然你可以通过 exec 从PHP内部调用它。它的成熟和有很多选择。从项目网站:


OCRopus引擎基于两个研究项目:90年代中期开发的高性能手写识别器,由美国人口普查局部署,以及新颖的高性能布局分析方法。

另外还有一个开源项目, tesseract 。我过去也用过这个,对结果也很满意。包括培训,限制你的字母表等。


Are there any free OCR libraries that work with PHP or Python on a Linux server? The idea is to be able to upload an image and pull out characters from it, or allow users to "draw characters", and parse them out of said image.

解决方案

Since you're on a Linux box, I would highly recommend Google's open source project ocropus.

It's not PHP, but I think it will be your best option. Of course you can call it from within PHP via exec. Its mature and has a lot of options. From the project site:

The OCRopus engine is based on two research projects: a high-performance handwriting recognizer developed in the mid-90's and deployed by the US Census bureau, and novel high-performance layout analysis methods.

There is also another open source project, tesseract. I've used this in the past as well and have been pleased with the results. Includes training, limiting your alphabet, etc.

这篇关于如何在使用PHP的网站上实现OCR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆