Giter Club home page Giter Club logo

dsc-iem / wolfmaths Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 4.0 130.6 MB

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

License: MIT License

Python 2.17% Jupyter Notebook 97.83%
hacktoberfest hacktoberfest-accepted hacktoberfest2021 hacktober hacktoberfest-starter hacktoberfest-2021 python jupyter-notebook notebook

wolfmaths'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.

wolfmaths's People

Contributors

code-aditya-14 avatar itisdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wolfmaths's Issues

Adjusting the dataset

Hello!
I am really happy with the project that you have put forward. However, there is a problem that I could use your help in fixing with the dataset.
The dataset includes many letters/numbers that are similar to one another. What I mean is, a handwritten be is often mis-interpreted as a 6 - even by humans. There are many such letters, which I would like to take out of the dataset. I kindof did this by doing !rm -rf {directory} on the images that I didn't want to include, however the model still predicts them nonetheless. How can I circumvent this?

Edit: I'm sure it has something to do with editing the CSV, and I'm currently trying to figure this stuff out via your dataprocessing.ipynb file, but i'm struggling

Create a Contribute.MD

The file must contain all the guidelines required for the contributors while contributing to the project.

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.