Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.? 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.

like image 201
Gaurav Srivastava Avatar asked May 15 '18 07:05

Gaurav Srivastava


1 Answers

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

like image 164
Gant Laborde Avatar answered Sep 21 '22 00:09

Gant Laborde