6

I'm planning on creating a program to generate worked solutions for problems in a math text book by using OCR to pipe the equations into Wolfram Alpha and then displaying the step-by-step solutions from there. The equations wouldn't be too complex

some equations as example

I'm wondering if there is a suitable OCR program (preferably FOSS) or API that will be able to handle these equations.

phuclv
  • 37,963
  • 15
  • 156
  • 475
Aaron
  • 79
  • 1
  • 1
  • 4
  • Wolfram alpha already has the OCR feature so you can consider using everything from a single provider. – ssasa Oct 23 '17 at 06:11
  • Possible duplicate of [OCR lib for math formulas](https://stackoverflow.com/questions/3570220/ocr-lib-for-math-formulas) – Anderson Green Sep 20 '18 at 02:45

4 Answers4

8

Please take a look at Mathpix (https://mathpix.com/api.html). Disclaimer: I am the founder of Mathpix!

nicodjimenez
  • 1,180
  • 17
  • 15
1

Take a look at https://photomath.net/ they also offer a SDK. For a free OCR SDK consider https://github.com/tesseract-ocr.

rmhrisk
  • 1,814
  • 10
  • 16
1

https://github.com/falvaro/seshat this is exactly what you are looking for. But unfortunately, I am unable to compile it, as this code was written 7 years ago.

I Will update the answer if I am able to compile it.

You can have a trial for the above github repo at http://cat.prhlt.upv.es/mer/

Abhay Patil
  • 389
  • 5
  • 19
1

There are some specialised math equation OCRs such as mathpix. They offer targetted solutions for math equations and thus I assume they should have pretty good effects on the simple equations you are tackling on.

On the other hand, I believe it is also possible to use OCR libraries such as Tesseract yourself if its just very specific math equations. You can refer to how to install the proper language for math in Tesseract here and how to use Tesseract and OpenCV here. They offer a wider range of coding flexibility as you may want to preprocess images, etc.

CT_gogo
  • 11
  • 2