Ascon bubble detector
ultra-lightweight text and speech bubble detector for comics
2 min read
This model is a compact tool based on the YOLOX-tiny architecture designed to detect speech bubbles and text on comic and manga pages. It weighs just 5.6 MB and is saved in a static int8 ONNX format (an open format for running AI models across different devices), allowing it to run directly on mobile gadgets. Created for local comic translation, the solution outperforms the original teacher model significantly while showing high accuracy on test pages. It is useful for developers of mobile comic reading and translation apps.
Key features
- Compact size: The model weighs only 5.6 MB thanks to int8 quantization.
- High speed: Processing a page fragment on a smartphone with a MediaTek processor takes about 55 ms.
- Mobile optimization: Designed specifically to run on resource-constrained devices.
- Precise detection: Distinguishes regular bubbles, text inside them, and captions outside of bubbles.
What you can do
- Integrate into a reader: Add automatic speech recognition to a mobile comic reading app.
- Build a translator: Use the model as the first step in an on-the-fly local manga and comic translation pipeline.
- Run on a smartphone: Integrate the detector into offline image processing apps using ONNX Runtime.
Example
The model accepts a float32 input image of size [1, 3, 448, 448] (BGR, values from 0 to 255) and outputs a tensor with bounding box coordinates and class scores for subsequent filtering.
Read more
DetailsMetrics: text recognition accuracy 88.7% (recall 95.4%), bubbles — 81.2% (recall 93.2%)
Hardware: optimized for mobile chips (e.g., MediaTek MT6877)
Training: 60 epochs at 448 px resolution on a T4 GPU, int8 ONNX format
License: Apache-2.0










Comments