Uploading README.md
Browse files
README.md
CHANGED
@@ -1,69 +1,130 @@
|
|
|
|
1 |
|
2 |
-
|
3 |
-
language: [en]
|
4 |
-
license: mit
|
5 |
-
datasets: [MobileViews]
|
6 |
-
pretty_name: "MobileViews: A Large-Scale Mobile GUI Dataset"
|
7 |
-
tags:
|
8 |
-
- mobile-ui
|
9 |
-
- user-interfaces
|
10 |
-
- view-hierarchy
|
11 |
-
- android-apps
|
12 |
-
- screenshots
|
13 |
-
task_categories:
|
14 |
-
- question-answering
|
15 |
-
- image-to-text
|
16 |
-
task_ids:
|
17 |
-
- task-planning
|
18 |
-
- visual-question-answering
|
19 |
-
---
|
20 |
-
# MobileViews: A Large-Scale Mobile GUI Dataset
|
21 |
-
[**Read the paper**](https://arxiv.org/abs/2409.14337)
|
22 |
|
23 |
-
**
|
24 |
|
25 |
-
##
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
- **`
|
|
|
32 |
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
|
|
40 |
|
41 |
-
|
42 |
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
| Column | Description |
|
46 |
|--------------|-------------------------------------------|
|
47 |
| `Image File` | Filename of the screenshot (e.g., 0.jpg) |
|
48 |
-
| `JSON File` | Filename of the
|
49 |
|
50 |
**Example:**
|
51 |
```csv
|
52 |
Image File,JSON File
|
53 |
300000.jpg,300000.json
|
54 |
300001.jpg,300001.json
|
55 |
-
300002.jpg,300002.json
|
56 |
```
|
57 |
-
Here’s the updated section of the README for the MobileViews open-sourced dataset, modified to reflect that the Parquet columns are `image_content` and `json_content` instead of `image_path`:
|
58 |
-
|
59 |
-
---
|
60 |
|
61 |
2. **Parquet Columns**
|
62 |
|
63 |
| Column | Description |
|
64 |
|-----------------|--------------------------------------------------------------------------|
|
65 |
| `image_content` | Binary data representing the image file (e.g., screenshot in `.jpg` format) |
|
66 |
-
| `json_content` | JSON content representing the
|
67 |
|
68 |
**Example Data in Parquet:**
|
69 |
|
@@ -73,42 +134,19 @@ Here’s the updated section of the README for the MobileViews open-sourced data
|
|
73 |
| Binary image data | `{"viewHierarchy": {"bounds": [0, 0, 1080, 1920], "viewClass": ...}` |
|
74 |
| Binary image data | `{"viewHierarchy": {"bounds": [0, 0, 1080, 1920], "viewClass": ...}` |
|
75 |
|
76 |
-
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
| Column | Description |
|
83 |
-
|---------------------|------------------------------------------------------------------|
|
84 |
-
| `title` | App title |
|
85 |
-
| `installs` | Number of installs |
|
86 |
-
| `minInstalls` | Minimum number of installs |
|
87 |
-
| `realInstalls` | Real number of installs |
|
88 |
-
| `score` | App score (rating) |
|
89 |
-
| `ratings` | Number of ratings |
|
90 |
-
| `reviews` | Number of reviews |
|
91 |
-
| `histogram` | Rating distribution |
|
92 |
-
| `price` | App price |
|
93 |
-
| `free` | Whether the app is free (True/False) |
|
94 |
-
| `offersIAP` | Offers in-app purchases (True/False) |
|
95 |
-
| `inAppProductPrice` | In-app product price |
|
96 |
-
| `developer` | Developer name |
|
97 |
-
| `developerId` | Developer ID |
|
98 |
-
| `genre` | App genre |
|
99 |
-
| `genreId` | Genre ID |
|
100 |
-
| `categories` | App categories |
|
101 |
-
| `contentRating` | Content rating (e.g., Everyone, Teen) |
|
102 |
-
| `adSupported` | Indicates if the app is ad-supported (True/False) |
|
103 |
-
| `containsAds` | Indicates if the app contains ads (True/False) |
|
104 |
-
| `released` | App release date |
|
105 |
-
| `lastUpdatedOn` | Date of the latest update |
|
106 |
-
| `appId` | Unique app identifier |
|
107 |
-
|
108 |
-
## How to Use
|
109 |
|
110 |
### Download via Hugging Face Python Library
|
111 |
-
|
112 |
**Install the library:**
|
113 |
|
114 |
```bash
|
@@ -121,83 +159,83 @@ pip install huggingface_hub
|
|
121 |
from huggingface_hub import hf_hub_download
|
122 |
|
123 |
# Download specific files
|
124 |
-
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_0-150000.parquet")
|
125 |
-
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_0-150000.zip")
|
126 |
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="AppMetadata.csv")
|
127 |
```
|
128 |
|
129 |
**Download the entire repository:**
|
130 |
|
131 |
```python
|
132 |
-
from huggingface_hub
|
|
|
|
|
133 |
|
134 |
# Download the entire repository
|
135 |
snapshot_download(repo_id="mllmTeam/MobileViews")
|
136 |
```
|
137 |
|
138 |
-
|
|
|
|
|
139 |
|
140 |
-
|
141 |
|
142 |
-
**
|
143 |
|
144 |
```bash
|
145 |
-
#
|
146 |
zip -T MobileViews_0-150000.zip # Expected output: test of MobileViews_0-150000.zip OK
|
147 |
|
148 |
-
# Verify file counts
|
149 |
-
unzip -l MobileViews_0-150000.zip | grep ".json" | wc -l # Expected
|
150 |
-
unzip -l MobileViews_0-150000.zip | grep ".jpg" | wc -l # Expected
|
151 |
|
152 |
-
#
|
153 |
-
du -sh MobileViews_0-150000.zip # Expected
|
154 |
-
|
155 |
-
# Verify SHA256 checksum
|
156 |
-
sha256sum -c MobileViews_0-150000.zip.sha256 # Expected output: MobileViews_0-150000.zip: OK
|
157 |
|
158 |
# Unzip
|
159 |
unzip MobileViews_0-150000.zip
|
160 |
```
|
161 |
|
162 |
-
**
|
163 |
|
164 |
-
|
165 |
-
- Integrity: `test of MobileViews_150001-291197.zip OK`
|
166 |
-
- JSON count: `141197`
|
167 |
-
- JPG count: `141197`
|
168 |
-
- Size: `36G`
|
169 |
-
- SHA256: `MobileViews_150001-291197.zip: OK`
|
170 |
|
171 |
-
|
172 |
-
- Integrity: `test of MobileViews_300000-400000.zip OK`
|
173 |
-
- JSON count: `100001`
|
174 |
-
- JPG count: `100001`
|
175 |
-
- Size: `24G`
|
176 |
-
- SHA256: `MobileViews_300000-400000.zip: OK`
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
- JSON count: `122301`
|
181 |
-
- JPG count: `122301`
|
182 |
-
- Size: `13G`
|
183 |
-
- SHA256: `MobileViews_400001-522301.zip: OK`
|
184 |
|
185 |
-
|
|
|
|
|
186 |
|
187 |
-
|
188 |
|
189 |
-
|
190 |
|
191 |
-
|
|
|
|
|
192 |
|
193 |
```bash
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
python path/to/useparquet.py
|
198 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
-
## Citation
|
201 |
|
202 |
If you use this dataset in your research, please cite our work as follows:
|
203 |
|
|
|
1 |
+
# 🚀 MobileViews: A Large-Scale Mobile GUI Dataset
|
2 |
|
3 |
+
**MobileViews** is a large-scale dataset designed to support research on mobile agents and mobile user interface (UI) analysis. The first release, **MobileViews-600K**, includes over **600,000** mobile UI screenshot-view hierarchy (VH) pairs collected from over **20,000 apps** on the Google Play Store. This dataset is based on the [DroidBot](https://honeynet.github.io/droidbot/), which we have optimized for large-scale data collection, capturing more comprehensive interaction details while maintaining consistency with DroidBot’s output structure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
[**📖 Read the Paper**](https://arxiv.org/abs/2409.14337) — If you’d like to dive deeper into the details of how we construct this dataset, or explore the training experiments we conduct using `MobileViews`, we encourage you to check out our paper. The paper, along with this dataset, contains everything you need to understand our process and replicate or build upon our findings!
|
6 |
|
7 |
+
## 🤗 Table of Contents
|
8 |
|
9 |
+
- [🚀 MobileViews: A Large-Scale Mobile GUI Dataset](#-mobileviews-a-large-scale-mobile-gui-dataset)
|
10 |
+
- [🤗 Table of Contents](#-table-of-contents)
|
11 |
+
- [🥳 NEWS](#-news)
|
12 |
+
- [🧐 Dataset Overview](#-dataset-overview)
|
13 |
+
- [Folder Structure](#folder-structure)
|
14 |
+
- [1. MobileViews\_Screenshots\_ViewHierarchies](#1-mobileviews_screenshots_viewhierarchies)
|
15 |
+
- [Screenshot-VH File Descriptions](#screenshot-vh-file-descriptions)
|
16 |
+
- [2. MobileViews\_Apps\_CompleteTraces](#2-mobileviews_apps_completetraces)
|
17 |
+
- [App Trace Folder Structure](#app-trace-folder-structure)
|
18 |
+
- [🔎 Detailed Metadata and File Descriptions](#-detailed-metadata-and-file-descriptions)
|
19 |
+
- [AppMetadata.csv Columns](#appmetadatacsv-columns)
|
20 |
+
- [Index and Parquet files for `MobileViews_Screenshots_ViewHierarchies`](#index-and-parquet-files-for-mobileviews_screenshots_viewhierarchies)
|
21 |
+
- [Index files for `MobileViews_Apps_CompeleteTraces`](#index-files-for-mobileviews_apps_compeletetraces)
|
22 |
+
- [🌏 How to Download](#-how-to-download)
|
23 |
+
- [Download via Hugging Face Python Library](#download-via-hugging-face-python-library)
|
24 |
+
- [📋 Usage Guidelines](#-usage-guidelines)
|
25 |
+
- [Using `zip` and `parquet` Files in `MobileViews_Screenshots_ViewHierarchies`](#using-zip-and-parquet-files-in-mobileviews_screenshots_viewhierarchies)
|
26 |
+
- [Mapping Screenshots and States in `MobileViews_Apps_CompleteTraces`](#mapping-screenshots-and-states-in-mobileviews_apps_completetraces)
|
27 |
+
- [🌟 Future Updates and Feedback](#-future-updates-and-feedback)
|
28 |
+
- [🔖 Citation](#-citation)
|
29 |
|
30 |
+
## 🥳 NEWS
|
31 |
|
32 |
+
- **`2024/11`** – **New Release!** We’ve expanded the dataset to include comprehensive interaction data, now featuring traces and action sequences for `20,000+` apps.
|
33 |
+
- **`2024/10`** – **Initial Launch!** The `MobileViews` dataset is live with `600,000+` unique screenshot-VH pairs, deduplicated across `20,000+` Android apps.
|
34 |
|
35 |
+
## 🧐 Dataset Overview
|
36 |
|
37 |
+
### Folder Structure
|
38 |
|
39 |
+
The dataset is organized into two main folders:
|
40 |
|
41 |
+
1. **MobileViews_Screenshots_ViewHierarchies**: Contains the core screenshot-VH pairs in both `.zip` and `.parquet` formats. All pairs are globally deduplicated based on their image hash values, ensuring unique UI states across the dataset.
|
42 |
+
2. **MobileViews_Apps_CompleteTraces**: Provides complete interaction traces for individual apps, including states, actions, and transitions.
|
43 |
|
44 |
+
### 1. MobileViews_Screenshots_ViewHierarchies
|
45 |
|
46 |
+
This folder contains 600K screenshot-VH pairs, formatted in both `.zip` and `.parquet` formats. Each `.zip` and `.parquet` file pair, along with their respective CSV index files, follows a consistent data structure for easy access.
|
47 |
+
|
48 |
+
- **`Parquets/`**: `.parquet` files with binary data for screenshots and JSON content for VHs.
|
49 |
+
- **`Zip_Files/`**: `.zip` files with individual `.jpg` screenshots and `.json` VH files.
|
50 |
+
- **`Index_CSV/`**: `csv` files, like `MobileViews_index_0-150000.csv`, that map screenshot IDs to their corresponding VH files.
|
51 |
+
|
52 |
+
#### Screenshot-VH File Descriptions
|
53 |
+
|
54 |
+
- **`MobileViews_0-150000.zip`**, **`MobileViews_0-150000.parquet`** and **`MobileViews_index_0-150000.csv`**: This set, containing IDs from 0 to 150,000.
|
55 |
+
- **`MobileViews_150001-291197.zip`**, **`MobileViews_150001-291197.parquet`** and **`MobileViews_index_150001-291197.csv`**: This set, containing IDs from 150,001 to 291,197.
|
56 |
+
- **`MobileViews_300000-400000.zip`**, **`MobileViews_300000-400000.parquet`** and **`MobileViews_index_300000-400000.csv`**: This set, containing IDs from 300,000 to 400,000.
|
57 |
+
- **`MobileViews_400001-522301.zip`**, **`MobileViews_400001-522301.parquet`** and **`MobileViews_index_400001-522301.csv`**: This set, containing IDs from 400,001 to 522,301.
|
58 |
+
|
59 |
+
### 2. MobileViews_Apps_CompleteTraces
|
60 |
+
|
61 |
+
The `MobileViews_Apps_CompleteTraces` folder is a new addition, providing complete interaction traces for apps. Each app trace includes screenshots, VH files, and actions taken within the app, organized as follows:
|
62 |
+
|
63 |
+
- **`Zip_Files/`**: Each `.zip` file represents a batch of app data, named with an index and total screenshot count (e.g., `001_8348.zip` : the first batch with 8,348 screenshots).
|
64 |
+
- Inside each zip file are **200 subfolders**, each named by an app’s package name and containing interaction data for that app. Details on each app’s interaction data structure are provided below.
|
65 |
+
- **`OneExample/`**: A sample app trace is provided to illustrate the folder structure and contents for a single app. You can start by exploring this uncompressed example directly at `MobileViews_Apps_CompleteTraces/OneExample` folder on this website, without the need for downloading.
|
66 |
+
- **`Index_CSV.zip`**: This zip file contains all the `.csv` files listing the app package names and screenshot counts for each corresponding zip file (e.g., `001_8348.csv` for `001_8348.zip`).
|
67 |
+
|
68 |
+
#### App Trace Folder Structure
|
69 |
+
|
70 |
+
Each app’s folder within a zip file includes:
|
71 |
+
|
72 |
+
- **`states/`**:
|
73 |
+
- **Screenshots**: `.jpg` files for each interaction state (e.g., `screen_1.jpg`).
|
74 |
+
- **View Hierarchies**: `.json` and `.xml` files for each screenshot's UI structure (e.g., `state_1.json` and `window_dump_1.xml`). The `.json` format, captured by DroidBot’s internal logic via Android Accessibility Service, and the `.xml` format, captured via ADB commands, are nearly identical but differ in specific attributes.
|
75 |
+
- **`views/`**: UI elements related to interactions, such as clicked or scrolled elements for each state transition.
|
76 |
+
- **`actions.csv`**: A log of interactions within the app, with each action recorded in three columns:
|
77 |
+
- `from_state`: The state before the action.
|
78 |
+
- `to_state`: The state after the action.
|
79 |
+
- `action`: The specific interaction, such as an `intent` command or `touch` on a UI element (e.g., `<button>`, `<p>`), often with details like the element's `alt` text and bounding box coordinates.
|
80 |
+
- **`index.html`**: Open in a browser for an interactive visualization of app traces. Click nodes or edges to view metadata and interaction details for each UI state and transition.
|
81 |
+
- **`utg.js`**: Supports `index.html` with structured app trace data, including UI states, transitions, and app metadata.
|
82 |
+
- **`stylesheets/`**: CSS and JavaScript files for `index.html` rendering.
|
83 |
+
|
84 |
+
## 🔎 Detailed Metadata and File Descriptions
|
85 |
+
|
86 |
+
### AppMetadata.csv Columns
|
87 |
+
|
88 |
+
The `AppMetadata.csv` file contains detailed information about each app. Columns include:
|
89 |
+
|
90 |
+
| Column | Description | Column | Description |
|
91 |
+
|---------------------|--------------------------------------|---------------------|--------------------------------------|
|
92 |
+
| `title` | App title | `installs` | Number of installs |
|
93 |
+
| `minInstalls` | Minimum number of installs | `realInstalls` | Real number of installs |
|
94 |
+
| `score` | App score (rating) | `ratings` | Number of ratings |
|
95 |
+
| `reviews` | Number of reviews | `histogram` | Rating distribution |
|
96 |
+
| `price` | App price | `free` | Whether the app is free (True/False) |
|
97 |
+
| `offersIAP` | Offers in-app purchases (True/False)| `inAppProductPrice` | In-app product price |
|
98 |
+
| `developer` | Developer name | `developerId` | Developer ID |
|
99 |
+
| `genre` | App genre | `genreId` | Genre ID |
|
100 |
+
| `categories` | App categories | `contentRating` | Content rating (e.g., Everyone, Teen)|
|
101 |
+
| `adSupported` | App is ad-supported (True/False) | `containsAds` | App contains ads (True/False) |
|
102 |
+
| `released` | App release date | `lastUpdatedOn` | Date of latest update |
|
103 |
+
| `appId` | Unique app identifier | | |
|
104 |
+
|
105 |
+
|
106 |
+
### Index and Parquet files for `MobileViews_Screenshots_ViewHierarchies`
|
107 |
+
|
108 |
+
1. Index CSV: Located in `MobileViews_Screenshots_ViewHierarchies/Index_CSV`, mapping screenshot IDs to their VH files.
|
109 |
|
110 |
| Column | Description |
|
111 |
|--------------|-------------------------------------------|
|
112 |
| `Image File` | Filename of the screenshot (e.g., 0.jpg) |
|
113 |
+
| `JSON File` | Filename of the VH (e.g., 0.json) |
|
114 |
|
115 |
**Example:**
|
116 |
```csv
|
117 |
Image File,JSON File
|
118 |
300000.jpg,300000.json
|
119 |
300001.jpg,300001.json
|
|
|
120 |
```
|
|
|
|
|
|
|
121 |
|
122 |
2. **Parquet Columns**
|
123 |
|
124 |
| Column | Description |
|
125 |
|-----------------|--------------------------------------------------------------------------|
|
126 |
| `image_content` | Binary data representing the image file (e.g., screenshot in `.jpg` format) |
|
127 |
+
| `json_content` | JSON content representing the VH for the corresponding image |
|
128 |
|
129 |
**Example Data in Parquet:**
|
130 |
|
|
|
134 |
| Binary image data | `{"viewHierarchy": {"bounds": [0, 0, 1080, 1920], "viewClass": ...}` |
|
135 |
| Binary image data | `{"viewHierarchy": {"bounds": [0, 0, 1080, 1920], "viewClass": ...}` |
|
136 |
|
137 |
+
### Index files for `MobileViews_Apps_CompeleteTraces`
|
138 |
|
139 |
+
Each index CSV in `MobileViews_Apps_CompleteTraces/Index_CSV` lists the app package names and screenshot count in the corresponding zip file.
|
140 |
+
|
141 |
+
| apk_name | state_number |
|
142 |
+
|-----------------------------|--------------|
|
143 |
+
| com.akbon.realmeui | 3 |
|
144 |
+
| com.intermediagroup.ww4u | 12 |
|
145 |
|
146 |
+
## 🌏 How to Download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
### Download via Hugging Face Python Library
|
149 |
+
|
150 |
**Install the library:**
|
151 |
|
152 |
```bash
|
|
|
159 |
from huggingface_hub import hf_hub_download
|
160 |
|
161 |
# Download specific files
|
162 |
+
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Parquets/MobileViews_0-150000.parquet")
|
163 |
+
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Zip_Files/MobileViews_0-150000.zip")
|
164 |
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="AppMetadata.csv")
|
165 |
```
|
166 |
|
167 |
**Download the entire repository:**
|
168 |
|
169 |
```python
|
170 |
+
from huggingface_hub
|
171 |
+
|
172 |
+
import snapshot_download
|
173 |
|
174 |
# Download the entire repository
|
175 |
snapshot_download(repo_id="mllmTeam/MobileViews")
|
176 |
```
|
177 |
|
178 |
+
## 📋 Usage Guidelines
|
179 |
+
|
180 |
+
### Using `zip` and `parquet` Files in `MobileViews_Screenshots_ViewHierarchies`
|
181 |
|
182 |
+
To verify file integrity before using the `zip` files, follow the steps below.
|
183 |
|
184 |
+
**Zip File Example**
|
185 |
|
186 |
```bash
|
187 |
+
# Follow these steps to validate and extract MobileViews_0-150000.zip before using its contents.
|
188 |
zip -T MobileViews_0-150000.zip # Expected output: test of MobileViews_0-150000.zip OK
|
189 |
|
190 |
+
# Verify file counts for JSON and JPG files
|
191 |
+
unzip -l MobileViews_0-150000.zip | grep ".json" | wc -l # Expected: 150001
|
192 |
+
unzip -l MobileViews_0-150000.zip | grep ".jpg" | wc -l # Expected: 150001
|
193 |
|
194 |
+
# Check file size and SHA256 checksum
|
195 |
+
du -sh MobileViews_0-150000.zip # Expected: 23G
|
196 |
+
sha256sum -c MobileViews_0-150000.zip.sha256 # Expected: MobileViews_0-150000.zip: OK
|
|
|
|
|
197 |
|
198 |
# Unzip
|
199 |
unzip MobileViews_0-150000.zip
|
200 |
```
|
201 |
|
202 |
+
**Parquet File Usage**
|
203 |
|
204 |
+
Parquet files are a columnar storage format that allows for efficient data handling, especially for large datasets. Each `.parquet` file contains binary data for screenshots and JSON data for VHs.
|
|
|
|
|
|
|
|
|
|
|
205 |
|
206 |
+
To explore or extract data from `.parquet` files, use the `useparquet.py` script provided. This script includes helpful functions, such as `check_row_count`, `save_n_images_and_jsons`, and `save_all_images_and_jsons`, to facilitate quick access to images and VHs.
|
|
|
|
|
|
|
|
|
|
|
207 |
|
208 |
+
```bash
|
209 |
+
pip install pyarrow
|
|
|
|
|
|
|
|
|
210 |
|
211 |
+
# Uncomment the function you need and run the helper script to interact with the .parquet file
|
212 |
+
python path/to/useparquet.py
|
213 |
+
```
|
214 |
|
215 |
+
### Mapping Screenshots and States in `MobileViews_Apps_CompleteTraces`
|
216 |
|
217 |
+
Each app's folder contains screenshots, states, and actions data. Use our screenshot-state mapping script (`MobileViews_Apps_CompleteTraces/screenshot_state_mapping.py`) to generate a CSV file mapping `screen_id`, `state_str (a unique hash representing each screenshot)`, `structure_str (a hash focusing on UI structure only)`, `vh_json_id` and `vh_xml_id`.
|
218 |
|
219 |
+
The script provides two main functions:
|
220 |
+
- `process_single_folder(single_folder_path)` for one apk folder
|
221 |
+
- `process_multiple_folders(parent_folder_path)` for multiple APK folders
|
222 |
|
223 |
```bash
|
224 |
+
# Specify your folder path and uncomment the desired function:
|
225 |
+
# Run the script
|
226 |
+
python path/to/screenshot_state_mapping.py
|
|
|
227 |
```
|
228 |
+
You can also find the example output in `MobileViews_Apps_CompleteTraces/OneExample/screenshot_state_mapping.csv`
|
229 |
+
|
230 |
+
## 🌟 Future Updates and Feedback
|
231 |
+
|
232 |
+
We’re continuously expanding the `MobileViews` dataset by crawling more apps and capturing a wider range of interactions. Future releases will bring even more data, making `MobileViews` an increasingly valuable resource for mobile UI research.
|
233 |
+
|
234 |
+
If you have any questions, encounter issues, or want to share feedback, please don’t hesitate to reach out via email or leave a comment. We’re here to help and genuinely appreciate suggestions that could improve the dataset. Your insights are invaluable as we work to make `MobileViews` as helpful and impactful as possible for the research community.
|
235 |
+
|
236 |
+
Thank you for your support and for helping us grow `MobileViews`!
|
237 |
|
238 |
+
## 🔖 Citation
|
239 |
|
240 |
If you use this dataset in your research, please cite our work as follows:
|
241 |
|