Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 3.29 KB

PROPOSAL.md

File metadata and controls

51 lines (37 loc) · 3.29 KB

Description

This project will make it easy to get the LaTeX syntax of some equation, by just writing the equation on a paper and photographing it. It might even give you a computer generated image of the equation or solve it if it could, who knows.

Implementation

  • Our entire stack will be built using Python3 as our programming language- for faster development.
  • Web application built using Flask or Django, we chose a web application so that our generator works across platforms. We might also build an android and desktop generator using Kivy framework because of its cross-platform nature.
  • Image preparation and processing will be done with the help of the famous OpenCV library.
  • Optical character recognition will be implemented using the famous Tesseract library.

Timeline

Task Estimated Time
1 Image Processing, binarization.. etc 3 days
2 OCR, understanding the equation 2 Weeks
3 LaTeX syntax generator implementation 4 days
4 Frontend and testing 1 Week

If there is additional time we're going to implement another web frontend or make it recognize and generate multiple equations in the same image. Of course, not all math syntax is going to be recognized in our initial version -such as summations and integration- but our implementation is going to modular by design to make it easy to add new features in the future.

Samples

Input Image LaTeX code Rendered Equation
./img/c04c8ec07fb14e48b7b50edb9d92f9c4.png $f(x) = x^2$ $f(x) = x^2$

| ./img/f072eeaea18a4eca88b51b8e34702fdb.png | $g(x) = \frac{1}{x}$ | $g(x) = \frac{1}{x}$ | | ./img/bd0a3bd35fd34879a2ff6fee7e8fbd9e.png | $F(x) = \int^a_b \frac{1}{3} x^3$ | $F(x) = \int^a_b \frac{1}{3} x^3$ | | ./img/2b5ae09c4f2b49f694d9c88fa4cfe5db.png | $x = \sum^{10}_{n=0} n$ | $x = \sum^{10}_{n=0} n$ | | ./img/fedd16f3b3bc44b1a14cbddc5f3f2615.png | $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$ | $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$ |

References

[1] OpenCV Documentation [2] Setting up a Simple OCR Server. [3] LaTeX Documentation.