https://github.com/zwldarren/liteocr
A lightweight OCR tool that converts screenshots to Markdown using AI models.
https://github.com/zwldarren/liteocr
ai ocr pyside6 python qt tool
Last synced: 12 months ago
JSON representation
A lightweight OCR tool that converts screenshots to Markdown using AI models.
- Host: GitHub
- URL: https://github.com/zwldarren/liteocr
- Owner: zwldarren
- License: mit
- Created: 2025-05-18T04:48:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-31T12:10:40.000Z (about 1 year ago)
- Last Synced: 2025-05-31T23:54:18.774Z (about 1 year ago)
- Topics: ai, ocr, pyside6, python, qt, tool
- Language: Python
- Homepage:
- Size: 258 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LiteOCR - AI-Powered OCR Tool
This is an AI-powered OCR tool. You can use hotkeys to capture screen content, then send it to large language models for processing, automatically converting it into Markdown format. The processed result will be automatically copied to the clipboard, making it convenient for you to directly paste where needed.
## β¨ Features
- **Quick Screenshot**: Use changeable hotkeys to quickly capture screen areas, send them to large language models, and convert them into Markdown format.
- **System Tray Management**: Convenient system tray icon management.
- **Support for multiple model providers**: OpenAI, OpenAI compatible, Google AI Studio (Gemini), Ollama.
## π Installation and Running
### Install Dependencies
```bash
# Install dependencies using pip
pip install -e .
# or
# Install dependencies using uv
uv sync
```
### Run the Program
If you don't want to run the program from source, you can directly download the executable file.
Go to the [Releases](https://github.com/zwldarren/LiteOCR/releases) page to download the latest executable file, then double-click to run `liteocr.exe`.
### Run from Source
```bash
# Generate resource files using PySide6
uv run pyside6-rcc resources/resources.qrc -o src/liteocr/resources_rc.py
# Run the program
uv run liteocr
```
## π οΈ How to Use
1. After running the program, an icon will appear in the system tray.
2. Right-click the icon to see menu options:
- "Settings": Configure API key and model name.
- "Exit": Exit the program.
3. Use the hotkey `Ctrl+Alt+S` to select a screen area.
4. The program will automatically process the screenshot and perform the conversion. The result will be automatically copied to the clipboard.
## π License
[MIT License](LICENSE)