GithubHelp home page GithubHelp logo

fitrialif / ocr-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olehonyshchak/ocr

0.0 1.0 0.0 145.14 MB

Optical Character Recognition system for math formulas

Python 2.11% Jupyter Notebook 97.89%

ocr-2's Introduction

Optical Character Recognition(OCR) system for math expressions

Abstract

OCR is one of the earliest addressed computer vision tasks. But there are few solutions available for its application in specific domains such as parsing of mathematical formulas. Thus we will solve this problem in a simple educative way, providing a comprehensive introduction into Computer Vision(CV) field with a possibility to extend the base solution. The resulting program incorporates segmentation of input image into characters and then character recognition itself based on Convolutional Neural Network(CNN).

Reproduce results

Firstly, prepare the data by executing the following commands from the project's root folder:

cd data
unzip emnist.zip
unzip crohme.zip

And then run Main.ipynb notebook

Files Description

In the root folder, you can see multiple *.ipynb and *.py files. Below is a detailed description of each of them

  • References.ipynb - notebook with reference materials related to the project,
  • Troubleshooting.ipynb - notebook with a list of typical problems, which you may encounter while running the project, and their resolutions
  • DataPreprocessing.ipynb - notebook for preprocessing datasets. It cleans, merges and enhances data from EMNIST and CHRONME datasets, which located under data directory
  • CharacterSegmentation.py - python module with realisation of line segmentation functionality. It takes its input from the input folder and saves the segmented characters into segmented folder.
  • RecognitionModelTraining.ipynb - notebook which trains CNN model to parse characters. Trained models are saved under the model directory.
  • Main.ipynb - notebook with a main pipeline of the project. It orchestrates all modules by firsly segmenting the line into characters, then parsing them, and then converting parsed characters to Latex.

ocr-2's People

Contributors

olehonyshchak avatar

Watchers

James Cloos 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.