I Tried Using AI to Detect Comic Panels in OnlyText

I’ve been building a comic panel view for OnlyText. When you fit a whole comic page on a phone screen, the dialogue can get hard to read. I wanted to zoom into one panel at a time and tap to move to the next one.
Once I started building it, I found just how differently comics lay out their panels. Pages with straight borders and clean gutters are easy to split. Then a tall panel sits beside two smaller ones, or a speech balloon or character crosses a border, and it’s harder to tell how much to show. Even with the boundaries right, getting the reading order wrong interrupts the story. If the zoom cuts off a line of dialogue, the reader has to go back to the full page. I’d fix one layout and run into another case on the next page.
Could a local model do it?
I wanted to try a small language model that could look at images. If it ran on a Mac or iPhone, readers could keep their pages on the device and I could avoid paying for each page processed.
I labeled the panel coordinates and reading order for the same 10 comic pages, containing 48 panels in total. I counted a detection as a match when the overlap covered at least half the area covered by either the predicted box or the reference box. I also counted pages where every panel and the full reading order were correct. Here are the results on those ten pages.
| Method | Matched panels | Pages with every panel in the right order |
|---|---|---|
| OnlyText’s existing detector | 21/48 | 3/10 |
| Gemma 4 12B · with numbered detection boxes as hints | 38/48 | 6/10 |
| Qwen3.8-27B · original page only | 37/48 | 7/10 |
| Claude Sonnet 5.5 · original page only | 43/48 | 8/10 |
| GPT-6.1 Terra · original page only | 46/48 | 9/10 |
| Apple PCC · original page only | 46/48 | 9/10 |
At first I thought numbering the panels that OnlyText had already found would help the model fill in the gaps. It helped on some pages, and on others the model carried over boxes that had already been split incorrectly. I tried larger models on my Mac too. Every local model I tested fell short of my 90% target.
Apple PCC did best when I gave it a single unmarked page. It matched 95.8% of the panels and got every panel and the reading order right on 90% of the pages. On the toughest page, it still missed two panels and got the order wrong. With a stricter overlap threshold, PCC matched 41 out of 48 panels and Terra matched 45. The difference matters when the reader zooms in.
Why haven’t I shipped it with PCC?
Apple’s Private Cloud Compute (PCC) gives developers API access to an Apple model running on its servers. Apple says developers can use it without cloud API charges if they’re enrolled in the App Store Small Business Program, have fewer than two million first-time App Store downloads for each app, and receive the PCC entitlement. If any app crosses the threshold or the developer loses program eligibility, Apple gives them six months from notification to switch to another solution. Apple’s PCC eligibility requirements
Apple also sets a daily usage limit for each user and says iCloud+ can increase it. That leaves how much of a comic book someone can process up to Apple’s quota. Free access is a good starting point. If a reader hits the limit halfway through a book, or Apple changes its policy, there’s only so much I can do. For now, that makes it hard for me to ship a panel view that depends on PCC as a regular feature. Apple’s PCC usage guidance
How much would I spend to make a panel easier to read?
PCC and GPT-6.1 Terra reached the level I was looking for in this comparison. I tested Terra through Codex without measuring its cost per page. To get a sense of paid API costs, I ran Sonnet on the same ten pages, which came to about $0.026. A page costs very little on its own, and the cost adds up as people keep reading and open more books. For panel view alone, that feels like too much to keep spending on model calls.
Panel view is still a feature I want to use myself. I’m thinking about how far I can take the existing approach, and whether it makes sense to bring in another method just for difficult pages.