简体   繁体   English

用于 OCR 的 Tensorflow.js

[英]Tensorflow.js for OCR

Is it possible to use Tensorflow.js for real-time OCR for language modeling ( to start with English) as I am willing to make client side native desktop application running in offline mode.?是否可以使用 Tensorflow.js 进行实时 OCR 语言建模(以英语开头),因为我愿意让客户端本地桌面应用程序在离线模式下运行。? Motivation behind it is to avoid unnecessary network resource consumption and have higher level of security.其背后的动机是避免不必要的网络资源消耗并具有更高的安全级别。 I tried bundling Tesseract.js but its not real time and there is no much activity in respective forum for a longer.time.我尝试捆绑 Tesseract.js 但它不是实时的,并且在更长的时间内在相应的论坛中没有太多活动。 Any pointer in this regard would be a great help.在这方面的任何指针都会有很大帮助。

Define "real-time".定义“实时”。 If you mean every second on a webcam, then yes!如果您的意思是网络摄像头上的每一秒,那么是的! If you want native performance, you should consider a mobile app instead, using TFLite.如果您想要本机性能,您应该考虑使用 TFLite 的移动应用程序。 Most cases the running every second is acceptable.大多数情况下每秒运行是可以接受的。

I recommend converting an existing TF model to TFJS for your research.我建议将现有的 TF 模型转换为 TFJS 以供您研究。 Like this one: https://github.com/tensorflow/models/tree/master/research/attention_ocr像这个: https : //github.com/tensorflow/models/tree/master/research/attention_ocr

Or you could train your own, like the classic MNIST example in TFJS, seen here: https://storage.googleapis.com/tfjs-examples/mnist/dist/index.html或者你可以训练你自己的,就像 TFJS 中的经典 MNIST 例子,见这里: https ://storage.googleapis.com/tfjs-examples/mnist/dist/index.html

use tensorflow.js with electron.js.将 tensorflow.js 与 electron.js 一起使用。 it have native performance.它具有原生性能。 because instead of webgl it uses CUDA and native c libraries which gain super fast result因为它使用 CUDA 和本机 c 库而不是 webgl 获得超快的结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM