An AI-powered bookshelf scanner that uses OpenAI's Vision API to automatically detect and catalog books from photos.
- Live Camera Scanning: Real-time book detection using your device's camera
- Photo Upload: Upload HEIC/JPEG images of your bookshelf
- AI-Powered Detection: Uses OpenAI Vision API for accurate book title recognition
- Classy Design: Sophisticated, elegant interface with luxury aesthetics
- Library Management: Search, export, and manage your book collection
- HEIC Support: Automatic conversion of iPhone HEIC photos to JPEG
-
Clone the repository
git clone https://github.com/Clayjohnson75/Bookshelf-scanner.git cd Bookshelf-scanner -
Set up environment variables
export OPENAI_API_KEY="your_openai_api_key_here"
-
Install Python dependencies
pip install pillow pillow-heif
-
Start the server
python proxy-server.py
-
Open your browser Navigate to
http://localhost:8080
- Fork this repository on GitHub
- Connect to Vercel and import your fork
- Add environment variable in Vercel dashboard:
OPENAI_API_KEY: Your OpenAI API key
- Deploy - Vercel will automatically build and deploy
OPENAI_API_KEY: Your OpenAI API key (required)
- Get your API key from OpenAI Platform
- For local development: Set the environment variable
- For Vercel: Add it in your project's environment variables
- Chrome 60+ (recommended)
- Firefox 55+
- Safari 11+
- Edge 79+
- All book data is stored locally in your browser
- No personal data is sent to external servers
- Only book titles are sent to Google Books API for identification
- Camera feed is processed locally and never transmitted
- Ensure good lighting on your bookshelf
- Hold camera steady for a few seconds
- Position camera so book spines are clearly visible
- Try different angles if books aren't detected
- Use high-resolution photos for better text recognition
- Ensure book spines are clearly visible and well-lit
- Avoid blurry or angled photos
- Close-up photos of individual shelves work better than full bookcase shots
- Ensure you've granted camera permissions
- Try refreshing the page and allowing permissions again
- Check if other applications are using the camera
- Use HTTPS (required for camera access)
- Improve lighting conditions
- Move closer to the bookshelf
- Ensure book spines are clearly visible
- Try different angles or positions
- The app includes delays to avoid overwhelming book APIs
- If you encounter rate limits, wait a few minutes before continuing
- Barcode scanning for more accurate identification
- Integration with additional book databases
- Social features for sharing libraries
- Advanced filtering and sorting options
- Book recommendation engine
MIT License - Feel free to modify and distribute as needed.