在PHP / JAVASCRIPT中使用Tesseract /任何OCR

时间:2022-05-31 02:08:03

i wanted to implement a fully working OCR into my webpage , the webpage uses several languages and two of them are js and php i was trying to find ocr which will work in atleast one of these languages. (the webpage is being hosted at google appengine)

我想在我的网页上实现一个完全工作的OCR,网页使用几种语言,其中两个是js和php我试图找到ocr,它将在至少一种语言中工作。 (该网页正在google appengine上托管)

what i found :

我找到了什么:

1: google cloud vision API , i also found their project on github github link for js implementation of cloud vision api the code which is there doesnot work also , it doesnot output the text and it also doesnot output any errors , i have no idea why it doesnot communicate i did everything i should (there are steps that you should follow)

1:谷歌云视觉API,我也发现他们的项目在github github链接上为js实现云视觉api的代码也没有用,它不输出文本也不输出任何错误,我不知道为什么它没有沟通我做了我应该做的一切(你应该遵循的步骤)

2: i also found tesseract ocr which is wrapper for tesseract ocr engine i found website but the 5 line sample after copying and linkind the js source file doesnot do anything there is no documentation at all. tesseract ocr wrapper for javascript link to webpage

2:我还发现了tesseract ocr,它是tesseract ocr引擎的包装器,我找到了网站,但复制后的5行样本和linkind js源文件没有做任何事情,根本就没有文档。 tesseract ocr包装器用于javascript链接到网页

3: i also found tesseract ocr wrapper in php from user thiagoalessio on github (i cant post more than 2 link) but since im running google appengine hosting , i have no idea how should i implement it into the appengine project , maybe this one will work ? can someone help me ?

3:我还在github上的用户thiagoalessio发现了php中的tesseract ocr包装器(我不能发布超过2个链接)但是因为我正在运行google appengine主机,我不知道我应该如何将它实现到appengine项目中,也许这个会工作?有人能帮我吗 ?

thanks

1 个解决方案

#1


0  

I can't speak to the JavaScript client implementation, but we do have support for this in PHP: https://googlecloudplatform.github.io/google-cloud-php/#/docs/v0.6.0/vision/visionclient

我不能说JavaScript客户端实现,但我们在PHP中支持这个:https://googlecloudplatform.github.io/google-cloud-php/#/docs/v0.6.0/vision/visionclient

And in node.js: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.38.3/vision

在node.js中:https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.38.3/vision

And here's an example of it in use with node.js: https://github.com/JustinBeckwith/node-cloud-visionator

以下是与node.js一起使用的示例:https://github.com/JustinBeckwith/node-cloud-visionator

Hope this helps!

希望这可以帮助!

#1


0  

I can't speak to the JavaScript client implementation, but we do have support for this in PHP: https://googlecloudplatform.github.io/google-cloud-php/#/docs/v0.6.0/vision/visionclient

我不能说JavaScript客户端实现,但我们在PHP中支持这个:https://googlecloudplatform.github.io/google-cloud-php/#/docs/v0.6.0/vision/visionclient

And in node.js: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.38.3/vision

在node.js中:https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.38.3/vision

And here's an example of it in use with node.js: https://github.com/JustinBeckwith/node-cloud-visionator

以下是与node.js一起使用的示例:https://github.com/JustinBeckwith/node-cloud-visionator

Hope this helps!

希望这可以帮助!