Mirage: pulling objects and text from photos with a 220 MB vision model

At 220 MB it even detects, but it reads English primarily; check Korean documents separately.

Mirage is a compact vision model Cactus Compute released under Apache-2.0: 216 MB of weights plus a 21.6 MB engine, covering scene description, detection, segmentation and text recognition in one model. One line gives a first result after install.

Requirements and key details
  • 216 MB of weights plus a 21.6 MB engine.
  • Detection, segmentation and OCR run in one model.
  • The card lists English, German, French, Spanish, Italian, Dutch and Polish.

Four jobs in one model

From one photo it handles scene description, object detection, segmentation and OCR1 together, so an initial check does not require a different model per task.

Rather than swapping tags like Florence-2, you call the operation you want from the Python package. Check the output structure in the card's examples first.

A person at a laptop is surrounded by connected document, spreadsheet, folder, image, settings, and robot panels
216 MB of weights covers detection, segmentation and OCR in one model.

Installation and first run

Installing the package downloads and caches the engine and weights on first use, so the first run needs network and later runs stay local.

Start with one photo. If the output is empty or odd, change the size or background and retry; a single-object photo is easier to judge than a crowded scene.

Install and first call
pip install -U cactus-compute

import cactus
print(cactus.Mirage().describe("photo.png"))
The first call downloads and caches the engine and weights.

Where Korean material needs care

The card lists English, German, French, Spanish, Italian, Dutch and Polish. Korean is not on it, so Korean OCR output should not be used as is.

For Korean documents, compare with document-focused models such as Xiaomi-OCR-0 or PaddleOCR-VL. If you only need detection and segmentation, the language limit matters less.

A small computer running a search system beside document stacks
Only the first call downloads; later runs stay local.

How to review the output

Check in order: whether boxes wrap the objects, whether masks follow the outline, and whether digits come through exactly. Judging all three at once hides the source of the error.

In production keep a human check, since a compact model trades recall for speed; using it to narrow candidates is the safer role.

A waveform and a document on a monitor feed into a padlocked enclosure, while a dashed line toward the cloud is crossed out
Korean OCR is not on the list, so compare a dedicated model.

Terminology notes

  1. OCR — The process of recognizing characters in images or scanned documents and turning them into text. Table layout and reading order still need the original image to verify.

    Back to the text

Frequently asked questions

What should you check first in this article?
Mirage is a compact vision model Cactus Compute released under Apache-2.0: 216 MB of weights plus a 21.6 MB engine, covering scene description, detection, segmentation and text recognition in one model. One line gives a first result after install.