GithubHelp home page GithubHelp logo

shadman-shahid / photomath Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 85 KB

A simple error correcting scheme, based upon the least Hamming distance principle is implemented in verilog. There are two modules.

MATLAB 100.00%

photomath's Introduction

Photomath

Often, we need to solve large mathematical equations fast and with less effort. Simple Photomath has been built from that need. All that is required is an image of the math that one is required to solve. Simple Photomath is a program that can solve or simplify a number of mathematical equations and problems, which are extracted from its image. Thereafter one will get as output, the solution of that math. Photomath can perform 4 functions:

  1. Solve polynomial equations (Up to any degree)

  2. Solve system of linear equations (Up to any number of variables)

  3. Simplify Mathematical expressions

  4. Derive the polynomial equation of a graph from its image.

The Program:

Combined.m:

This is the main function of the program. This file takes as input the given image file. “uigetfile()” is used which displays a modal dialog box that lists files in the current folder and enables user to select or enter the name of a file. This image file is converted to text by OCR. This function contains all the other sub-functions of this program. After running OCR extracted text from image is save in a file named ‘extracted.txt’ in the same directory of image. (If no text is detected in the text file obtained after conversion from OCR then the image is passed on to the graphing.m function) i. funcNvar.m: This function takes as input the text obtained after processing the image. It detects ‘=’ sign and gives as output the number of variables in the text file. If the ‘=’ is not detected, then the text is passed onto the simplification.m file. Otherwise, if the number of variables is 1, then it is passed onto the funcpolynomial.m; if greater than 1, then it is passed onto funclinear.m.

ii. simplification.m: It takes as input the string from the text file. Thereafter, it gives as output, the final result of the simplification problem.

iii. funclinear.m: It takes as input the string from the text file. Thereafter, it gives as output, the augmented matrix and the solution set of the set of equations

iv. funcpolynomial.m: It reads the string input and give the roots (both real and complex) of the polynomial equations as output.

v. graphing.m: It takes the binary image matrix as input and provides the vector containing the coefficient values (in order of decreasing power of x) and the graph obtained from that equation as output.

photomath's People

Contributors

shadman-shahid 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.