yasirfaizahmed/android_ui_detection_yolov8
Viewer • Updated • 4.81k • 30 • 4
How to use yasirfaizahmed/android_ui_detection_yolov8 with ultralytics:
from ultralytics import YOLOvv8
model = YOLOvv8.from_pretrained("yasirfaizahmed/android_ui_detection_yolov8")
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)This YOLOv8 model is trained to detect various Android UI elements in app/game screenshots, such as buttons, cards, toolbars, text views, and more.
Trained using YOLOv8 Nano
Detects 21 Android UI classes
Ideal for UI automation, testing, and design analysis
pip install ultralytics
from ultralytics import YOLO
# Load the model directly from Hugging Face
model = YOLO("yasirfaizahmed/android_ui_detection_yolov8")
# Run detection on an image
results = model("your_image.jpg") # Replace with your actual image path
# Show results with bounding boxes
results[0].show()
[
'BackgroundImage', 'Bottom_Navigation', 'Card', 'CheckBox', 'Checkbox',
'CheckedTextView', 'Drawer', 'EditText', 'Icon', 'Image', 'Map', 'Modal',
'Multi_Tab', 'PageIndicator', 'Remember', 'Spinner', 'Switch', 'Text',
'TextButton', 'Toolbar', 'UpperTaskBar'
]
Trained with: yolov8n.pt base
Format: YOLOv8 PyTorch
Dataset: Custom Pascal VOC-style Android UI dataset
Recommended image size: 640×640
Supports predict, val, export, and train pipelines from Ultralytics
Use .predict(source="folder_or_image.jpg") for batch inference
[More Information Needed]
Base model
Ultralytics/YOLOv8