Improving the accuracy and low-light performance of contrast-based autofocus using supervised machine learning

We present a supervised machine learning approach to constructing an autofocus algorithm.We compare our automatically learned autofocus algorithm to previously proposed hand-crafted autofocus algorithms.Our autofocus algorithm is more accurate, especially in the presence of noise, such as in low-light situations, which are difficult for cameras. The passive autofocus mechanism is an essential feature of modern digital cameras and needs to be highly accurate to obtain quality images. In this paper, we address the problem of finding a lens position where the image is in focus. We show that supervised machine learning techniques can be used to construct heuristics for a hill-climbing approach for finding such positions that out-performs previously proposed approaches in accuracy and robustly handles scenes with multiple objects at different focus distances and low-light situations. We gather a suite of 32 benchmarks representative of common photography situations and label them in an automated manner. A decision tree learning algorithm is used to induce heuristics from the data and the heuristics are then integrated into a control algorithm. Our experimental evaluation shows improved accuracy over previous work from 91.5% to 98.5% in regular settings and from 70.3% to 94.0% in low-light.

[1]  Homer H. Chen,et al.  Robust focus measure for low-contrast images , 2006, 2006 Digest of Technical Papers International Conference on Consumer Electronics.

[2]  J. Ross Quinlan,et al.  C4.5: Programs for Machine Learning , 1992 .

[3]  C. Ortiz de Solórzano,et al.  Evaluation of autofocus functions in molecular cytogenetic analysis , 1997, Journal of microscopy.

[4]  Matthew R. Arnison,et al.  Focus finding using scale invariant patterns , 2013, Electronic Imaging.

[5]  A W Smeulders,et al.  Robust autofocusing in microscopy. , 2000, Cytometry.

[6]  Nasser Kehtarnavaz,et al.  Development and real-time implementation of a rule-based auto-focus algorithm , 2003, Real Time Imaging.

[7]  Chih-Ming Chen,et al.  Efficient auto-focus algorithm utilizing discrete difference equation prediction model for digital still cameras , 2006, IEEE Transactions on Consumer Electronics.

[8]  Ian H. Witten,et al.  The WEKA data mining software: an update , 2009, SKDD.

[9]  Sung-Jea Ko,et al.  New autofocusing technique using the frequency selective weighted median filter for video cameras , 1999, 1999 Digest of Technical Papers. International Conference on Consumer Electronics (Cat. No.99CH36277).

[10]  Muralidhara Subbarao,et al.  Selecting the Optimal Focus Measure for Autofocusing and Depth-From-Focus , 1998, IEEE Trans. Pattern Anal. Mach. Intell..

[11]  Nasser Kehtarnavaz,et al.  Real-time implementation of single-shot passive auto focus on DM350 digital camera processor , 2009, Electronic Imaging.

[12]  Rey-Chue Hwang,et al.  A passive auto-focus camera control system , 2010, Appl. Soft Comput..

[13]  Sung-Jea Ko,et al.  A novel training based auto-focus for mobile-phone cameras , 2011, IEEE Transactions on Consumer Electronics.

[14]  Jingqiang Li Autofocus searching algorithm considering human visual system limitations , 2005 .

[15]  Peter van Beek,et al.  An extensive empirical evaluation of focus measures for digital photography , 2014, Electronic Imaging.

[16]  Nasser Kehtarnavaz,et al.  Enhanced low-light auto-focus system model in digital still and cell-phone cameras , 2009, 2009 16th IEEE International Conference on Image Processing (ICIP).

[17]  Soo-Won Kim,et al.  Enhanced Autofocus Algorithm Using Robust Focus Measure and Fuzzy Reasoning , 2008, IEEE Transactions on Circuits and Systems for Video Technology.

[18]  Nasser Kehtarnavaz,et al.  Real-time face-priority auto focus for digital and cell-phone cameras , 2008, IEEE Transactions on Consumer Electronics.

[19]  Alberto Maria Segre,et al.  Programs for Machine Learning , 1994 .

[20]  Zhiliang Hong,et al.  Modified fast climbing search auto-focus algorithm with adaptive step size searching technique for digital camera , 2003, IEEE Trans. Consumer Electron..

[21]  I T Young,et al.  A comparison of different focus functions for use in autofocus algorithms. , 1985, Cytometry.

[22]  Nasser Kehtarnavaz,et al.  Low-Light Auto-Focus Enhancement for Digital and Cell-Phone Camera Image Pipelines , 2007, IEEE Transactions on Consumer Electronics.