Repository navigation
Book Scanner
Ilyes BEN BRIK edited this page Jul 18, 2026
·
1 revision
The book scanner uses your phone's camera and AI to extract book information automatically.
-
Google Gemini API Key (free) β set
GEMINI_API_KEYin.env - Get your key at https://aistudio.google.com/apikey (no credit card needed)
- Without the key, falls back to Tesseract OCR (lower accuracy for Arabic)
- Go to π Books β π· Scan Book
- Select Front Cover mode
- Tap π· Take Photo β your phone camera opens
- Photograph the book's front cover (hold steady, good lighting)
- Tap π Analyze
- The AI extracts: Title and Author
- Select Back Page mode
- Photograph the back cover or last page (where ISBN usually is)
- Tap π Analyze
- The AI extracts: ISBN, Publisher, Publication Year
The results appear in editable fields:
- Review the extracted text β correct if needed
- Tap π Search in Library to check if you already own it
- If found β tap to view the book
- If not found β tap β Add this Book (pre-fills the form)
| Tip | Why |
|---|---|
| Use good lighting | Shadows confuse text recognition |
| Hold the phone parallel to the book | Avoid perspective distortion |
| Capture the full cover | Don't crop out author/title |
| Avoid glare | Glossy covers reflect light |
| Clean background | Place book on a solid surface |
The AI scanner reads:
- πΈπ¦ Arabic (including calligraphic/decorative fonts)
- π¬π§ English
- π«π· French
Google Gemini free tier allows:
- 15 requests per minute
- 1,500 requests per day
- Images are compressed to 800px before sending (saves quota)
If you hit the limit, wait 1 minute and try again.
If no GEMINI_API_KEY is configured, the app uses Tesseract OCR (installed in the container). OCR quality is lower, especially for:
- Decorative/calligraphic Arabic fonts
- Book covers with ornamental backgrounds
- Low contrast text
The editable fields still let you correct OCR errors before searching.
The scanner is available to Admin and User roles only (not Viewer).
Next: Managing Locations
Getting Started
Features
- Book Scanner
- Managing Locations
- Managing Books
- E-Book Plugin
- Publishers & Writers
- Lending System
- Reports & Export
User Guide
Administration
Developer
Release Notes