Run optimized object-detection models from the Arm AI Portal on Android
Introduction
Prepare the Android command-line tools for building Scene Detector
Connect an Arm-based Android device and run Scene Detector
Import and run an Arm AI Portal object-detection model
Understand the Scene Detector Android application
(Optional) Use an object-detection model not currently supported by Scene Detector
Next Steps
Run optimized object-detection models from the Arm AI Portal on Android
Introduction
Prepare the Android command-line tools for building Scene Detector
Connect an Arm-based Android device and run Scene Detector
Import and run an Arm AI Portal object-detection model
Understand the Scene Detector Android application
(Optional) Use an object-detection model not currently supported by Scene Detector
Next Steps
Who is this for?
This Learning Path is for Android and machine learning developers who want to run optimized object detection locally on an Arm-based Android device. It demonstrates an ExecuTorch adapter that selects the preprocessing and output decoding required by supported YOLO models.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Prepare the Android command-line tools and connect an Arm-based Android phone
- Download and run a supported object-detection model from the Arm AI Portal
- Explain how the supplied adapter selects version-specific preprocessing and output decoding for supported YOLO models
- Register another compatible detector or optionally generate and validate a separate adapter
Prerequisites
Before starting, you will need the following:
- A macOS, Linux, or Windows development machine
- Git installed on the development machine
- Python 3 on the machine with the
venvandpipmodules - Java Development Kit (JDK) 17 or later, available on your machine’s
PATH - A tool for downloading files and a tool for extracting ZIP archives on the machine
- An Arm-based Android phone with Android 9 or later with enough free storage for the application and model files
- A Hugging Face account with access to the model repositories
- A data-capable USB cable
- Network access for the first Gradle build and model downloads
- Basic familiarity with terminal commands and Android applications
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
adb, and build the application with Gradle. Next, you’ll start with the Arm AI Portal YOLOv8s model in ExecuTorch. You’ll analyze a saved image and a live camera feed, then learn how to register a compatible detector or create and validate an adapter for an unsupported model.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
adb devices -l. Confirm that your phone appears with a device serial and the state device. If it reports unauthorized, unlock the phone and accept the debugging prompt.udev rules are installed and that your user belongs to the plugdev group. Reconnect the device after updating the rules or group membership.75% threshold if the model doesn’t display expected objects, but be aware that lower thresholds can increase false positives and the amount of work passed to non-maximum suppression..pte model, select Choose saved image, choose an image, and select Detect objects. The application displays the annotated image, detected objects, confidence scores, and processing time.