Real-Time Obstacle Detection and Distance Estimation on Smartphones for Visually Impaired and Distracted Pedestrians
Abstract
We present a Kotlin-based Android app that gives real-time obstacle alerts to visually impaired and distracted pedestrians. A YOLOv8 detector, retrained on eighteen common urban obstacle classes, is optimized with pruning, quantization and early-exit branches and runs through the Android Neural Networks API (NNAPI). On a mid-range smartphone this cuts average inference latency from about 3.2 s (off-the-shelf YOLOv8n) to 0.39–0.48 s; the recommended INT8 + early-exit configuration runs in 0.42–0.48 s with a recall of 0.81. Distance is estimated with ARCore or monocular focal-length geometry, so a single phone camera is enough, and alerts come as Text-to-Speech guidance or vibration.