involved VH Tree
Browse files
README.md
CHANGED
@@ -21,5 +21,45 @@ Follow these steps to download and extract images from the AndroidControl TFReco
|
|
21 |
|
22 |
## Step 3: Enjoy the parsed json data
|
23 |
|
|
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
## Step 3: Enjoy the parsed json data
|
23 |
|
24 |
+
Here’s the information formatted in Markdown:
|
25 |
|
26 |
+
Each screenshot corresponds to a `.pkl` file with the same name, containing a list of dictionaries. Each dictionary includes the following keys:
|
27 |
+
|
28 |
+
- **`"bounds_in_screen"`**: Defines the screen boundaries of the window, with values:
|
29 |
+
```json
|
30 |
+
{
|
31 |
+
"left": windows.bounds_in_screen.left,
|
32 |
+
"right": windows.bounds_in_screen.right,
|
33 |
+
"bottom": windows.bounds_in_screen.bottom,
|
34 |
+
"top": windows.bounds_in_screen.top
|
35 |
+
}
|
36 |
+
```
|
37 |
+
- **`"window_id"`**: The unique identifier of the window.
|
38 |
+
- **`"window_layer"`**: The layer or z-index of the window.
|
39 |
+
- **`"window_type"`**: The type of the window.
|
40 |
+
- **`"tree"`**: A list containing dictionaries representing each element node in the window.
|
41 |
+
|
42 |
+
Each node in the `"tree"` list includes:
|
43 |
+
|
44 |
+
- **`"bounds_in_screen"`**: The screen boundaries of the element node, with values:
|
45 |
+
```json
|
46 |
+
{
|
47 |
+
"left": node.bounds_in_screen.left,
|
48 |
+
"right": node.bounds_in_screen.right,
|
49 |
+
"bottom": node.bounds_in_screen.bottom,
|
50 |
+
"top": node.bounds_in_screen.top
|
51 |
+
}
|
52 |
+
```
|
53 |
+
- **`"class_name"`**: The class name of the element.
|
54 |
+
- **`"content_description"`**: The content description of the element.
|
55 |
+
- **`"package_name"`**: The package name the element belongs to.
|
56 |
+
- **`"text_selection_start"`**: The start position of any text selection.
|
57 |
+
- **`"text_selection_end"`**: The end position of any text selection.
|
58 |
+
- **`"view_id_resource_name"`**: The resource name of the view ID.
|
59 |
+
- **`"window_id"`**: The window ID associated with the element.
|
60 |
+
- **`"is_enabled"`**: Boolean indicating if the element is enabled.
|
61 |
+
- **`"is_visible_to_user"`**: Boolean indicating if the element is visible to the user.
|
62 |
+
- **`"actions"`**: A list of action IDs available for the element, derived as `[action.id for action in node.actions]`.
|
63 |
+
- **`"child_ids"`**: A list of IDs for child elements, derived as `[child_id for child_id in node.child_ids]`.
|
64 |
+
- **`"depth"`**: The depth of the element within the hierarchy.
|
65 |
+
- **`"drawing_order"`**: The order in which the element is drawn within the window.
|