File size: 1,168 Bytes
e5e2c9f
 
595b88e
 
 
e5e2c9f
595b88e
f7558a5
e5e2c9f
 
 
 
595b88e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Book Cover Analyzer
emoji: πŸ“š
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.0.2
app_file: app.py
pinned: false
license: mit
---

# πŸ“– Book Cover Analyzer

An AI-powered book cover analysis tool that automatically detects:

- **πŸ“š Book Title** - Inferred from detected text
- **✍️ Author(s)** - Extracted using heuristics
- **🏒 Publisher** - Identified from text positioning
- **πŸ–ΌοΈ Visual Elements** - Classified using ResNet18 (ImageNet)
- **πŸ“ All Text** - Extracted using EasyOCR

## Technologies

- **Computer Vision**: OpenCV
- **Deep Learning**: PyTorch ResNet18
- **OCR**: EasyOCR
- **Interface**: Gradio

## How It Works

1. **Text Detection**: EasyOCR extracts all text regions
2. **Text Interpretation**: Heuristics infer title/author/publisher based on position and formatting
3. **Image Classification**: ResNet18 classifies visual elements (book jacket, person, etc.)
4. **Smart Analysis**: Combines OCR + computer vision for comprehensive results

## Deploy Your Own

This app can run on:
- **Hugging Face Spaces** (Free - 16GB RAM)
- Local machine with Python 3.9+

Built with ❀️ using OpenCV and PyTorch.