Abstract
In this paper, we propose Augmented Reality Semi-automatic labeling (ARS), a semi-automatic method which leverages on moving a 2D camera by means of a robot, proving precise camera tracking, and an augmented reality pen to define initial object bounding box, to create large labeled datasets with minimal human intervention. By removing the burden of generating annotated data from humans, we make the Deep Learning technique applied to computer vision, that typically requires very large datasets, truly automated and reliable. With the ARS pipeline, we created effortlessly two novel datasets, one on electromechanical components (industrial scenario) and one on fruits (daily-living scenario), and trained robustly two state-of-the-art object detectors, based on convolutional neural networks, such as YOLO and SSD. With respect to the conventional manual annotation of 1000 frames that takes us slightly more than 10 hours, the proposed approach based on ARS allows annotating 9 sequences of about 35000 frames in less than one hour, with a gain factor of about 450. Moreover, both the precision and recall of object detection is increased by about 15% with respect to manual labeling.
Introduction
Training modern deep learning models for robotic vision, such as YOLO or SSD, requires massive amounts of labeled data. While large public datasets exist for general categories, robotic applications often involve niche items—like specific electromechanical switches or fruits for sorting—that lack pre-existing annotations. Manually drawing bounding boxes across thousands of video frames is tedious, expensive, and error-prone. While synthetic data is a popular alternative, it often suffers from a "domain gap" when applied to real-world sensors and lighting. This paper introduces Augmented Reality Semi-automatic labeling (ARS), a pipeline designed to rapidly generate massive, accurately labeled datasets of real images with minimal human intervention.
Methods
The ARS pipeline centers on defining a virtual 3D bounding box around a physical object once and using precise camera tracking to automatically project that box into 2D bounding boxes across an entire video sequence.
Camera Tracking and AR Pen
A 2D camera is mounted on a robotic arm in an "eye-on-hand" configuration, providing high-precision 6-DoF camera pose tracking via the robot's kinematics. To define the initial labels, users utilize a custom 3D-printed "Augmented Reality Pen" covered in fiducial markers. By touching the corners of the physical object with the tracked pen, the system generates a tight 3D virtual bounding box in the world frame.
For irregularly shaped objects where a pen is impractical, the system supports an offline "Visual Hull" method, where users draw 2D masks on a few frames to estimate the 3D volume. Once the 3D box is anchored, the system uses known camera poses to automatically calculate the 2D bounding box for every frame in the recorded video.
Datasets and Results
The authors validated ARS by creating two novel datasets: an Industrial Dataset (7 types of electromechanical components, ~36,000 frames) and a Fruits Dataset (5 classes with high intra-class variability, ~7,500 frames).
Efficiency and Accuracy
The efficiency gains are substantial. Manually annotating 1,000 frames took over 10 hours. In contrast, ARS allowed the annotation of ~35,000 frames in less than one hour—a gain factor of approximately 450.
Beyond speed, the massive quantity of data led to better performance. Object detectors trained on ARS-generated datasets saw a ~15% increase in both precision and recall compared to models trained on smaller, manually labeled datasets. This suggests that in deep learning, massive quantity with consistent quality is superior to limited, human-perfected labels.
Discussion and Future Work
ARS demonstrates that automation can outperform human precision at scale by providing consistent, high-volume data that closes the domain gap. However, the current reliance on a robotic arm for tracking limits portability. Future work aims to extend this pipeline to 6-DoF pose estimation and integrate mobile AR frameworks (like ARKit or ARCore) to enable dataset creation using standard smartphones, further democratizing high-quality data collection for robotics.
Summary updated