Add your description here
Project description
Quack2Tex 🦆
Ever found yourself battling with equations while writing papers in LaTeX, wishing there was a way to just snap a picture and boom—LaTeX code? Well, I did too. After too many late nights and too much coffee, I finally decided to do something about it. The result? Quack2Tex.
Quack2Tex is a handy tool that facilitates turning images of math equations and charts into LaTeX code, quickly and easily!. But it doesn't stop there! It also has cool features like guessing the location from a photo, identifying recipes from food pictures, and explaining code from images. Rendered as a floating menu on your screen, Quack2Tex is always at your fingertips, making it easy to access anytime you need it.
🚀 Features
-
2024-10-18: Quack2Tex v1.0.0 is out! 🎉
- Added functionality for users to customize the rubber-duck menu. A new "Settings" option allows users to create and manage custom actions.
- Action Grouping: Users can now group actions in the settings menu for better organization and streamlined access.
- Multimodal Selection: Users can now choose which model or combination of models to use for generating outputs, enhancing flexibility and multimodel inference.
- New Input Mode: A "Clipboard" input mode has been introduced, enabling users to use clipboard content as input for selected actions.
-
2024-9-10: Quack2Tex was released! 🎉
- Image to LaTeX: Convert pictures of equations or symbols into LaTeX code—no more manual typing!
- Location Guessing: Upload a photo, and Quack2Tex will try to figure out where it was taken.
- Recipe Finder: Snap a picture of your meal, and Quack2Tex will tell you what dish it is.
- Code Explainer: Got a screenshot of code? Quack2Tex can explain what it does.
See the video below for a demo of Quack2Tex in action:
🧠 Powered By
Under the hood, Quack2Tex leverages state-of-the-art multimodal models like Gemini, GPT-4o, and Lava to analyze the content in the images. Whether you're converting handwritten notes into LaTeX or identifying the location of a stunning sunset photo, Quack2Tex has you covered.
🔧 Installation
To get started with Quack2Tex, follow these steps:
pip install quack2tex
📚 Usage
In the terminal, run the following command:
quack2tex --google_api_key <GOOGLE_API_KEY> --openai_api_key <OPENAI_API_KEY>
make you set the env variables GOOGLE_API_KEY
and/or OPENAI_API_KEY
for using google and openai models respectively.
You can also use LLava models through the ollama api.
You can also run the app from python, see the main.py
file for an example.
📝 Roadmap
- Support clipboard copy to be used in the prompt
- Support gemini, gpt-4o, and lava models
- Allow user add custom actions to the rubber-duck menu
- Persist images and results in a database
- Create window, mac, and linux executables
🤝 Contributing
Want to help make Quack2Tex better? Feel free to contribute by following these steps:
- Fork the repo.
- Create a new branch.
- Make your changes.
- Commit and push your changes.
- Open a Pull Request.
🛠️ Troubleshooting
If you run into any problems, check out the Issues section on GitHub.
📄 License
Quack2Tex is open-source and available under the MIT License—see the LICENSE file for more details.
📧 Contact
Got questions? You can reach out to me at henryruiz22@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quack2tex-1.0.2.tar.gz
.
File metadata
- Download URL: quack2tex-1.0.2.tar.gz
- Upload date:
- Size: 17.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1bc763f5e4f54c00a5ddd640a75706dd7e06124bb2c8d84d1fdc36efe59dc2 |
|
MD5 | 84849a3c106de6e2fcff09457df1e7f0 |
|
BLAKE2b-256 | acc530065607f9bbc54f888112f9f241b875f63e0a8e4ff96e27b3974c6ac02b |
File details
Details for the file quack2tex-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: quack2tex-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc76ac22c0b2edf002f5f53d61933f92bf46e8e53ecfb655b31aebb329d582e1 |
|
MD5 | 98ccb9a3836149eeba367307b2ec980a |
|
BLAKE2b-256 | 96c5f1692525fc9268ecb84092e195984cff7985a7b23a076d28f930a0613acc |