Datasets:
image imagewidth (px) 1.44k 1.44k | label class label 0
classes |
|---|---|
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null | |
null |
UI elements on web pages
1,396 screenshots of public web pages (1440×900, scale 1) with 84,115 boxes in COCO format: the clickable controls, and also the plain text and pictures around them. The labels were read from each page's structure by a script, not drawn by hand.
| Split | Images | Sites | icon |
text_control |
input |
text |
image |
Labels that are controls |
|---|---|---|---|---|---|---|---|---|
| train | 1,272 | 152 | 13,775 | 45,905 | 1,541 | 15,510 | 382 | 59,148 |
| valid | 31 | 7 | 393 | 916 | 11 | 326 | 10 | 1,250 |
| test | 93 | 12 | 1,403 | 2,167 | 127 | 1,598 | 51 | 3,604 |
- Classes are by look:
input(2): a text field, select or text area.text_control(1): any other control with readable text inside it.text(3): a block of plain text that is not inside a control (paragraph, heading, label).image(4): a picture, 48 px or more on its short side and with many colours, clickable or not.icon(0): everything else, mostly pictograms: icon buttons, checkboxes, radios, swatches, and small graphics that cannot be clicked.
controlfield: every annotation has"control": trueif the element can be clicked andfalseif not. Class ids 0 to 2 keep their earlier meaning except that non-clickable pictograms are nowicontoo.- Split by site: no site appears in two splits.
- Views per page: top of page, scrolled one to three screens, dark mode, dark and scrolled.
- Layout:
train/,valid/,test/, each with JPEGs and_annotations.coco.json. Each image entry also hassource_urlandvariant. - Not included on purpose: Wikipedia, GitHub, OpenStreetMap, Excalidraw, Hacker News and Desmos, which we kept as outside test sites.
A detector trained on this set: oneryalcin/ui-controls-rfdetr.
Changed on 2026-11-20 (second upload of the day)
The first version had three classes and controls only (1,400 images, 64,146 boxes). This version replaces it:
- All pages were captured again with a labelling script that also records plain text and pictures, so the screenshots and file contents differ from the first version. File names and the split by site are the same.
- Two classes added (
text,image) and thecontrolfield. - Pictures that are links moved from
icontoimage; small non-clickable graphics areicon. - The first version is still in this repository's history.
How the labels were made
scripts/collect2.js runs in the page. For controls it records everything that is visible and would receive a click
at its centre: native controls, ARIA roles, labels standing in for hidden inputs, and elements with click handlers
or a pointer cursor. It walks open shadow roots and same-origin frames, and gives a wrapped link one box per line.
For the rest it records blocks of visible text and pictures (img, video, svg) that are not inside a control.
scripts/build.py and build_more.py capture the pages in scripts/urls.txt with Chrome through Playwright.
scripts/prep.py filters the captures, greys out cross-origin frames (their contents cannot be read), assigns
classes and writes the splits. A control is a text_control if Apple Vision OCR (macOS only) reads a word in it, or
if the page says it has text, the box is wide enough for that text and the pixels look like a row of letters
(scripts/textlike.py). scripts/dets.py and eval_dets.py score a detector per class and size.
Label quality
- Controls, checked on 15 pages against the browser's accessibility tree (with the first version of the script): 822 of 823 controls in the tree were labelled, and 25 of 849 labels (2.9%) had no match, mostly second lines of wrapped links.
- Plain text and pictures were checked by eye only, on nine page overlays. Seen there: a paragraph's box encloses the boxes of links inside it, and overlapping pictures give overlapping boxes.
- Classes are heuristic. Text or no text: about 2 wrong in 90 by eye. Icon or image: in 120 large labels the
split looked right apart from a few round buttons with shadows that landed as
image. Single digits (pagination) count asicon. - A link and plain text often look the same. The labels tell them apart from the page structure; a model that sees only pixels confuses them.
- Both label sources read the page structure, so a control that is only a styled element with a script behind it can be missed. Canvas-drawn content is never labelled. Disabled controls are not labelled. A link that only shows on hover can get an empty box.
- Dropped captures: pages with fewer than 8 controls or more than 280 labels, pages mostly covered by a foreign frame, and pages whose layout moved during capture.
Limits
One screen size, one browser, logged-out pages in English, captured in November 2026 from the UK, so cookie
banners and regional content are common. The validation split is small. image is rare (382 training labels).
Licence and removal
The annotations and scripts are released under CC BY 4.0. The screenshots show third-party websites; their content belongs to the respective owners and is included for research on interface understanding. If you own a page shown here and want it removed, open a discussion on this repository.
- Downloads last month
- 87