All Projects → mindee → doctr-tfjs-demo

mindee / doctr-tfjs-demo

Licence: other
Javascript demo of docTR, powered by TensorFlowJS

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to doctr-tfjs-demo

Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+900%)
Mutual labels:  yarn, node-js
ImageToText
OCR with Google's AI technology (Cloud Vision API)
Stars: ✭ 30 (+42.86%)
Mutual labels:  ocr, optical-character-recognition
doctr
docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning.
Stars: ✭ 1,409 (+6609.52%)
Mutual labels:  ocr, optical-character-recognition
Receipt Scanner
Receipt scanner extracts information from your PDF or image receipts - built in NodeJS
Stars: ✭ 190 (+804.76%)
Mutual labels:  ocr, optical-character-recognition
PAN-Card-OCR
Retrive meaningful information from PAN Card image using tesseract-ocr 😎
Stars: ✭ 115 (+447.62%)
Mutual labels:  ocr, optical-character-recognition
Signature extractor
A super lightweight image processing algorithm for detection and extraction of overlapped handwritten signatures on scanned documents using OpenCV and scikit-image.
Stars: ✭ 205 (+876.19%)
Mutual labels:  ocr, optical-character-recognition
blinkid-in-browser
BlinkID In-browser SDK for WebAssembly-enabled browsers.
Stars: ✭ 40 (+90.48%)
Mutual labels:  ocr, optical-character-recognition
Tesseract4android
Fork of tess-two rewritten from scratch to support latest version of Tesseract OCR.
Stars: ✭ 148 (+604.76%)
Mutual labels:  ocr, optical-character-recognition
Document-Scanner-and-OCR
A simple document scanner with OCR implemented using Python and OpenCV
Stars: ✭ 31 (+47.62%)
Mutual labels:  ocr, optical-character-recognition
vrpdr
Deep Learning Applied To Vehicle Registration Plate Detection and Recognition in PyTorch.
Stars: ✭ 36 (+71.43%)
Mutual labels:  ocr, optical-character-recognition
Android Ocr
Experimental optical character recognition app
Stars: ✭ 2,177 (+10266.67%)
Mutual labels:  ocr, optical-character-recognition
Persian-OCR
Optical character recognition of Farsi and Arabic letters
Stars: ✭ 36 (+71.43%)
Mutual labels:  ocr, optical-character-recognition
Swiftytesseract
A Swift wrapper around Tesseract for use in iOS, macOS, and Linux applications
Stars: ✭ 170 (+709.52%)
Mutual labels:  ocr, optical-character-recognition
Image2text
📋 Python wrapper to grab text from images and save as text files using Tesseract Engine
Stars: ✭ 243 (+1057.14%)
Mutual labels:  ocr, optical-character-recognition
Ocr Table
Extract tables from scanned image PDFs using Optical Character Recognition.
Stars: ✭ 165 (+685.71%)
Mutual labels:  ocr, optical-character-recognition
jochre
Java Optical CHaracter Recognition
Stars: ✭ 18 (-14.29%)
Mutual labels:  ocr, optical-character-recognition
Ssocr
Seven Segment Optical Character Recognition
Stars: ✭ 133 (+533.33%)
Mutual labels:  ocr, optical-character-recognition
Easyocr
Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
Stars: ✭ 13,379 (+63609.52%)
Mutual labels:  ocr, optical-character-recognition
mirador-textoverlay
Text Overlay plugin for Mirador 3
Stars: ✭ 35 (+66.67%)
Mutual labels:  ocr, optical-character-recognition
DocumentLab
OCR using tesseract, ImageMagick, EmguCV, an advanced query language and a fluent query interface for C#
Stars: ✭ 64 (+204.76%)
Mutual labels:  ocr, optical-character-recognition

docTR Tensorflow.js demo

License Build Status


This project is based on docTR and leverages TensorFlow.js to serve you an end-to-end OCR running directly in your favorite web browser.



demo

For this project, models were trained with docTR using its TensorFlow back-end, then converted to the TJFS SavedModel format thanks to the tensorflowjs_converter. Just like docTR, under the hood, there are two types of modules:

  • Text detection: db_mobilenet_v2 (low resolution) & db_resnet50 (high resolution) as available architectures, post-processing performed with OpenCV.js.
  • Text recognition: crnn_vgg16_bn as available architecture

Documentation about all the models can be found over here.

Using the interface

The interface is divided into five sections:

  • Model settings (side pannel): select the architectures to use for text detection and for text recognition.
  • Input Image (top-left pannel): upload your image there by clicking in the area & selecting your file. Uploading a file will automatically run the OCR on it.
  • Text localization (top-right pannel): the output of the text localization module.
  • Detected word boxes (bottom-left pannel): visualization of the final predictions of the OCR.
  • Words (bottom-right pannel): the list of all the detected words. If you hover a prediction on the bottom-left pannel, it will highlight the corresponding text prediction in this section.

Getting started

Prerequisites

In order to install this project, you will need Yarn and NPM, which are package managers for Node.js.

npm install -g serve

Installation

This demo was built using React, a framework for JavaScript development. This demo requires you to install the project from the source code, which will require you to install Git. First clone the project repository:

git clone https://github.com/mindee/doctr-tfjs-demo.git

Then install the project's dependencies using the following command:

cd doctr-tfjs-demo
yarn install

Running the app

Production mode

Alternatively, if you are looking at a production situation, first build the bundle and serve it:

yarn build
serve --no-clipboard -s build

then navigate to the URL with your favorite web browser

Development mode

Once all dependencies have been installed, launch the app using:

yarn start

and navigate with your web browser to the URL in the console.

Using Docker container

Lucky for you, if you prefer working with containers, we provide a minimal Docker image. You can build it as follows (it might take a few minutes depending on your setup):

DOCKER_BUILDKIT=1 docker build . -t doctr-tfjs:node12-alpine

and then run your image with:

docker run -p 8001:3000 doctr-tfjs:node12-alpine

Feel free to change the port, but by default, you should be able to access the demo at http://localhost:8001/. The -p 8001:3000 lets Docker know that we want to map the internal port of the container (3000) to port 8001 on the outside.

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].