OmniParser

microsoftCC-BY-4.0活跃维护

把屏幕截图解析成结构化元素,让纯视觉 GUI Agent 能识别界面上的按钮、图标和文本,无需依赖 DOM 或控件树。

A simple screen parsing tool towards pure vision based GUI agent

v.2.0.1发布于 2025-09-12 20:34 UTC25,615star +4 / 7 天2,240fork同步于 2026-11-10 05:21 UTC

怎么上手

由 README 提炼,执行前请确认
cd OmniParser
conda create -n "omni" python==3.12
conda activate omni
pip install -r requirements.txt
huggingface-cli download microsoft/OmniParser-v2.0 icon_detect_v3/model.pt --revision refs/pr/37 --local-dir weights
硬件要求按 README 说明

README 未说明显存、CPU 或 GPU 型号要求

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把界面截图解析成结构化元素,让纯视觉 GUI Agent 能准确定位并操作

把屏幕截图解析成结构化元素,让纯视觉 GUI Agent 能识别界面上的按钮、图标和文本,无需依赖 DOM 或控件树。

核心能力

  • 将截图解析为结构化、易理解的界面元素
  • 检测细粒度小图标并预测元素是否可交互
  • 提供 YOLOv9-E 交互区域检测器
  • 支持接入 GPT-4V、DeepSeek、Qwen、Anthropic 等视觉模型
  • 附带 Gradio Demo 与 OmniTool 控制 Windows 11 虚拟机

容易踩的坑

需先手动从 Hugging Face PR #37 下载 YOLOv9-E 检测权重,PR 合并后才会自动下载;caption 权重下载后要把 weights/icon_caption 重命名为 weights/icon_caption_florence;早期基于 Ultralytics 的图标检测器仍沿用 AGPL 许可,商用需注意

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

3 个版本v.2.0.1
  1. v.2.0.1最新正式版2025-09-12 · 2025-09-12 20:34 UTC

    What's New in V2.0.1?

    • Security Updates
    • Dependencies Versioning Fixes
    • Documentation Improvements
  2. v.2.0.02025-02-13 · 2025-02-13 01:06 UTC
    查看更新说明

    What's new in V2.0.0?

    • Larger and cleaner set of icon caption + grounding dataset
    • 60% improvement in latency compared to V1 model checkpoints
    • Strong performance: 39.6 average accuracy on ScreenSpot Pro
    • Your agent only need one tool: OmniTool. Control a Windows 11 VM with OmniParser + your vision model of choice. OmniTool supports out of the box the following large language models - OpenAI (4o/o1/o3-mini), DeepSeek (R1), Qwen (2.5VL) or Anthropic Computer Use.
  3. v1.5.02025-02-13 · 2025-02-13 00:33 UTC
    查看更新说明

    From this version, we adopt semantic versioning for faster and more friendly development experience.

    What's Changed

    New Contributors

    Full Changelog: https://github.com/microsoft/OmniParser/commits/v1.5.0

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    OmniParser: Screen Parsing tool for Pure Vision Based GUI Agent

    arXiv License

    📢 [Project Page] [V2 Blog Post] [Models V2] [Models V1.5] [HuggingFace Space Demo]

    OmniParser is a comprehensive method for parsing user interface screenshots into structured and easy-to-understand elements, which significantly enhances the ability of GPT-4V to generate actions that can be accurately grounded in the corresponding regions of the interface.

    News

    • [2026/7] We add a YOLOv9-E interactive region detector. Its inference-only weight is available in Hugging Face PR #37.
    • [2025/3] We support local logging of trajecotry so that you can use OmniParser+OmniTool to build training data pipeline for your favorate agent in your domain. [Documentation WIP]
    • [2025/3] We are gradually adding multi agents orchstration and improving user interface in OmniTool for better experience.
    • [2025/2] We release OmniParser V2 checkpoints. Watch Video
    • [2025/2] We introduce OmniTool: Control a Windows 11 VM with OmniParser + your vision model of choice. OmniTool supports out of the box the following large language models - OpenAI (4o/o1/o3-mini), DeepSeek (R1), Qwen (2.5VL) or Anthropic Computer Use. Watch Video
    • [2025/1] V2 is coming. We achieve new state of the art results 39.5% on the new grounding benchmark Screen Spot Pro with OmniParser v2 (will be released soon)! Read more details here.
    • [2024/11] We release an updated version, OmniParser V1.5 which features 1) more fine grained/small icon detection, 2) prediction of whether each screen element is interactable or not. Examples in the demo.ipynb.
    • [2024/10] OmniParser was the #1 trending model on huggingface model hub (starting 10/29/2024).
    • [2024/10] Feel free to checkout our demo on huggingface space! (stay tuned for OmniParser + Claude Computer Use)
    • [2024/10] Both Interactive Region Detection Model and Icon functional description model are released! Hugginface models
    • [2024/09] OmniParser achieves the best performance on Windows Agent Arena!

    Install

    First clone the repo, and then install environment:

    cd OmniParser
    conda create -n "omni" python==3.12
    conda activate omni
    pip install -r requirements.txt
    

    Until Hugging Face PR #37 is merged, download the latest YOLOv9-E detector from the PR:

    huggingface-cli download microsoft/OmniParser-v2.0 icon_detect_v3/model.pt \
      --revision refs/pr/37 --local-dir weights
    

    OmniParser prefers this local weight. After the PR is merged, it will download the same weight automatically on first use. Download the caption weights into the weights folder:

       for f in icon_caption/{config.json,generation_config.json,model.safetensors}; do huggingface-cli download microsoft/OmniParser-v2.0 "$f" --local-dir weights; done
       mv weights/icon_caption weights/icon_caption_florence
    

    Examples:

    We put together a few simple examples in the demo.ipynb.

    Gradio Demo

    To run gradio demo, simply run:

    python gradio_demo.py
    

    Model Weights License

    icon_detect_v3 is based on the MIT-licensed YOLOv9 implementation. Earlier Ultralytics-based icon detectors retain their original AGPL license. The caption models are under the MIT license.

    📚 Citation

    Our technical report can be found here. If you find our work useful, please consider citing our work:

    @misc{lu2024omniparserpurevisionbased,
          title={OmniParser for Pure Vision Based GUI Agent}, 
          author={Yadong Lu and Jianwei Yang and Yelong Shen and Ahmed Awadallah},
          year={2024},
          eprint={2408.00203},
          archivePrefix={arXiv},
          primaryClass={cs.CV},
          url={https://arxiv.org/abs/2408.00203}, 
    }