Coder Social home page Coder Social logo

ocr_tflite's Introduction

Converting Opensourced OCR Models to TFLite

This repository is to create tflite models for the available ocr models.

Binder

TFLite Models Available

Note: Currently Keras OCR doesn't support Integer Quantization as of now and already reported to TFLite team.

About the files

├── colabs
    ├── KERAS_OCR_TFLITE.ipynb       --> Code for Convert Keras OCR model to TFLite and doing inference.
    ├── captcha_ocr_tflite.ipynb     --> Code to Convert Keras Captcha OCR to TFLite and code to do inference.
    ├── captcha_ocr_inference.ipynb  --> Inference code for captcha OCR.
    ├── Deep_Text_Recognition_TFLite.ipynb  --> Code to Convert Deep Text Recognition Model to TFLite with inference.
    ├── ENDTOEND_OCR_TFLITE.ipynb    --> End to End OCR with CRAFT,EAST as text detector and KERAS OCR as Recognition Engine.

├── models
    ├──  ocr_dr.tflite                --> Captcha OCR TFLite model.
    ├──  keras_ocr_dr.tflite          --> Keras OCR Dynamic Range Quantized TFLite Model
    ├──  keras_ocr_float16.tflite     --> Keras OCR Float16 Quantized TFLite Model
    ├──  cnn_dr.tflite                --> Deep Text Recognition Dynamic Range Quantized TFLite Model
    ├──  cnn_float16.tflite           --> Deep Text Recognition Float16 Quantized FLite Model 
├── images
    Contains sample input images used for inference.
├── data
    Contains representative dataset used while converting to TFLite using Integer Quantization.

Benchmarks

KERAS OCR

alt text

                                       All the above benchmarks are w.r.t Redmi K20 Pro using 4threads.

Tensorflow Hub

Keras OCR Models are published in TensorFlow Hub

You can find this repo for converting CRAFT models to TFLite and using them for inference. For more details please find these blogs on Text Detectors.

Feel free to suggest any other models through issues or contribute through Pull Requests.

ocr_tflite's People

Contributors

fanszoro avatar tulasiram58827 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.