Skip to content

Python web app which uses Onnx OCR model to output inline mathematical notations. Rendered in LaTeX with KaTeX font library.

License

Notifications You must be signed in to change notification settings

incubated-geek-cc/math_ocr

Repository files navigation

Math OCR

Motivation

Enable more intuitive rendering of complex mathematical notations into LaTeX typesettings without having in-depth knowledge of LaTeX syntax.

Features & Functionalities

  • Open Neural Network Exchange (Onnx) OCR models at 📁 models were originally retrieved from RapidLaTeXOCR and deployed on Python Flask App

  • Onnx OCR models reads input graphical data of math equations and outputs:

    • Math Inline notations
    • LaTeX typesetting using KaTeX JavaScript library
    • HTML markup of formatted output

Preview

Upload image of math formualae

Upload image

Draw math equation on HTML canvas

Draw on canvas

Demo

Python Flask Web App deployed on Render.

Purpose of .bat files

Filename Description
requirements.txt Contains list of Python package dependencies for application
pip_freeze.bat Extract used python packages intorequirements.txt file
pip_install_requirements.bat Install all python packages inrequirements.txt file
upgrade_pip.bat Upgrade pip used in virtual environment
activate_env.bat Activate virtual environment named .env
run_app.bat Run web app in dev environment on port 5000

Credits and Acnowledgement

  • RapidLaTeXOCR (for Onnx Math OCR models)
  • KaTeX JavaScript library, an open-sourced library to display LaTeX-formatted math formulae and equations on digital print

Related Readings

Join me on 📝 Medium at ~ ξ(🎀˶❛◡❛) @geek-cc


🌮 Please buy me a Taco! 😋

About

Python web app which uses Onnx OCR model to output inline mathematical notations. Rendered in LaTeX with KaTeX font library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published