GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vertexi/ImMathWriter: ImMathWriter, an open source offline math formula OCR app.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

5,818 Commits
5,818 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
cmake
cmake
 
 
docs
docs
 
 
examples
examples
 
 
imgs
imgs
 
 
misc
misc
 
 
thirdparty
thirdparty
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
imconfig.h
imconfig.h
 
 
imgui.cpp
imgui.cpp
 
 
imgui.h
imgui.h
 
 
imgui_browser.cpp
imgui_browser.cpp
 
 
imgui_demo.cpp
imgui_demo.cpp
 
 
imgui_draw.cpp
imgui_draw.cpp
 
 
imgui_internal.h
imgui_internal.h
 
 
imgui_widgets.cpp
imgui_widgets.cpp
 
 
imstb_rectpack.h
imstb_rectpack.h
 
 
imstb_textedit.h
imstb_textedit.h
 
 
imstb_truetype.h
imstb_truetype.h
 
 
sdl_keyboard_utils.h
sdl_keyboard_utils.h
 
 
vcpkg.json
vcpkg.json
 
 
whereami.c
whereami.c
 
 
whereami.h
whereami.h
 
 

Repository files navigation

ImMathWriter

A desktop application which takes an image of math formula and return corresponding LaTeX code.

This project used the following open source projects:

  • Mathematical Formula Recognition Model (MFR): breezedeus/pix2text-mfr (For formula recognition)
  • Imgui: ocornut/imgui (For GUI)
  • chromium embedded framework: chromiumembedded/cef (For rendering math formula in html)
  • Katex: Khan/KaTeX (For rendering math formula)
  • zeromq: zeromq/libzmq (For inter-process communication)

The usage

  1. Download the release version from Releases
  2. Run the executable file
  3. Capture an image of the math formula into clipboard (shift + win + S on windows platform)
  4. Click the "Convert formula from clipboard" button and wait for the result
  5. Copy the Tex result to the clipboard.

The screenshot

screenshot

Development Notes

This application is really quick dirty hack based on hendradarwin/imgui cef-support branch. It's not a well-structured project.

build step:

  1. Clone the project
  2. install python dependencies: follow the instructions from hugging face
  3. pip install pyinstaller
  4. step into example_sdl_opengl2 folder, run python export_onnx.py to save the onnx model in local folder
  5. run pyinstaller texocr_pix2tex.spec to package up the python script and onnx model
  6. download cef_binary_3.3578.1860.g36610bd version cef prebuild archive from Chromium Embedded Framework (CEF) Automated Builds, and unzip it into thirdparty/cef
  7. use cmake build the project with vcpkg
  8. copy the packaged texocr_pix2tex program into target build folder

Roadmap

  • hotkey
  • support rendering math formula in other font
  • support other platforms
  • trim down the dependencies and python package size

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

About

ImMathWriter, an open source offline math formula OCR app.

Topics

applicationcppimg2latexlatexmath-formulamath-formula-recognitionmath-ocrocrocr-recognitiononnxruntime

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.