jileklu commited on
Commit
ca08e66
·
verified ·
1 Parent(s): 90040b3

[Update] README.md

Browse files
Files changed (1) hide show
  1. README.md +234 -3
README.md CHANGED
@@ -1,3 +1,234 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ - cs
6
+ - es
7
+ - fr
8
+ - de
9
+ - pt
10
+ task_categories:
11
+ - object-detection
12
+ - image-segmentation
13
+ tags:
14
+ - computer-vision
15
+ - object-detection
16
+ - coco
17
+ - webpage
18
+ - ui
19
+ - layout-analysis
20
+ - accessibility
21
+ - aria
22
+ - document-layout
23
+ pretty_name: WebUI-COCO-868
24
+ size_categories:
25
+ - n<1K
26
+ ---
27
+
28
+
29
+ # WebUI-COCO-868: Annotated Webpage Screenshots for UI Region & Landmark Detection
30
+
31
+ ## Short description
32
+
33
+ 868 desktop webpage screenshots annotated with COCO bounding boxes over ARIA-style landmark regions and common UI components (cookie dialogs, popovers, captcha, buttons, etc.)
34
+
35
+ ## Dataset details
36
+
37
+ - **Modality:** image (webpage screenshots)
38
+ - **Annotation format:** COCO-style JSON (bounding boxes + class IDs, optional semantic attributes)
39
+ - **Number of images:** **868**
40
+ - **Label taxonomy:** ARIA landmark–inspired regions + UI-specific roles (see **Label set** below)
41
+ - **Languages (in-page text):** multilingual, reflecting the source domains (primarily English/Czech/Spanish/French/German/Portuguese)
42
+
43
+ ## Supported tasks
44
+
45
+ This dataset is intended primarily for:
46
+
47
+ - **Object detection** of semantic webpage regions and UI components (bounding boxes).
48
+ - Downstream uses include **web layout parsing**, **UI understanding**, and **accessibility-oriented landmark detection**.
49
+
50
+ ## Repository contents
51
+
52
+ The dataset is organized into splits with images and per-image JSONs, plus merged COCO files per split:
53
+
54
+ ```
55
+ ├── annotations/
56
+ │ ├── train_annotations.json
57
+ │ ├── val_annotations.json
58
+ │ └── test_annotations.json
59
+ ├── train/
60
+ │ ├── *.png
61
+ │ └── annotations/
62
+ │ └── *.json
63
+ ├── val/
64
+ │ ├── *.png
65
+ │ └── annotations/
66
+ │ └── *.json
67
+ ├── test/
68
+ │ ├── *.png
69
+ │ └── annotations/
70
+ │ └── *.json
71
+ └── split_info.txt
72
+ ```
73
+
74
+ - `train/`, `val/`, `test/` contain PNG screenshots named like `123.png`.
75
+ - `train/annotations/`, `val/annotations/`, `test/annotations/` contain **per-image** annotation JSON files named like `123.json`.
76
+ - `annotations/*_annotations.json` are the **merged COCO** annotation files for each split.
77
+ - `split_info.txt` documents how the split was produced (and/or which IDs belong to which split).
78
+
79
+
80
+ ## Annotation format
81
+
82
+ Annotations are stored in **COCO-style JSON**. Each annotation contains:
83
+
84
+ - `bbox` (x, y, width, height)
85
+ - `category_id` (class ID)
86
+ - (optional) additional semantic attributes, where applicable
87
+
88
+ Annotators were instructed to label UI components at **semantically meaningful granularity**:
89
+ - Composite widgets (e.g., dialogs) are treated as **containers**
90
+ - Controls (e.g., buttons) are labeled as **individual entities**
91
+
92
+ ### Label set (categories)
93
+
94
+ All classes included in this dataset:
95
+
96
+ - `main`
97
+ - `navigation`
98
+ - `image`
99
+ - `contentinfo`
100
+ - `region`
101
+ - `generic-button`
102
+ - `banner`
103
+ - `complementary`
104
+ - `preferences-button`
105
+ - `popover`
106
+ - `close-button`
107
+ - `search`
108
+ - `cookie-dialog`
109
+ - `accept-button`
110
+ - `reject-button`
111
+ - `form`
112
+ - `captcha`
113
+
114
+ ## Dataset creation
115
+
116
+ ### Collection methodology
117
+
118
+ The dataset was constructed to capture the **visual and semantic structure of real-world webpages**.
119
+
120
+ Screenshots were collected using a custom automation pipeline built atop **`nodriver`** (a wrapper for the Chrome DevTools Protocol), enabling fine-grained control over headless browser instances and pixel-accurate rendering.
121
+
122
+ Key collection details:
123
+
124
+ - Each session launched **Chromium with Skia rendering** to ensure consistent visual fidelity.
125
+ - Cookie consent modals and overlays were programmatically dismissed using **text-based heuristics** and **synthetic clicks**.
126
+ - Domain-specific handlers were used to bypass obstructive UI (e.g., paywalls/popups) and ensure content visibility.
127
+ - Full-page capture used a **scroll-and-stitch** approach:
128
+ - Incremental scrolling with overlapping screenshots
129
+ - Pinned headers/footers detected via pixel similarity to crop/align slices
130
+ - Pages were optionally stitched offline or stored as individual tiles
131
+ - Request interception modified headers (e.g., `User-Agent`, `Referer`) and handled retry/abort logic to reduce failures on dynamic pages and bot protections.
132
+ - Screenshots were saved in **timestamped directories** per crawl session.
133
+
134
+ ### Source domains
135
+
136
+ Webpages were collected from a curated set of high-traffic international media domains to ensure diverse regional styles and layouts, including:
137
+
138
+ - Bloomberg
139
+ - Centrum
140
+ - El Cronista
141
+ - Financial Times
142
+ - Folha de S.Paulo
143
+ - Frankfurter Allgemeine Zeitung (Germany)
144
+ - Handelsblatt
145
+ - iRozhlas
146
+ - La Nación
147
+ - La Tribune
148
+ - Les Echos
149
+ - Lidovky
150
+ - Novinky
151
+ - Seznam
152
+ - Seznam Zprávy
153
+ - The Business Times
154
+ - The Straits Times
155
+ - The Wall Street Journal
156
+ - Wikipedia
157
+
158
+ ## Quality control
159
+
160
+ Annotation consistency was validated through:
161
+
162
+ - Automated heuristics (shape validation, area bounds, basic sanity checks)
163
+ - Manual review
164
+
165
+ ## Dataset metrics and diversity
166
+
167
+ ### Element distribution and imbalance
168
+
169
+ The dataset exhibits a long-tail class distribution:
170
+
171
+ - The most common class, **`region`**, occurs **> 9000** times.
172
+ - Rare classes such as **`captcha`** and **`reject-button`** appear **< 25** times.
173
+
174
+ This reflects real-world UI patterns: structural regions dominate the page, while edge-case elements are sparse.
175
+
176
+ ### Elements per image
177
+
178
+ - Mean labeled elements per image: **33.6**
179
+ - Some images contain **> 100** labeled elements
180
+ - Most images include **~7–11 unique UI types**, indicating moderate layout diversity
181
+
182
+ ### Bounding box shape statistics
183
+
184
+ Bounding boxes cover a broad range of shapes. Most elements are **horizontally elongated** (wider than tall), consistent with common UI layouts (headers, toolbars, banners). The aspect ratio distribution is skewed toward **wide** and **very wide** elements.
185
+
186
+ Elements can be grouped by aspect ratio into:
187
+ - very tall
188
+ - tall
189
+ - square-ish
190
+ - wide
191
+ - very wide
192
+
193
+ Most elements fall into the **very wide** category.
194
+
195
+ ### Spatial layout patterns
196
+
197
+ UI elements are not uniformly distributed across the screen:
198
+ - concentration along typical layout bands (headers, sidebars, central content)
199
+ - clustering patterns consistent with real-world desktop webpage layouts
200
+
201
+ ## Intended use
202
+
203
+ This dataset is intended for **research and development** in:
204
+ - UI element detection on real-world webpages
205
+ - webpage semantic region detection (ARIA-style landmarks)
206
+ - layout analysis and structured understanding of web interfaces
207
+
208
+ ## Limitations
209
+
210
+ - **Long-tail imbalance:** rare UI elements (e.g., `captcha`, `reject-button`) have few examples.
211
+ - **Domain coverage:** the dataset focuses on a curated set of high-traffic media/information sites and may not generalize to all web genres (e-commerce, web apps, dashboards, etc.).
212
+ - **Visual-only labels:** annotations are based on screenshots. They do not include DOM structure or computed accessibility tree.
213
+
214
+ ## Legal and ethical considerations
215
+
216
+ - Screenshots contain content rendered from third-party websites. Ensure your dataset **license and terms** are compatible with redistribution of rendered pages and any embedded media.
217
+ - The crawling pipeline included logic to dismiss overlays and bypass obstructive UI to capture visible content. Users should consider whether this affects allowed redistribution and use.
218
+ - The dataset may include incidental personal data if present on captured pages (e.g., author names, user prompts, etc.). Review and redact if needed.
219
+
220
+ ## License
221
+
222
+ CC BY 4.0
223
+
224
+ ## Citation
225
+
226
+ If you use this dataset, please cite:
227
+
228
+ ```bibtex
229
+ @dataset{webui_coco_868,
230
+ title = {WebUI-COCO-868: Annotated Webpage Screenshots for UI Region and Landmark Detection},
231
+ author = {Lukáš Jílek},
232
+ year = {2026},
233
+ url = {https://huggingface.co/datasets/TODO/WebUI-COCO-868}
234
+ }