Real-Time Object Detection and Tracking with Kotlin and YOLO on Android A developer detailed the architecture for building a real-time object detection and tracking app on Android using Kotlin and YOLO-style models. The approach separates camera capture, inference, tracking, and rendering, and includes techniques like non-maximum suppression and IoU-based tracking to maintain object identities across frames. Real-time computer vision is one of the most useful applications of machine learning on mobile devices. Android phones provide cameras, GPU acceleration, and enough processing power to run optimized detection models locally. In this tutorial, we will build the architecture for a Kotlin application that captures camera frames, runs a YOLO-style object detector, and tracks detected objects across frames. CameraX | ImageAnalysis | Frame Conversion | YOLO Detector | Non-Maximum Suppression | Object Tracker | UI Overlay The important part is to keep camera capture, inference, tracking, and rendering separate. Add the CameraX dependencies compatible with your project: dependencies { implementation "androidx.camera:camera-camera2: