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.
- 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.
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.
Input Image | LaTeX code | Rendered Equation |
---|---|---|
$f(x) = x^2$ |
|
| $g(x) = \frac{1}{x}$
| $F(x) = \int^a_b \frac{1}{3} x^3$
| $x = \sum^{10}_{n=0} n$
| $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$
|
[1] OpenCV Documentation [2] Setting up a Simple OCR Server. [3] LaTeX Documentation.