Introduction
In multi-camera computer vision tasks, such as 3D reconstruction or motion capture, precise temporal synchronization is paramount. Even minor discrepancies in shutter timing—often as small as 10 milliseconds—can lead to significant artifacts, including "ghosting" and inaccurate motion trajectories. While professional systems utilize hardware "Genlock," consumer-grade devices like GoPros and smartphones lack these capabilities. RocSync introduces an open-source hardware and software framework designed to achieve millisecond-accurate synchronization across diverse, heterogeneous camera systems.
The Synchronization Challenge
Traditional synchronization methods often rely on audio cues (clapping) or simple light flashes. However, these methods are prone to error: audio is limited by the speed of sound (introducing a ~15ms delay over 5 meters), and light-based sync often fails to bridge the gap between standard RGB cameras and specialized infrared (IR) tracking systems. RocSync addresses these limitations by providing a modality-agnostic visual clock.
Hardware Design: The LED Clock
The core of RocSync is a custom-built 25 × 25 cm PCB designed to be visible to both RGB and IR sensors.
The board features three primary components:
- 100-LED Ring: A single LED advances every millisecond. During a camera's exposure, this creates a glowing arc whose start and end points define the exact shutter interval.
- Binary Counter: A row of LEDs encodes a global timestamp with 100 ms resolution, allowing for unique identification of time segments over long recordings.
- Dual Modality: Each position contains both red and IR LEDs, ensuring compatibility with standard video cameras and surgical/robotic IR trackers.
Software Pipeline and Timestamp Extraction
To extract precise timing data, the software pipeline first identifies the board using an ArUco marker and corner LEDs. This allows for homography rectification, "flattening" the perspective to ensure accurate reading of the LED positions.
By analyzing the "exposure window" (the arc formed by the moving LED), the system determines the exact start and end times of the frame. RANSAC-based linear regression is then applied to model clock drift and offset across multiple cameras, enabling sub-frame interpolation.
Results and Impact
RocSync was validated against hardware-synchronized Azure Kinect cameras, achieving a residual error of just 1.34 ms RMSE. This significantly outperforms audio-based methods (11.34 ms) and GoPro's internal timecode synchronization (54.60 ms).
The practical benefits are most evident in downstream tasks. In 3D hand pose estimation experiments, using RocSync’s sub-frame interpolation reduced triangulation error by 50%, from 8.8 pixels down to 4.4 pixels. The system's robustness was further demonstrated in a surgical environment involving over 25 heterogeneous cameras, including iPhones, GoPros, and high-end IR trackers.
Conclusion
RocSync provides a low-cost, high-precision solution for synchronizing "wild west" multi-camera setups. By exploiting the temporal information inherent in motion blur and providing a dual-modality visual reference, it bridges the gap between consumer hardware and professional-grade synchronization requirements.
Summary updated