Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,31 @@ pinned: false
|
|
| 11 |
short_description: Using YOLO to detect comic panels and text
|
| 12 |
---
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 11 |
short_description: Using YOLO to detect comic panels and text
|
| 12 |
---
|
| 13 |
|
| 14 |
+
|
| 15 |
+
# ๐ ebookcc - AI Comic Panel & Text Detector (Demo)
|
| 16 |
+
|
| 17 |
+
Welcome to the AI vision core demo for **ebookcc**! This Space hosts a custom-trained **YOLO26n-seg** instance segmentation model, optimized specifically for comics, manga, manhwa, and standard book layouts.
|
| 18 |
+
|
| 19 |
+
## ๐ Live Demo Features
|
| 20 |
+
1. **Panel Detection**: Automatically identifies the boundaries of comic frames, preparing them for reading-flow re-layout.
|
| 21 |
+
2. **Text Bubble Segmentation**: Pinpoints all speech bubbles and on-page text areas precisely, making them ready for seamless AI OCR integration.
|
| 22 |
+
|
| 23 |
+
## ๐ ๏ธ Tech Stack & Background
|
| 24 |
+
This web demo is part of the [ebookcc.com](https://ebookcc.cptd.workers.dev/) project.
|
| 25 |
+
- **Backend Model**: Fine-tuned based on Ultralytics YOLO11m-seg.
|
| 26 |
+
- **Frontend Deployment**: The full Web App runs on the user's browser via TF.js and deeply integrates with Cloudflare Workers to reduce server costs.
|
| 27 |
+
|
| 28 |
+
## ๐ How to Use This Model Locally
|
| 29 |
+
If you want to call this model in your own Python project, please check out our [Hugging Face Model Card](https://huggingface.co/Oliverdsfdsf/ComicPabelsAndTextDetect).
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
from ultralytics import YOLO
|
| 33 |
+
|
| 34 |
+
# Load the model
|
| 35 |
+
model = YOLO("comic-panels-and-text-detect.pt")
|
| 36 |
+
|
| 37 |
+
# Predict with optimal manga settings
|
| 38 |
+
results = model.predict("manga_page.jpg", imgsz=1280, conf=0.25)
|
| 39 |
+
results[0].show()
|
| 40 |
+
|
| 41 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|