Coder Social home page Coder Social logo

img2latex-mathpix's Introduction

Image2LaTeX

English | 中文

CI Status Releases License

Snip is an amazing app built by Mathpix to help you extract LaTeX (also text) from documents. It gives you the first 50 snips for free every single month. With the help of MathpixOCR and this supplementary app, you can now make up to 1000 OCR requests per month for free.

Image2LaTeX is a personal side project that keeps only core functions of the Snip such as convert images to certain LaTeX equation formats and OCR. For other advanced functions and unlimited snips, subscribe to the Snip for $4.99 per month.

Features

See the features section on MathpixOCR website.

New Featurs

  • Rendered equation view.

  • Setting panel for changing the API keys.

Requirements

  • Your API keys in your MathpixOCR dashboard (different from the Mathpix account used in the Snip app)

  • JDK 11 or higher version (OpenJDK is highly recommended) if you plan to use Image2LaTeX-x.x.x.jar

Run

Enter your API keys (without single quotes) at the first launch of this app.

To change your API keys, macOS and Windows users will find a menu item called API Key by clicking this app's menu bar icon.

Linux users need to change it manually by finding the config file and edit it by text editor.

Do not share your config file with others. This app will also not send your API keys to others except for MathpixOCR API server (see OCRRequest.java to learn how your API keys are used).

Usage

If you downloaded Image2LaTeX-x.x.x-os.zip, run this app with double-clicking the executable Image2LaTeX (or Image2LaTeX.bat on Windows) at Image2LaTeX-os/bin/ or with:

./Image2LaTeX

If you downloaded Image2LaTeX-x.x.x.jar and with a JAR launcher installed, run this app with double-clicking Image2LaTeX-x.x.x.jar or with:

java -jar Image2LaTeX-x.x.x.jar

Use your operating system's default methods (or other tools) to take a screenshot of equations or text (Shift (⇧)-Control (⌃)-Command (⌘)-4 on macOS by default).

The Image2Latex app will display the image you captured. Click Submit button to make OCR request. See demo section below.

Demo

demo

FQA

No native self-contained executable application or .exe provided?

Not yet. But, with the GA release of Java 14 in 2020, jpackage should be available for packaging self-contained JavaFX application. At that time, I will drop the release of .jar and .zip files and no one (except me) needs to install JDK anymore.

Why two types of the application released? Which one I should download?

The Image2LaTeX-x.x.x-os.zip is built with the Badass Runtime Plugin which has a huge size. You don't need to have JDK 11 installed for running this version.

Considering the people using similar apps, I assumed that a large percentage of users should have JDK installed. Therefore, a smaller size Fat JAR Image2LaTeX-x.x.x.jar has also released. Plus, the way to execute a .bat file on Windows OS is pretty ugly.

Any plans?

  • Add system tray icon support for some Linux distributions.
  • Implement cross-platform global keyboard listener to remove the Submit button.

Issues

Please first refer to the official API Docs about error types if an error dialogue is displayed.

Still have problems 🤔 ?

Welcome to open an issue with the bug or question label, but the time to fix non-vital bugs may not be guaranteed.

Contributions

Contributions are highly welcomed. Suggestions can be made through opening an issue with enhancement label. Pull Requests including bug fixes, new features, code style guidance, etc., will be reviewed as soon as possible.

License

This code is distributed under the terms of the Apache License 2.0.

img2latex-mathpix's People

Contributors

blaisewang avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.