How majidarif01/executor works
OmniParser turns screenshots into structured UI elements—detecting regions, describing icons, and extracting text—so a vision-based GUI agent can ground actions. Its companion episode runner selects screenshots from timelines, parses them, and writes annotated images and per-event JSON. The repository also contains accessibility-tree matching and keyboard-data ingestion/annotation workflows. Edges reflect explicit README statements or file references in the supplied source index; where implementation excerpts were unavailable, subsystem links are omitted rather than inferred.
Main entry points: parse.py Screenshot parser · runner.py Episode extraction · accessibility_tree.py Accessibility matcher · annotate_typing.py Typing screenshot annotation
Components 29
Screen parsing
- Screenshot parser
omniparser/parse.py - YOLO detector
omniparser/util/yolov9.py - OCR and caption models
omniparser/util/utils.py - Box annotation
omniparser/util/box_annotator.py - Icon descriptions
omniparser/semantic_meaning.py - Interactive demo
omniparser/gradio_demo.py - Structured UI elements
Episode annotation
- Runner CLI
Omniparser_Runner/cli.py - Episode extraction
Omniparser_Runner/runner.py - Timeline selection
Omniparser_Runner/timeline_reader.py - Extracted event models
Omniparser_Runner/models.py - Runner configuration
Omniparser_Runner/config.py - Annotation outputs
Omniparser_Runner/outputs.py - Annotated images and JSON
Accessibility matching
- Accessibility matcher
Accesibilitytree/accessibility_tree.py - Element finder
Accesibilitytree/find_element.py - Click matching
Accesibilitytree/ClickElement.py - Typing matching
Accesibilitytree/TypingElement.py - Drag hit testing
Accesibilitytree/find_drag_elements.py
Typing data workflows
- Episode ingestion
Data_ingetion/data_ingestion.py - Keyboard records
Data_ingetion/keyboard_data.py - Typing screenshot annotation
Data_parser/annotate_typing.py - Parse output writer
Data_parser/write_outputs.py - Typing annotations
Other components
- GUI agent
- UI screenshots
- Episode timeline
- Timeline with accessibility data
- Recorded episode data
Connections 29
- GUI agent → Screenshot parser: uses results
README.md - UI screenshots → Screenshot parser: parses
README.md - Screenshot parser → OCR and caption models: uses models
omniparser/parse.py - OCR and caption models → YOLO detector: loads detector
omniparser/util/utils.py - Screenshot parser → Structured UI elements: returns elements
omniparser/parse.py - Screenshot parser → Box annotation: annotates regions
- Screenshot parser → Icon descriptions: describes icons
- Interactive demo → Screenshot parser: runs parser
omniparser/gradio_demo.py - Runner CLI → Episode extraction: starts extraction
Omniparser_Runner/cli.py - Runner CLI → Runner configuration: reads defaults
Omniparser_Runner/cli.py - Episode extraction → Timeline selection: selects events
Omniparser_Runner/runner.py - Episode extraction → Extracted event models: builds records
Omniparser_Runner/runner.py - Episode extraction → Runner configuration: uses settings
Omniparser_Runner/runner.py - Episode extraction → Screenshot parser: parses screenshots
Omniparser_Runner/runner.py - Episode extraction → Annotation outputs: writes results
Omniparser_Runner/runner.py - Timeline selection → Episode timeline: reads timeline
Omniparser_Runner/timeline_reader.py - Annotation outputs → Annotated images and JSON: writes files
Omniparser_Runner/outputs.py - Accessibility matcher → Timeline with accessibility data: enriches events
Accesibilitytree/accessibility_tree.py - Accessibility matcher → Click matching: matches clicks
Accesibilitytree/accessibility_tree.py - Accessibility matcher → Typing matching: matches typing
Accesibilitytree/accessibility_tree.py - Accessibility matcher → Drag hit testing: resolves drags
Accesibilitytree/accessibility_tree.py - Accessibility matcher → Element finder: finds targets
Accesibilitytree/accessibility_tree.py - Recorded episode data → Episode ingestion: loads records
Data_ingetion/data_ingestion.py - Episode ingestion → Keyboard records: creates loader
Data_ingetion/data_ingestion.py - Typing screenshot annotation → Episode ingestion: loads typing records
Data_parser/annotate_typing.py - Typing screenshot annotation → Screenshot parser: parses screenshots
Data_parser/annotate_typing.py - Typing screenshot annotation → Parse output writer: writes annotations
Data_parser/annotate_typing.py - Keyboard records → Typing annotations: updates records
Data_ingetion/keyboard_data.py - Parse output writer → Typing annotations: writes JSON
Data_parser/write_outputs.py