ver Mar15th

fixed bugs about infeasible task evaluation
This commit is contained in:
David Chang
2024-03-15 22:49:35 +08:00
parent 6face585f3
commit 57f2257254
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ def tag_screenshot(screenshot, accessibility_tree):
os.makedirs("tmp/images", exist_ok=True)
tagged_screenshot_file_path = os.path.join("tmp/images", uuid_str + ".png")
# nodes = filter_nodes(find_leaf_nodes(accessibility_tree))
nodes = filter_nodes(ET.fromstring(accessibility_tree))
nodes = filter_nodes(ET.fromstring(accessibility_tree), check_image=True)
# Make tag screenshot
marks, drew_nodes = draw_bounding_boxes(nodes, screenshot, tagged_screenshot_file_path)