javascript OCR API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13529208/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
javascript OCR API
提问by Laokoon
I'm looking for a JavaScript OCR API.
我正在寻找 JavaScript OCR API。
Something like: send a picture and an expected result type (e.g. numbers, object, text, mixed, etc) and receive the result as a string or JSON.
类似于:发送图片和预期结果类型(例如数字、对象、文本、混合等)并以字符串或 JSON 形式接收结果。
Does anyone know of such an API/Service which you can access easily via JavaScript?
有谁知道可以通过 JavaScript 轻松访问的此类 API/服务?
EDIT: I forgot to say, the main use case would be just to recognize numbers (like floats and doubles) and prices (e.g. 0.02$).
编辑:我忘了说,主要用例只是识别数字(如浮点数和双精度数)和价格(例如 0.02$)。
I already found some "cloud-ocr APIs" like abbyy, but they are expensive ... 2 cents per request...
我已经找到了一些像 abbyy 这样的“cloud-ocr API”,但是它们很贵……每个请求 2 美分……
采纳答案by Hughesthe1st
I see this is an old post, but the topic is still open and there are some new players now. You could use the OCR APIfrom HP Haven OnDemand. There are free developer accounts, you can try the API online with your own image, and they support JavaScript (amongst other languages) and provide output in JSON.
我看到这是一个旧帖子,但这个话题仍然是开放的,现在有一些新玩家。您可以使用OCR API从HP避风港的OnDemand。有免费的开发者帐户,您可以使用自己的图像在线试用 API,它们支持 JavaScript(以及其他语言)并提供 JSON 格式的输出。
They also have a few tutorials for OCR with JavaScript that may be helpful to you.
他们还有一些使用 JavaScript 的 OCR 教程,可能对您有所帮助。
- [javascript] Using OCR and Entity Extraction for LinkedIn Company Lookup
- [JavaScript] Extracting Contact Information from Business Cards
Hopefully this helps.
希望这会有所帮助。
Regards,
问候,
Hughesthe1st
(I work for HP)
Hughesthe1st
(我为惠普工作)