Skip to content

Live camera text reader with mirror mode, multilingual OCR (English/Bengali/Hindi/Tamil), real-time object detection, and instant text-to-speech feedback. Built with OpenCV, pytesseract, gTTS, and ultralytics for accessible vision assistance.

Notifications You must be signed in to change notification settings

rivu-intel45/luna-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ท๐Ÿ—ฃ๏ธ Text Reader & Voice Assistant

A real-time, camera-powered text reader with multilingual OCR and voice playback. Bring text on paper or screens to life using your webcam! Supports English ๐Ÿ‡ฌ๐Ÿ‡ง, Bengali ๐Ÿ‡ง๐Ÿ‡ฉ, Hindi ๐Ÿ‡ฎ๐Ÿ‡ณ, and Tamil ๐Ÿ‡ฎ๐Ÿ‡ณ.


๐Ÿš€ Features

  • ๐ŸŽฅ Live Camera Preview with enhanced GUI overlay
  • ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ Instant OCR from a smart capture area
  • ๐Ÿ”Š Text-to-Speech for extracted text
  • ๐ŸŒ Multiple Languages: English, Bengali, Hindi, Tamil (press 1โ€“4)
  • โŒจ๏ธ Hotkey Controls:
    1๏ธโƒฃ 2๏ธโƒฃ 3๏ธโƒฃ 4๏ธโƒฃ โ€” Change language
    โฌœ SPACE โ€” Capture & Read Text
    ๐Ÿ” R โ€” Repeat Last Text
    โŒ Q โ€” Quit Application
  • ๐Ÿชž Mirror Mode for easy point-and-capture interface

๐Ÿ Getting Started

1๏ธโƒฃ Prerequisites

  • Python 3.7+
  • Tesseract OCR installed and added to your system PATH

2๏ธโƒฃ Installation

-git clone https://github.com/rivu-intel45/luna-reader.git -pip install -r requirements.txt

3๏ธโƒฃ Tesseract Setup

  • ๐ŸชŸ Windows: Download installer and complete setup
  • ๐Ÿง Linux: sudo apt-get install tesseract-ocr tesseract-ocr-ben tesseract-ocr-hin tesseract-ocr-tam
  • ๐Ÿ macOS: brew install tesseract For full language support, make sure ben.traineddata, hin.traineddata, and tam.traineddata are present in your tessdata folder.

โšก Usage

Update the Tesseract path in your code if needed: pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"

Then start the notebook or script and point your camera at the text inside the green capture box.


๐ŸŽ›๏ธ Controls

Key Action Emoji
1 Switch to English ๐Ÿ‡ฌ๐Ÿ‡ง
2 Switch to Bengali ๐Ÿ‡ง๐Ÿ‡ฉ
3 Switch to Hindi ๐Ÿ‡ฎ๐Ÿ‡ณ
4 Switch to Tamil ๐Ÿ‡ฎ๐Ÿ‡ณ
SPACE Capture & Read Text โฌœ๏ธ
R Repeat Last Text ๐Ÿ”
Q Quit Application โŒ

๐Ÿ“ฆ Dependencies

  • opencv-python
  • pytesseract
  • pillow
  • gtts
  • pygame
  • numpy

Install everything with: -pip install -r requirements.txt

๐Ÿ’ก Troubleshooting

  • โš ๏ธ Tesseract not found? Check the tesseract_cmd path and PATH configuration.
  • ๐Ÿ”‡ No audio? Verify system volume, default output device, and pygame installation.
  • ๐Ÿ“‹ No text detected? Improve lighting, adjust focus, and keep text fully inside the capture box.

๐Ÿ™Œ Contributing

Pull requests are welcome!
For major changes, please open an issue first to discuss what you would like to improve or add.

About

Live camera text reader with mirror mode, multilingual OCR (English/Bengali/Hindi/Tamil), real-time object detection, and instant text-to-speech feedback. Built with OpenCV, pytesseract, gTTS, and ultralytics for accessible vision assistance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published