luna_ocr / README.md
veela4's picture
Update README.md
9f6ce5a verified
---
title: Luna OCR
emoji: πŸŒ™
colorFrom: blue
colorTo: purple
sdk: static
pinned: false
license: mit
thumbnail: https://b.l3n.co/i/NgyTV5.jpg
tags:
- ocr
- text-extraction
- ai
- gemini
- thai-language
---
<hr>
<h1><b><center>Luna OCR</center></b></h1>
# <a href="https://huggingface.co/veela4/luna_ocr/blob/main/README.md" style="text-decoration: none; background-color: transparent;"><img src="https://huggingface.co/veela4/luna_ocr/resolve/main/preview.jpg"><h4 style="font-size: 1em; text-align: center;">"Extract text from any image with AI precision... Don't let language barriers limit your potential, The world is full of text to discover."</h1></a></h1>
---
### <h1 style="font-size: 1.75em; font-family: Segoe UI"><center>[FULLSCREEN](https://huggingface.co/veela4/luna_ocr/blob/main/README.md)</center></h1>
<hr>
### <center><h1 style="font-size: 1.75em; font-family: Segoe UI">[πŸš€ Live Demo](https://huggingface.co/veela4/luna_ocr) | [πŸ“₯ Download](https://huggingface.co/veela4/luna_ocr/tree/main) | [πŸ“‹ Documentation](https://huggingface.co/veela4/luna_ocr/blob/main/README.md)</h1></center>
<hr>
<style>β–Ό-preamble {
font-size: 2em;
}</style>
<details id="#contents">
<summary style="font-size: 2.25em; font-family: Segoe UI"><strong>πŸ“‹ Contents</strong></summary>
<hr>
# <h1 style="font-size: 1.5em;"><strong>
- [πŸŒ™ What is Luna OCR?](#β–Ό-preamble)<p>
- [βš™οΈ Usage](#β–Ό-usage)<p>
- [πŸš€ Features](#β–Ό-features)<p>
- [🎨 Capabilities](#β–Ό-capabilities)<p>
- [πŸ“„ Document Processing πŸ“‹](#β–Ό-documents)
- [πŸ‡ΉπŸ‡­ Thai Language Support 🌏](#β–Ό-thai)
- [πŸ–ΌοΈ Image Analysis πŸ“Έ](#β–Ό-images)<p>
- [πŸ”οΈ Example Images ](#β–Ό-examples)
- [πŸ“„ Processing Demo πŸ“‹](#β–Ό-processing)
- [πŸ“„ Output Formats οΏ½](#β–Ό-outputs)<p>
- [πŸ“„ Instalelation](#β–Ό-installation)<p>
- [πŸ“ Credits](#β–Ό-credits)<p>
- [License](#license)<p>
- [Disclaimer](#disclaimer)
</strong>
</h1>
</details>
<hr>
<details id="β–Ό-preamble">
<summary style="font-size: 2.25em; font-family: Segoe UI"><strong>πŸŒ™ What is Luna OCR?</strong></summary>
<hr>
<h1>
**Luna OCR** is an AI-powered text extraction application that transforms images into editable text with unprecedented accuracy. Built with Google's Gemini 2.5 Flash model, Luna specializes in multilingual text recognition with particular excellence in Thai language processing.
The name Luna, meaning 'moon' in Latin, represents illumination in darkness - bringing clarity to text hidden within images.
</h1>
</details>
<hr>
<details id="β–Ό-usage">
<summary style="font-size: 2.25em; font-family: font-family: Segoe UI"><strong>βš™οΈ Usage</strong></summary>
<hr>
<h1>
## <h1 style="font-size: 1.5em; text-align: center; font-family: Segoe UI"> Simple steps to extract text from any image:
| Step | Action |
| ----------------- | ------------------------------------------------------------------ |
| 1 | Upload your image (PNG, JPG, PDF supported) |
| 2 | Enter your Gemini API key (stored securely locally) |
| 3 | Click "Process Image" |
| 4 | Get extracted text with formatting preserved |
| 5 | Copy, edit, or download results |
| Optional | Enable Thai language optimization |
**πŸ”‘ API Key Setup:** Get your free Gemini API key from [Google AI Studio](https://makersuite.google.com/app/apikey)
</h1>
</h1>
<center><a href="https://huggingface.co/veela4/luna_ocr/resolve/main/LunaProcessing.png"><img src="https://huggingface.co/veela4/luna_ocr/resolve/main/LunaProcessing.png" alt="Luna Processing Interface" onclick="window.open('https://huggingface.co/veela4/luna_ocr/resolve/main/LunaProcessing.png', '_blank')"></a></center>
</details>
<hr>
<details id="β–Ό-features">
<summary style="font-size: 2.25em; font-family: font-family: Segoe UI"><strong>πŸš€ Features</strong></summary>
<hr>
<h1>
## <h1 style="font-size: 1.5em; text-align: center; color:white; font-family: Segoe UI"> Core capabilities that make Luna OCR special:</h1>
**<h1 style="font-size: 1.5em; text-align: center; color:white; font-family: Segoe UI">Key Features:**</h1>
<h1 style="font-size: 1em; text-align: center; color:white; font-family: Segoe UI">
βœ… **AI-Powered Accuracy** - Gemini 2.5 Flash model for superior text recognition
βœ… **Multi-Language Support** - Optimized for Thai, English, and 100+ languages
βœ… **Privacy First** - All processing happens locally, your images never leave your device
βœ… **Format Preservation** - Maintains original text structure and formatting
βœ… **Multiple File Types** - Supports PNG, JPG, JPEG, PDF, and more
βœ… **Real-time Processing** - Fast extraction with live progress indicators
βœ… **Responsive Design** - Works perfectly on desktop and mobile devices
</h1>
</details>
<hr>
<details id="β–Ό-capabilities">
<summary style="font-size: 2.25em; font-family: font-family: Segoe UI"><strong>🎨 Capabilities</strong></summary>
<hr>
<h1>
## Luna OCR excels in various document processing scenarios..
<p style="font-size: 2em; font-family: font-family: Segoe UI"><strong>You can achieve professional results with all these examples.</strong></p>
<hr>
<details id="β–Ό-documents">
<summary style="font-size: 1.75em; font-family: monospace"><strong>Document Processing πŸ“„</strong></summary>
<h1>
**Perfect for:**
- Business documents
- Academic papers
- Legal contracts
- Technical manuals
- Multi-page PDFs
**Features:**
- Page-by-page processing
- Table structure preservation
- Header/footer recognition
- Formatting maintenance
# **<center>Luna OCR</center>**
</h1>
</details>
<hr>
<details id="β–Ό-thai">
<summary style="font-size: 1.75em; font-family: monospace"><strong>Thai Language Support πŸ‡ΉπŸ‡­</strong></summary>
<h1>
**Specialized for Thai:**
- Proper word spacing
- Context-aware processing
- Cultural text understanding
- Mixed Thai-English support
**Advanced Features:**
- Tone mark recognition
- Complex character handling
- Traditional script support
- Modern typography processing
# **<center>Luna OCR</center>**
</h1>
</details>
<hr>
<details id="β–Ό-images">
<summary style="font-size: 1.75em; font-family: monospace"><strong>Image Analysis πŸ“Έ</strong></summary>
<h1>
**Image Types:**
- Screenshots
- Photographs
- Scanned documents
- Digital artwork with text
- Social media posts
**Processing Power:**
- Auto-enhancement
- Noise reduction
- Rotation correction
- Multi-format support
# **<center>Luna OCR</center>**
</h1>
</details>
<hr>
</details>
<hr>
<details id="β–Ό-examples">
<summary style="font-size: 2.25em; font-family: Segoe UI"><strong>πŸ”οΈ Example Images</strong></summary><hr>
<details id="β–Ό-processing">
<summary style="font-size: 1.75em; font-family: monospace"><strong>Processing Demo πŸ“„</strong></summary>
<img src="https://huggingface.co/veela4/luna_ocr/resolve/main/PDFPreview.png" alt="PDF Processing Demo">
<h1>
**Input:** Multi-page PDF documents
**Output:** Structured text with preserved formatting
**Features:** Table recognition, header/footer handling
# **LUNA OCR**
</details>
<hr>
<details id="β–Ό-outputs">
<summary style="font-size: 1.75em; font-family: monospace"><strong>Output Formats οΏ½</stronsg></summary>
<img src="https://huggingface.co/veela4/luna_ocr/resolve/main/RAWText.png" alt="Text Output">
**Available Formats:**
- Plain Text (clean, readable)
- Markdown (structured with tables)
- JSON (structured data)
- HTML (styled output)
**Export Options:**
- Copy to clipboard
- Download as file
- Direct editing
# **LUNA OCR**
</details>
</details>
<hr>
</h1>
<details id="β–Ό-installation">
<summary style="font-size: 2.25em; font-family: Segoe UI"><strong>πŸ’‘ Installation</strong></summary>
<hr>
<h1><strong>
## Quick Start Guide
```bash
# Clone the repository
git clone https://huggingface.co/veela4/luna_ocr
cd luna_ocr
# Install dependencies
npm install
cd server && npm install && cd ..
# Start the application
npm start
```
## Requirements
- Node.js 18+
- NPM or Yarn
- Modern web browser
- Gemini API key (free from Google AI Studio)
## Access Points
- **Frontend:** http://localhost:3000
- **Backend:** http://localhost:3002
- **Health Check:** http://localhost:3002/api/health
</strong>
</h1>
</details>
<hr>
<details id="β–Ό-credits">
<summary style="font-size: 2.25em; font-family: Segoe UI"><strong>πŸ“ Credits</strong></summary>
<hr>
<h1><strong>
Luna OCR is built with cutting-edge technologies and open-source libraries.
<p>**AI Model:** <a href="https://ai.google.dev/">Google Gemini 2.5</a> - Advanced multimodal AI</p>
<p>**Frontend:** <a href="https://react.dev/">React 19</a> - Modern UI framework</p>
<p>**Backend:** <a href="https://nodejs.org/">Node.js</a> + <a href="https://expressjs.com/">Express</a> - Server infrastructure</p>
<p>**3D Graphics:** <a href="https://threejs.org/">Three.js</a> - WebGL animations</p>
<p>**UI Components:** <a href="https://www.radix-ui.com/">Radix UI</a> - Accessible components</p>
<p>**Animations:** <a href="https://www.framer.com/motion/">Framer Motion</a> - Smooth transitions</p>
**Special thanks to the open-source community for making this project possible.**
</strong>
</h1>
</details>
<hr>
# License
This application is open source and available under the MIT License.
The MIT License specifies:
```
1. You can use, copy, modify but aren't subject to any illegal activites or selling this product
2. The software is provided "as is", without warranty of any kind
3. Authors are not liable for any claim, damages or other liability
4. You must include the original copyright notice and license in all copies
```
[Please read the full license here](https://opensource.org/licenses/MIT)
You're free to use Luna OCR for License purpose, for commercial applications please contact.
<hr>
| Allowed | Permission |
|:-------:|-----------------------------------------------------|
| πŸŒ™ | Use for personal projects |
| πŸŒ™ | Use for commercial applications |
| πŸŒ™ | Modify and distribute |
| πŸŒ™ | Create derivative works |
| πŸŒ™ | Private use |
| πŸŒ™ | Patent use |
# Disclaimer
```
Luna OCR processes images locally and does not store any user data.
API keys are encrypted and stored locally on your device.
The application requires a Gemini API key for text processing functionality.
Users are responsible for complying with applicable laws and regulations when processing documents.
```