Code Monkey home page Code Monkey logo

blnk-ocr's Introduction

Opticat Character Recognition

About

NOT COMPLETED PROJECT for OCR

Description

In this repo there is an attempt to create an OCR model for the first time

Project Structure

├── Interface
│   ├── google_app
│   ├── interface
├── data
├── notebooks
├── src
│   ├── dataset
│   ├── text encoding
│   ├── text processing
│   ├── training
│   └── inference
└── utils

The repository is organized as follows:

  • Interface/: This directory is the django project and contains google_app as the django app.

  • data/: This directory contains the dataset used for training and evaluation. It includes both the raw data and preprocessed versions, if applicable.

  • notebooks/: This directory contains Jupyter notebooks that provide step-by-step explanations of the data exploration, preprocessing, model training, and evaluation processes. Explore if you are feeling adventurous

  • src/: This directory contains the source code for the project, including data preprocessing scripts, model training scripts, and evaluation scripts.

  • utils/: This directory contains utility functions and helper scripts used throughout the project.

Getting Started

  • It is recommended to set up a virtual environment for this project using python 3.8.16

To get started with the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Aylore/blnk-OCR.git
    
  2. Change directory into the repository:

    cd blnk-OCR
    
  3. Install the required dependencies:

    make install
    

Pipeline

  1. Text Processing

    I tired various methods for text encoding , none of them seemed to get good results so I just setteled for simple encoding

  2. Image Processing

    The images were resized to 50 * 200 I extracted the text only in new images with all black background but seemed to confuse the model for some reason

  3. Training

    A CRNN (CNN + RNN ) model for used for seuquence generation

  4. Django Integration

    After training I used django to create and easy to use not too fancy GUI.

Running The Project

  1. Use
 make run

Accuracy

accuracy

Contributing

If you would like to contribute to this project, Feel Free to make a pull request

Future Work

  • Extract characters one by one using CV and start classifying them by a pretrained model
  • Use attention based model

blnk-ocr's People

Contributors

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