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.? 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. Any pointer in this regard would be a great help.
-
2yes it's possible. Did you even check the tensorflow js site – JEY May 15 '18 at 8:02
-
1Hey Jey Thanks for reply. I am tracking their site for last month ( since beginning of their js avatar) but couldn't get anything relevant. Can you share some link may be I missed ? It will be a great help. – Gaurav Srivastava May 15 '18 at 8:05
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. Most cases the running every second is acceptable.
I recommend converting an existing TF model to TFJS for your research. Like this one: 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
use tensorflow.js with electron.js. it have native performance. because instead of webgl it uses CUDA and native c libraries which gain super fast result