Tools,

OmniParser v2 on a Mac, tested on 20 screenshots

176 of 180

buttons, links and inputs hit by a box

Screenshot text in one call

It finds the buttons, icons too

Boxes Hit, of 180 Icon-only, of 64
OmniParser v2 176 60
Tesseract words 141 39
Apple Vision lines 110 9

A hit: a box center lands inside the element, where an agent clicks. Icon-only: an icon or switch with no text.

Tesseract hits icons mostly with junk words, like 2 and Ti on a trash can. Nothing says which one deletes.

OmniParser's numbered boxes on a made-up invoice table. Every cell and icon has its own box, except row INV-1044, which sits inside one wide box
One of my 10 made-up screens, in OmniParser's own drawing. Box 24 covers the INV-1044 row, so its pencil and trash get no box.

On a CPU, its icon captions miss

Each icon box gets a caption from a small Florence-2 model. As shipped, on a CPU, 15 of 51 captions named the icon.

Icon As shipped With the fix below
Trash A cursor pointing to the top or bottom line. trash or recycle function.
Close X A blurry option to change the direction or direction. close or cancel action.
Gear White circle shape. Settings
Pencil A hand gesture or arm rest. an eraser tool.

It called a trash can a cursor. Then I changed one setting, and the trash can got its name back.

One setting: 11 times faster on a CPU

45.5 s a screenshot as shipped

4.1 s with the fix

39 of 51 captions right with it

On CUDA, OmniParser sends each 64 px icon crop to the captioner as it is. On a CPU it leaves out that flag, so every crop is blown up to 768 px first.

In util/utils.py, add the flag to the CPU line:

inputs = processor(images=batch, text=[prompt]*len(batch), return_tensors="pt", do_resize=False).to(device=device)

Install it: pin transformers 4.46.1

The README's pip install -r requirements.txt gets transformers 5.24.1 today. Then the caption model stops at load:

AttributeError: 'Florence2LanguageConfig' object has no attribute 'forced_bos_token_id'

This worked, with Python 3.12 and uv:

git clone https://github.com/microsoft/OmniParser
cd OmniParser
uv venv -p 3.12
uv pip install -r requirements.txt
uv pip install transformers==4.46.1
R=https://huggingface.co/microsoft/OmniParser-v2.0/resolve/main
mkdir -p weights/icon_detect_v3 weights/icon_caption_florence
curl -L -o weights/icon_detect_v3/model.pt $R/icon_detect_v3/model.pt
for f in config.json generation_config.json model.safetensors; do
  curl -L -o weights/icon_caption_florence/$f $R/icon_caption/$f
done
Run it from Python, and one more error

From the repo folder, as I ran it:

from util.omniparser import Omniparser

op = Omniparser({
    "som_model_path": "weights/icon_detect_v3/model.pt",
    "caption_model_name": "florence2",
    "caption_model_path": "weights/icon_caption_florence",
    "BOX_TRESHOLD": 0.05,
})
drawing, items = op.parse(png_base64)

Each item has a type, a box as fractions of the image, an interactivity flag and its text or caption.

If you install paddleocr 3 on its own, the import stops with ValueError: Unknown argument: use_dilation. The requirements file gets 2.10.0.

Its OCR text: 91% of the words

OmniParser reads screen text with EasyOCR. Here is the same text check for the other readers, 624 words on the 20 shots:

Reader Words right
Apple Vision 602
Our Actor's page code 584
Tesseract 573
OmniParser (EasyOCR) 570

If you need words, not buttons, a plain OCR reader does as well, in under a second a shot.

For the text alone, one call

Our Apify Actor, PDF to Markdown OCR, reads the text of a screenshot, scan or PDF. It finds no buttons and writes no captions. You send a file link and get the text back.

MIT detector, CC BY 4.0 code

What I tested, and what I did not

How I tested
  • OmniParser code at commit a2551142 (Nov 25, 2026), weights at f55d0750, through its own Omniparser class: EasyOCR, box threshold 0.05, overlap filter 0.7, the v3 detector, Florence-2 captions.
  • For the fix run I passed the flag from a wrapper, not by editing the file. The edit does the same.
  • Apple M5 Max, macOS 26.6, CPU only, 4 threads, network off. Another job shared the Mac, so times are rough.
  • The 10 screens were drawn in headless Chromium with my own text and simple icon shapes. The truth is each element's box from the page itself.
  • A caption counts as right if it names the icon or its action, from a word list set before the full run. It is lenient: "a pencil sharpener tool." counts for the pencil.
  • Words right: each true word counted once, in any order. Tesseract 5.5.4 at psm 3. Apple Vision accurate, en-US.
  • Times a shot: Tesseract 0.5 s, Apple Vision 0.3 s, our Actor's code 6.3 s.
Not tested
  • A GPU, the Mac GPU, or Windows.
  • Real app screenshots, or a model that plans clicks.
  • The Gradio demo's settings, OmniTool, or the AGPL detector.
Sources

Questions people ask

Does OmniParser run on a Mac?

Yes, on the CPU. Its code picks CUDA or the CPU, never the Mac GPU. Pin transformers 4.46.1, and pass do_resize=False to the captioner for about 4 seconds a screenshot.

Is OmniParser v2 free for commercial use?

The icon_detect_v3 detector and the icon_caption model are MIT. The code is CC BY 4.0, so credit Microsoft. The older icon_detect detector is AGPL-3.0. The requirements file also installs ultralytics (AGPL-3.0), which the v3 path never imports.

Does OmniParser do OCR?

Yes. It runs EasyOCR for the text on the screen and puts each text box in its list. On these screenshots it found 91% of the words. Apple Vision found 96%.