Stable Autofocus with Focal Consistency Loss

Sangwon Lee, Myungsub Choi, Nagyeong Lee, Hyong-Euk Lee; Proceedings of the Winter Conference on Applications of Computer Vision (WACV), 2025, pp. 640-649

Abstract


Autofocus aims to accurately position the camera lens to bring the desired region of interest into focus. Conventional works search for the sharpest frame within the lens movement. However sharpness measure in many real-world settings is ambiguous and may cause a focus hunting problem where the lens continuously moves back and forth to search for the accurate position. To mitigate this problem we introduce a simple yet powerful loss function specifically designed to produce consistent outputs in autofocus systems. The proposed Focal Consistency Loss (FCL) allows autofocus models to better learn the geometric cues relative to each initial position of the lens significantly reducing distracting lens movement and enhancing the user experience when taking a photo. Furthermore we improve autofocus stability by utilizing multiple consecutive frames in a practical way. Experimental results show the effectiveness of FCL in various practical scenarios including multi-frame autofocus for both conventional and dual-pixel images.

Related Material


[pdf] [supp]
[bibtex]
@InProceedings{Lee_2025_WACV, author = {Lee, Sangwon and Choi, Myungsub and Lee, Nagyeong and Lee, Hyong-Euk}, title = {Stable Autofocus with Focal Consistency Loss}, booktitle = {Proceedings of the Winter Conference on Applications of Computer Vision (WACV)}, month = {February}, year = {2025}, pages = {640-649} }