Introduction
Traditional autofocus (AF) systems, particularly contrast-based methods, often suffer from latency due to "focus hunting"—the iterative process of moving a lens back and forth to identify the peak sharpness. While Phase Detection AutoFocus (PDAF) offers improvements, it requires specialized sensors that frequently underperform in low-light or high-dynamic-range scenarios. Recent advancements in event cameras, which asynchronously record per-pixel brightness changes at microsecond resolution, have opened new avenues for high-speed AF. However, existing event-based methods typically require a complete "focus stack" to identify the optimal focus point, still necessitating a full lens sweep. This work introduces a "one-step" AF system that leverages the Event Laplacian Product (ELP) to achieve real-time focus detection without the need for exhaustive scanning.
Methodology: The Event Laplacian Product (ELP)
The core of the proposed system is the Event Laplacian Product (ELP), a focus detection function derived from the mathematical relationship between spatial second-order derivatives (Laplacian) and temporal first-order derivatives (Events).
Sign Mutation and Directionality
Unlike traditional focus functions that search for a peak, the ELP function exhibits a unique "sign mutation." As the lens moves toward the focus point, the ELP maintains a consistent sign (e.g., positive). The instant the lens passes the optimal focus position, the ELP flips its sign (e.g., to negative). This zero-crossing behavior allows the system to:
- Determine Direction: The initial sign of the ELP immediately informs the motor which direction to move.
- Real-time Stopping: The system monitors the ELP value and stops the motor the moment the sign mutation occurs, achieving "one-step" autofocus.
System Pipeline
The hardware setup involves an event camera coupled with a motorized lens. For sensors that do not provide grayscale frames, the researchers developed EvTemMap, a technique that generates a high-dynamic-range (HDR) grayscale frame from initial event data to provide the necessary Laplacian information. An adaptive filter is employed to smooth noise while preserving the sharp transition at the focus point.
Experimental Evaluation
The ELP method was benchmarked against state-of-the-art event-based AF methods, including Event Golden Search (EGS) and Polarity Based Autofocus (PBF), across three datasets:
- Synthetic Dataset: A PSF-based simulator modeling lens aberrations and motion jitter.
- DAVIS346 Dataset: Real-world data containing both event streams and grayscale frames.
- Prophesee EVK4 Dataset: High-resolution event-only data used to test the EvTemMap pipeline.
Key Results
- Efficiency: ELP reduces total focusing time by approximately 66% compared to previous methods by eliminating the need for a full focus stack.
- Accuracy: The method demonstrated a 24-fold reduction in focusing error on the DAVIS346 dataset and a 22-fold reduction on the EVK4 dataset compared to PBF.
- Robustness: The system achieved a 100% success rate (focusing within one depth of field) even in challenging low-light (<1 lux) and high-motion scenarios where traditional AF systems typically fail.
Conclusion and Future Work
By transforming the autofocus task from peak-finding to zero-crossing detection, the ELP method enables a true one-step autofocus capability for event cameras. This approach significantly enhances speed and accuracy, particularly in extreme environments. Future research will focus on improving the robustness of the "event-only" pipeline under extreme high-speed motion where scene textures may change rapidly during the focusing process.
Summary updated