--- license: other license_name: annotations-cc-by-4.0-screenshots-research-only language: - en - tr task_categories: - object-detection tags: - gui - ui-element-detection - screen-parsing - computer-use - screenshots - yolo size_categories: - 1K`, `role=button/tab/menuitem` | | 1 | `link` | links, and list or tree items in sidebars and file views | | 2 | `input` | text fields, search boxes, textareas, spin boxes, contenteditable | | 3 | `checkbox` | checkboxes, radio buttons, switches | | 4 | `select` | dropdowns and combo boxes | ## Format Hugging Face `imagefolder`: `data/{train,validation}/*.jpg` plus a `metadata.jsonl` file. ```json { "file_name": "0ebed0962cef1da5.jpg", "width": 1366, "height": 768, "source": "web", "url": "https://getbootstrap.com/docs/5.3/examples/checkout/", "color_scheme": "light", "objects": { "bbox": [[172, 358, 293, 38]], "category": [2], "text": ["Name on card"] } } ``` - `bbox` is `[x, y, width, height]` in pixels (COCO style). - `text` is the element's accessible name or visible text. For inputs it is the value or placeholder, and for selects the selected option. It can be an empty string. ```python from datasets import load_dataset ds = load_dataset("bugraakdemir/ui-elements") ``` `yolo/ui_elements_yolo.zip` holds the same data in Ultralytics YOLO format, including `data.yaml`: ```bash yolo detect train data=data.yaml model=yolo11n.pt imgsz=1280 epochs=100 ``` Use a large `imgsz` (1280). UI elements are small, and at 640 many of them get lost. ## Known limitations - This is a first version and it is small. Web pages dominate, and `link` is by far the most common class. You may want to weight or oversample the rarer classes. - There is no Windows or macOS UI yet. On the desktop side, only KDE/Qt apps and one GTK app (pavucontrol) are included. Desktop windows are maximized and have no title bar. - Labels come from the DOM and the accessibility tree, so they inherit those sources' mistakes: - Custom widgets without proper roles are missed. - Some elements are over-labeled, for example whole sidebar groups marked as links. - There is no separate `icon` class. Clickable icons are labeled `button` or `link`. ## License - **Annotations** (boxes, classes, texts, metadata): CC BY 4.0. - **Screenshots of third-party websites:** the content in them belongs to the respective site owners. They are included only for research and model training on UI understanding. If you own a site that appears here and want it removed, open a discussion on this repository and it will be taken out. - **Synthetic forms and desktop screenshots:** made from open-source software.