File size: 10,906 Bytes
373c769 41ff211 85a47fa 373c769 db62cb4 f7598ed 647a4a8 f7598ed db62cb4 647a4a8 db62cb4 647a4a8 b390531 f7598ed e654755 f7598ed e654755 ef9224a f7598ed 151015a f7598ed e654755 f7598ed ef9224a f7598ed ef9224a f7598ed 647a4a8 373c769 647a4a8 f7598ed 373c769 f7598ed 373c769 f7598ed 373c769 f7598ed 647a4a8 373c769 647a4a8 f7598ed 373c769 f7598ed 373c769 f7598ed f6011f3 f7598ed 647a4a8 487fce7 647a4a8 f7598ed 487fce7 f7598ed 487fce7 f7598ed 487fce7 f7598ed e654755 487fce7 e654755 487fce7 f7598ed 487fce7 f7598ed f6011f3 e654755 f7598ed e654755 f7598ed e654755 f7598ed e654755 f7598ed e654755 f7598ed f6011f3 487fce7 f6011f3 373c769 487fce7 647a4a8 373c769 647a4a8 f6011f3 f7598ed 647a4a8 f6011f3 f7598ed f6011f3 f7598ed f6011f3 f7598ed f6011f3 f7598ed f6011f3 f7598ed 647a4a8 f6011f3 f7598ed f6011f3 647a4a8 f7598ed f6011f3 f7598ed 151015a f7598ed 151015a f2d7250 151015a f2d7250 151015a 647a4a8 f7598ed 151015a f7598ed 151015a f7598ed 151015a f7598ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | ---
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.
``` |