New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-latex-ocr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-latex-ocr

A simple LaTeX OCR package

  • 0.0.9
  • PyPI
  • Socket score

Maintainers
1

Simple-LaTeX-OCR

Performance

BLEU scorenormed edit distancetoken accuracy
0.920.050.75

Online experience

https://huggingface.co/spaces/chaodreaming/Simple-LaTeX-OCR

https://www.modelscope.cn/studios/chaodreaming/Simple-LaTeX-OCR/summary

Install the package simple_latex_ocr:

pip install simple_latex_ocr

Use from within Python

from simple_latex_ocr.models import Latex_OCR
model = Latex_OCR()
img_path = "tests/test_files/5.png"
result = model.predict(img_path)
print(result['formula'])
print(result['confidence'])
print(result['elapse'])
Used by command line
$ simple_latex_ocr tests/test_files/2.png
Used by api
$ python -m simple_latex_ocr.api.run

#You can use test.py to initiate a request for verification

Using streamlit has a nice interface, but you can only select files locally.

streamlit run streamlit_app.py

img.png Using flask you can copy the formula directly

python flask_app.py

Contribution

Contributions of any kind are welcome.

Acknowledgment

Code taken and modified from lukas-blecher, RapidAI,ultralytics

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc