pip install -e .from local_ui_locator import detect_elements, find_by_text, safe_click_point
# Detect all UI elements
detections = detect_elements("screenshot.png", conf=0.3)
for det in detections:
print(f"{det.type}: {det.bbox} (score={det.score:.2f})")
# Find element by visible label
match = find_by_text("screenshot.png", query="Sign in")
if match:
x, y = safe_click_point(match.bbox)
print(f"Click at ({x}, {y})")