METHOD FOR DYNAMICALLY CALIBRATING AN IMAGE CAPTURE DEVICE

Abstract
A method for dynamically calibrating an image capture device comprises: a) determining a distance (DCRT, DEST) to an object within a scene; b) determining a first lens actuator setting (DACINIT) for the determined distance; c) determining a second lens actuator setting (DACFOCUS) providing maximum sharpness for the object in a captured image of the scene; and d) storing the determined distance (DCRT, DEST) and the first and second lens actuator settings. These steps are repeated at a second determined distance separated from the first determined distance. A calibration correction (ERRNEARPLP, ERRFARPLP) for stored calibrated lens actuator settings (DACNEARPLP, DACFARPLP) is determined as a function of at least: respective differences between the second lens actuator setting (DACFOCUS) and the first lens actuator setting (DACINIT) for each of the first and second determined distances; and the stored calibrated lens actuator settings are adjusted according to the determined calibration corrections.
Description
FIELD

The present invention relates to a method for dynamically calibrating an image capture device.


BACKGROUND

Referring now to FIG. 1, a typical auto-focus (AF) module 10 for a camera module 12 within an image capture device can obtain an estimate for the distance from the camera module to the target object, for example, from a laser device or stereo camera system 14.


Knowing the estimated subject distance, the auto-focus module 10 can compute a required physical position for a lens 16 to bring the target object into focus. As explained in WO 2016/000874 (Ref: FN-396-PCT), the disclosure of which is herein incorporated by reference, lens position is typically controlled by a lens actuator 18 which is driven by a digital to analog convertor (DAC)—often using an 8-bit DAC code with 255 distinct voltage output levels, or a 10-bit DAC code with 1024 voltage levels—provided by the AF module 10. Thus the AF module 10 determines a required DAC code for a subject distance and the DAC converts the DAC code into an equivalent analog actuator voltage or current value depending on the actuator output circuitry, for example, depending on whether the lens 16 comprises a VCM (voice coil module) or MEMs (micro-electromechanical systems) lens actuator, to determine the lens position.


Once the relationship between DAC code and lens position is determined, for example, there can be a linear relationship between the two, the camera module can be calibrated by adjusting the DAC codes for infinity and macro distances:






DAC
FAR[t] physical lens position to focus at far (infinity) distance at time[t]  [1]






DAC
NEAR[t] physical lens position to focus at near (macro) distance at time[t]  [2]


These calibration parameters can be determined during a production line process (PLP) and their values stored in a non-volatile memory 20 inside the camera module 12 or elsewhere in the camera.


Thus, the auto-focus module 10 can determine the required DAC code to be supplied to the lens actuator 18 as a function of the distance to the target object as well as DACNEAR[t] and DACFAR[t].


It is known that the camera module 12 may be affected by operating conditions such as SAG (gravity influence) or thermal (temperature influence) and WO 2016/000874 (Ref: FN-396-PCT) discloses some methods to compensate for SAG and thermal effects by adjusting DACNEAR[t] and DACFAR [t] according to operating conditions.


Nonetheless, there may be other components contributing to calibration error including inaccuracies, due to some limitations of the PLP or, as disclosed in WO 2016/000874 (Ref: FN-395-PCT), camera module performance drifting over time, for example, due to device aging or even device on-time.


If PLP, SAG or thermal errors are not compensated accordingly, the DAC code computed by AF module will not provide proper focus on the target object.


The camera module may then be required to hunt for focus and this both impacts adversely on focus speed as well as causing an unacceptable lens wobble effect within a preview stream.


It is an object of the present application to mitigate these problems.


SUMMARY

According to the present invention there is provided a method for dynamically calibrating an image capture device according to claim 1.


According to a second aspect there is provided a computer program product comprising a computer readable medium on computer readable instructions are stored and which when executed on an image capture device are arranged to perform the steps of claim 1.


According to a third aspect there is provided an image capture device configured to perform the steps of claim 1.


The present method runs on an image capture device, possibly within a camera module, and dynamically compensates for calibration errors while the user is operating the device.


The method does not affect the production line process and collects the necessary data while the user is operating the device, without adversely affecting the user experience. The method can improve auto-focus speed and minimize lens wobble when estimating the calibration error and then updating the calibration parameters.


The method can be triggered from time to time to check if the calibration parameters haven't been affected by for example, camera ageing, and if so, perform the necessary corrections.





BRIEF DESCRIPTION OF THE DRAWINGS

An embodiment of the invention will now be described, by way of example, with reference to the accompanying drawings, in which:



FIG. 1 illustrates schematically a typical auto-focusing camera module;



FIG. 2 illustrates a method for dynamically calibrating an image capture device according to a first embodiment of the present invention; and



FIG. 3 illustrates a method for dynamically calibrating an image capture device according to a second embodiment of the present invention.





DESCRIPTION OF THE EMBODIMENT

Calibration errors, other than those caused by SAG or thermal effects and referred to herein generally as PLP errors can be quantified as follows:








{





ERR
FAR
PLP

=



DAC
FAR



[
t
]


-


DAC
FAR
PLP





[
3
]









ERR
NEAR
PLP

=



DAC
NEAR



[
t
]


-


DAC
NEAR
PLP





[
4
]











where:


DACFARPLP and DACNEARPLP are the stored calibration parameters for the camera module (CM). This can be measured and determined at production time, or they can be updated from time to time during camera operation as disclosed in WO 2016/000874 (Ref: FN-395-PCT).


Thus, DACFAR[t] and DACNEAR[t] are the desired corrected calibration parameters at time [t], while ERRFARPLP and ERRNEARPLP are the respective errors in these parameters.


To illustrate the impact of the errors in equations [3] and [4] against the final focus position, let us assume a target object is placed at distance [D] from the camera. Typically, in a handheld image capture device such as a consumer camera, smartphone, tablet computer or equivalent, the object of interest is a human face. The corresponding lens position [DACD] to focus at distance [D] is given by the following formula:










DAC
D

=



DAC
FAR



[
t
]


+


1
m

*

(


L
D

-

L
FAR


)







[
5
]







Assuming a linear DAC function, the additional parameters together with their formula are detailed in table 1:









TABLE 1







List of parameters used for mapping the distance to the lens position (DAC)










Parameter
Description
Unit
Formula














DACFAR[t]
See [1]
DAC codes
ERRFARPLP + DACFARPLP
 [6]


DACNEAR[t]
See [2]
DAC codes
ERRNEARPLP + DACNEARPLP
 [7]





m
Actuation slope
mm/ DAC codes






L
NEAR

-

L
FAR





DAC
NEAR



[
t
]


-


DAC
FAR



[
t
]







 [8]





LFAR
Lens displacement to focus at DFAR
mm





L
FAR

=


f
2



D
FAR

-
f






 [9]





LNEAR
Lens displacement to focus at DNEAR
mm





L
NEAR

=


f
2



D
NEAR

-
f






[10]





LD
Lens displacement to focus at current distance [D]
mm





L
D

=


f
2


D
-
f






[11]





DFAR
Far distance (set by CM
mm





manufacturer)





DNEAR
Near distance (set by CM
mm





manufacturer)





f
Focal length of the system
mm










Nonetheless, it will be appreciated that the invention is also applicable to a non-arithmetic, but nonetheless linear relationship between DAC codes and lens position.


Equations [9], [10] and [11] are derived from thin lens equation:







1
f

=


1

f
+

L
D



+

1
D






Replacing [6], [7], [8] in [5], the new formula for computing the DAC value becomes:








{





DAC
D

=


DAC
D
INIT

+


ERR
D





[
12
]








Where


:








DAC
D
INIT

=


DAC
FAR
PLP

+




(


DAC
NEAR
PLP

-

DAC
FAR
PLP


)

*

(


L
D

-

L
FAR


)



(


L
NEAR

-

L

FAR
)









[
13
]









ERR
D

=


ERR
FAR
PLP

+


(


ERR
NEAR
PLP

-

ERR
FAR
PLP


)

*



(


L
D

-

L
FAR


)


(


L
NEAR

-

L
FAR


)






[
14
]












Replacing [9], [10], [11] in [13] and [14], the final formula which estimates the DAC value is given by:








{





DAC
D

=


DAC
D
INIT

+


ERR
D





[
15
]








Where


:








DAC
D
INIT

=


DAC
FAR
PLP

+


(


DAC
NEAR
PLP

-

DAC
FAR
PLP


)

*


(


D
FAR

-
D

)


(


D
FAR

-

D

NEAR
)





*



(


D
NEAR

-
f

)


(

D
-
f

)






[
16
]










ERR
D

=


ERR
FAR
PLP

+


(


ERR
NEAR
PLP

-

ERR
FAR
PLP


)

*


(


D
FAR

-
D

)


(


D
FAR

-

D

NEAR
)





*



(

D

NEAR
-
f


)


(

D
-
f

)






[
17
]












ERRD is the overall error generated by PLP errors (ERRFARPLP and ERRNEARPLP).


Referring now to FIG. 2, the first step of a compensation method according to one embodiment is to collect input data in an internal buffer (BUFF) while the user is operating the camera. This process can be done transparently without affecting the user experience. An input record should contain the data summarized in table 2. The buffer should have enough space to store at least 2 records.









TABLE 2







Dynamic compensation input data









Data
Description
Unit





TCRT
Current sensor temperature (provided by
Celsius



the internal thermal sensor of the CM)
degrees


OCRT
Current device orientation relative to
Degrees



horizontal plane (estimated from the



output of the device accelerometer)


DCRT
Current estimated distance to the
Millimeters



object (provided by AF algorithm)


DACDCRTINIT
Initial lens position (provided by
DAC codes



AF algorithm based on DCRT).


DACDCRTFOCUS
Focus lens position (provided by
DAC codes



AF algorithm at optimal focus)









Sensor temperature [TCRT] and device orientation [OCRT] are used to adjust the original calibration parameters to compensate for the CM being affected by SAG (gravity) or thermal effects, as disclosed in WO 2016/000874 (Ref: FN-395-PCT). To briefly explain how to compensate SAG and thermal effects, assume that during production, the CM orientation was OPLP and the sensor temperature was TPLP.


If the CM is affected by SAG, OCRT≠OPLP, then the original calibration parameters are converted into the OCRT range. In the present description, this transformation function is represented as SAG below:


[DACFARPLP, DACNEARPLP]OCRT=SAG(DACFARPLP, DACNEARPLP, OPLP, OCRT)


If the CM is not affected by SAG, the calibration parameters will remain unchanged: [DACFARPLP, DACNEARPLP]OCRT=[DACFARPLP, DACNEARPLP]


If the CM is affected by thermal effect, TCRT≠TPLP, then the calibration parameters after SAG correction are converted into the TCRT range. Again, a transformation function, called TH below, can be used: [DACFARPLP, DACNEARPLP]TCRT=TH([DACFARPLP, DACNEARPLP]OCRT, TPLP, TCRT)


If the CM is not affected by thermal effects, then the calibration parameters resulting from any SAG correction will remain unchanged: [DACFARPLP, DACNEARPLP]TCRT=[DACFARPLP, DACNEARPLP]OCRT


Note that in each case SAG( ) and TH( ) can involve lookup tables, and again details of how to adjust the DACFARPLP and DACNEARPLP values to take into account temperature and orientation are disclosed in WO 2016/000874 (Ref: FN-395-PCT).


At this point, PLP errors are unknown. For estimating them, data is collected during AF module operation as follows:

    • 1. Estimate [DCRT] using the laser device or a stereo camera system 14;
    • 2. Use [16] to compute the initial lens position [DACDCRTINIT]







DAC

D
CRT

INIT

=


DAC
FAR
PLP

+


(


DAC
NEAR
PLP

-

DAC
FAR
PLP


)

*


(


D
FAR

-

D
CRT


)


(


D
FAR

-

D

NEAR
)





*


(


D
NEAR

-
f

)


(


D
CRT

-
f

)










    • 3. Set the lens position to DACDCRTINIT and start searching the focus position around DACDCRTINIT. The lens should be moved forth or back until the best contrast value is achieved. The lens position with the best contrast value will be the focus position [DACDCRTFOCUS]





For large PLP errors, the DAC DACDCRTFOCUS focus position will be far from the initial position DAC DACDCRTINIT. The focus speed will be slow and the lens wobble effect strongly visible. For small errors, the DAC DACDCRTFOCUS focus position will be closer to the initial position DACDCRTINIT. The focus speed will be higher and the lens wobble effect less visible.


The goal of dynamic compensation method is to use the above data (provided by steps 1, 2 and 3) to estimate PLP errors. Once the estimation is done, the calibration parameters (DACFARPLP, DACNEARPLP) will be properly updated and the lens position provided by [16] will be the focus position. Focus sweeping will not be necessary anymore, and thus the AF module speed will be improved and the lens wobble effect reduced.


One way to define sufficiently good accuracy, is to restrict the errors of [DCRT] and [DACDCRTINIT] to less than set thresholds as follows:












err

D
CRT




<


DOF

D
CRT


4





[
18
]









err

DAC

D
CRT

FOCUS




<


DAC
STEP

2





[
19
]







To understand the meaning of DOFDCRT, and DACSTEP, additional parameters are summarized in table 3.









TABLE 3







DOF Parameters










Parameter
Description
Unit
Formula














DOFD
Depth of field at
mm
DOFD = DF − DN
[20]



distance [D]








DF
Far limit of DOF at distance [D]
mm





D
F

=


Df
2



f
2

-

Nc


(

D
-
f

)








[21]





DN
Near limit of DOF at distance [D]
mm





D
N

=


Df
2



f
2

+

Nc


(

D
-
f

)








[22]





N
Relative aperture (F#)






of the lens system





c
Circle of confusion
mm
c = 2 * PS
[23]


PS
Pixel size
mm




f
Focal length of
mm





the system









DACSTEP is the absolute difference between the corresponding DAC values at DF and DN distances. Using [15], [16] and assuming ERRDF≈ERRDN, an estimated value of DACSTEP is given by:










DAC
STEP

=






DAC

D
F


-

DAC

D
N











DAC
STEP


=






(


DAC
NEAR
PLP

-

DAC
FAR
PLP


)

*

(


D
NEAR

-
f

)

*

(


D
FAR

-
f

)



(


D
FAR

-

D
NEAR


)




*




(


D
N

-

D
F


)



(


D
F

-
f

)

*

(


D
N

-
f

)











[
24
]







DACSTEP should be a constant value (should not vary with the distance D).


The second step of the compensation method is to estimate the errors [3] and [4] and to update the calibration parameters. It requires, two input records (TCRT, OCRT, DCRT, DACDCRTINIT, DACDCRTFOCUS) which satisfy the following condition: [D1F, D1N]∩[D2F, D2N]=Ø[25]


where:


[T1, O1, D1, DACD1INIT, DACD1FOCUS] is the first record.


[T2, O2, DACD2INIT, DACD2FOCUS] is the second record.


[D1F, D1N] is the DOF range at first distance D1 (D1F is the far limit, D1N is the near limit).


[D2F, D2N] is the DOF range at second distance D2 (D2F is the far limit, D2N is the near limit).


If the test of equation [25] is satisfied (the two distances are quite different), then using [15] and replacing [DACD, D] with [DACD1FOCUS, D1] and [DACD2FOCUS, D2], the resulting ERRD1 and ERRD2 are:






ERR
D

1

=DAC
D

1

FOCUS
−DAC
D

1

INIT  [26]






ERR
D

2

=DAC
D

2

FOCUS
−DAC
D

2

INIT  [26]


where:


DACD1INIT and DACD2INIT are computed using [16].


Using [17] and replacing [ERRD, D] with [ERRD1, D1] and [ERRD2, D2], it results the following linear system:






{





ERR

D
1


=


ERR
FAR
PLP

+


(


ERR
NEAR
PLP

-

ERR
FAR
PLP


)

*


(


D
FAR

-

D
1


)


(


D
FAR

-

D
NEAR


)


*


(


D
NEAR

-
f

)


(


D
1

-
f

)











ERR

D
2


=


ERR
FAR
PLP

+


(


ERR
NEAR
PLP

-

ERR
FAR
PLP


)

*


(


D
FAR

-

D
2


)


(


D
FAR

-

D
NEAR


)


*


(


D
NEAR

-
f

)


(


D
2

-
f

)













To simplify the above system, the following substitutions will be done:









{







D
1




=



(


D
FAR

-

D
1


)


(


D
FAR

-

D
NEAR


)


*


(


D
NEAR

-
f

)


(


D
1

-
f

)













D
2




=



(


D
FAR

-

D
2


)


(


D
FAR

-

D
NEAR


)


*


(


D
NEAR

-
f

)


(


D
2

-
f

)
















[
28
]













[
29
]










The new system becomes:






{





ERR

D
1


=




ERR
FAR
PLP



(


1
-





D
1



)


+





D
1




ERR
NEAR
PLP









ERR

D
2


=




ERR
FAR
PLP



(


1
-





D
2



)


+





D
2




ERR
NEAR
PLP











PLP errors can now be estimated with the following formulae:









{





ERR
FAR
PLP

=





D
2





*

ERR

D
1



-





D
1




*

ERR

D
2








D
2




-



D
1












ERR
NEAR
PLP

=




(


1
-





D
2



)

*

ERR

D
1



-


(


1
-





D
1



)

*

ERR

D
2








D
1




-



D
2

















[
30
]













[
31
]










where:


ERRD1 and ERRD2 are computed using [26] and [27].


∝D1 and ∝D2 are computed using [28] and [29].


The new updated calibration parameters (which should be used further to improve AF module speed and reduced lens wobble effect) are:









{





DAC
FAR
NEW

=


DAC
FAR
PLP

+

ERR
FAR
PLP









DAC
NEAR
NEW

=


DAC
NEAR
PLP

+

ERR
NEAR
PLP













[
32
]






[
33
]










In a second embodiment of the present invention, instead of directly measuring a distance to an object in a scene being imaged, the distance can be estimated based on an assumed dimension of an object being imaged, for example, a face. More details about estimating the distance based on face information or indeed any recognizable object with a known dimension can be found in U.S. Pat. No. 8,970,770 (Ref: FN-361) and WO 2016/091545 (Ref: FN-399), the disclosures of which are herein incorporated by reference.


However, as disclosed in WO 2016/091545 (Ref: FN-399), care should be taken when doing so to ensure that the object is not a false image of an object, for example, a billboard showing a large face, or a small printed face or a small child's face, where the assumed dimension may not apply. Thus, the second embodiment aims to provide dynamic compensation to estimate ERRPLP while taking into account that false faces may be present in a scene.


Let assume the distance from the face to the image acquisition device is [D]. The current estimated distance [DEST] to that face is computed with the following formula:










D
EST

=

f
*

ed

edp
*

P
S








[
34
]







where:

    • f represents the focal length of the lens system
    • PS is the pixel size
    • ed represents the assumed dimension, in this case, eye distance in millimeters for a human face (ed=70 mm)
    • edp represents the computed eye distance in pixels within the detected face region


For those human faces (where ed≈70 mm), formula [1] will provide a good estimation of the distance (DEST≈D).


For false faces (ex. a small printed face with ed 20 mm), formula [1] will provide a wrong distance because it assumes that ed=70 mm.


The lens position [DACE] to focus at distance [D] is given by the following formula:






DAC
D
=DAC
D

EST

INIT
+ERR
D  [2]


where:


DACDESTINIT, the initial lens position computed based on estimated distance [DEST], can be calculated as per DACDCRTINIT in equation [16]; and






ERR
D
=ERR
PLP
+ERR
D

EST
  [35]


Note that in this example, near and far PLP errors are assumed to be almost the same (ERRFARPLP≈ERRNEARPLP≈ERRPLP) and ERRDEST represents an error caused by the wrong estimation of the distance to an object.


Referring now to FIG. 3, again the first step of dynamic compensation method is to collect into an internal buffer (BUFF) the necessary input data while the user is operating the camera. This process should be done transparently without affecting the user experience. Again, an input record should contain the data summarized in table 2, but instead of the measured


DCRT of the first embodiment, DEST the estimated distance is used. The buffer should have enough space to store at least 2 records.


The second step of dynamic compensation process is to estimate ERRPLP and to update the calibration parameters. The embodiment attempts to image a given face at two separate distances, although in variants of the embodiment, measurements from images of different faces could be employed. In any case as in the first embodiment, two input records (TCRT, OCRT) DEST, DACDESTINIT, DACDESTFOCUS) are required which satisfy the following conditions:


a)[D1F, D1N]∩[D2F, D2N]=Ø


where:

    • [T1, O1, D1, DACD1INIT, DACD1FOCUS] is the first record;
    • [T2, O2, D2, DACD2INIT, DACD2FOCUS] is the second record;
    • [D1F, D1N] is the DOF range for the first estimated distance (D1F is the far limit, D1N is the near limit); and
    • [D2F, D2N] is the DOF range for the second estimated distance (D2F is the far limit, D2N is the near limit).


b) |ERR1|≤N*DACSTEP

    • |ERR2|≤N*DACSTEP
    • |ERR1−ERR2|<DACSTEP/2


      where
    • DACSTEP is determined as per equation [24] of the first embodiment;











ERR
1



=



[
2
]






DAC

D
1

FOCUS

-

DAC

D
1

INIT



;
and




[
36
]







ERR
2



=



[
2
]






DAC

D
2

FOCUS

-


DAC

D
2

INIT

.






[
37
]







As before, the first condition (a), requires that the two distances should be different.


The second condition (b), requires that the object being imaged indeed exhibits the assumed dimension so that a given face to be a live human face, ed≈70 mm. In this case, the errors should not be larger than the maximum error (N*DACSTEP) and they should be quite similar (the difference should not be higher than half DACSTEP). This condition assures that ERREST≈0 and ERRD≈ERRPLP as in the first embodiment.


If the current face is false (condition (b) is not respected), and so compensation must not be done until a new valid face is received.


If conditions (a) and (b) are respected, them ERRPLP will be estimated as follows:










ERR
PLP

=



ERR
1

+

ERR
2


2





[
38
]







The new updated calibration parameters (which should be used further to improve AF speed and reduced lens wobble effect) are:









{





DAC
FAR
NEW

=


DAC
FAR
PLP

+

ERR
PLP









DAC
NEAR
NEW

=


DAC
NEAR
PLP

+

ERR
PLP













[
39
]






[
40
]










As indicated, the maximum estimated error should not be higher than N*DACSTEP (ERRPLP<N*DACSTEP). The value of N can be determined by the image acquisition device or camera module manufacturer according to how tightly they wish the estimated compensation process to operate. Thus, the larger the value of N the greater the possibility of calibrating based on a poorly estimated distance to an object.


It will be appreciated that many variations of the above described embodiments are possible and that for example features and functions described in relation to the first embodiment are applicable to the second embodiment and vice versa where possible.

Claims
  • 1. A method for dynamically calibrating an image capture device comprising: a) determining a distance (DCRT, DEST) to an object within a scene being imaged by said image capture device;b) determining a first lens actuator setting (DACINIT) as a function of: a stored calibrated lens actuator setting (DACNEARPLP) for a pre-determined near focus distance (DNEAR), a stored calibrated lens actuator setting (DACFARPLP) for a pre-determined far focus distance (DFAR), a focal length (f) of the image capture device and said determined distance (DCRT, DEST);c) determining a second lens actuator setting (DACFOCUS) providing maximum sharpness for said object in a captured image of said scene; andd) storing said determined distance (DCRT, DEST), first lens actuator setting (DACINIT) and second lens actuator setting (DACFOCUS);e) subsequently repeating steps a) to c) at a second determined distance separated from said first determined distance;f) determining a calibration correction (ERRNEARPLP, ERRFARPLP) for each of said calibrated lens actuator settings (DACNEARPLP, DACFARPLP) as a function of at least: respective differences between said second lens actuator setting (DACFOCUS) and said first lens actuator setting (DACINIT) for each of said first and second determined distances; andg) adjusting the stored calibrated lens actuator settings according to said determined calibration corrections.
  • 2. A method according to claim 1 further comprising, prior to said step of determining a first lens actuator setting (DACINIT), adjusting said stored calibrated lens actuator settings (DACNEARPLP, DACFARPLP) as a function of an operating temperature of the device and/or a function of an operating orientation of the device; and storing said operating temperature and/or operating orientation of the device with said determined distance (DCRT, DEST), first lens actuator setting (DACINIT) and second lens actuator setting (DACFOCUS).
  • 3. A method according to claim 1 wherein determining said second lens actuator setting (DACFOCUS) comprises beginning a search using said first lens actuator setting.
  • 4. A method according to claim 1 wherein said first and second determined distances are separated from one another by at least the respective depths of field at said first and second determined distances.
  • 5. A method according to claim 1 comprising periodically repeating steps a) to g).
  • 6. A method according to claim 1 wherein there is a linear relationship between a lens actuator setting and a lens position required to focus at a given distance.
  • 7. A method according to claim 1 wherein determining said first lens actuator setting (DACINIT) is based on the following formula:
  • 8. The method of claim 1 wherein said step of determining said distance to an object comprises measuring said distance (DCRT).
  • 9. A method according to claim 1 comprising determining said calibration correction (ERRNEARPLP, ERRFARPLP) for each of said calibrated lens actuator settings (DACNEARPLP, DACFARPLP) as a function of: respective differences between said second lens actuator setting (DACDCRTFOCUS) and said first lens actuator setting (DACDCRTINIT) for each of said first and second determined distances; respective differences between said first and second determined distances and one of said pre-determined near or far focus distances; a difference between said pre-determined near and far focus distances; and respective differences between said first and second determined distances and said focal length (f).
  • 10. A method according to claim 9 wherein said calibration correction for each of said calibrated lens actuator settings, ERRFARPLP and ERRNEARPLP, is calculated according to the following formulae:
  • 11. A method according to claim 10 wherein said adjusting the stored calibrated lens actuator settings comprises providing new settings DACFARNEW and DACNEARNEW according to the formulae:
  • 12. The method of claim 1 wherein the object is a human face.
  • 13. The method of claim 1 wherein said step of determining said distance to an object comprises estimating a distance (DEST) to said object based on an imaged size of said object and an assumed dimension of said object.
  • 14. The method of claim 13 comprising testing whether a potential correction resulting from an estimated distance exceeds a threshold value before either: storing said determined distance, first lens actuator setting and second lens actuator setting; or determining said calibration correction.
  • 15. The method of claim 14 wherein said threshold is a function of an absolute difference (DACSTEP) between the corresponding actuator settings at a far limit of focus (DF) and a near limit of focus (DN) at a given focus distance (D).
  • 16. A computer program product comprising a computer readable medium on computer readable instructions are stored and which when executed on an image capture device are arranged to perform the steps of claim 1.
  • 17. An image capture device configured to perform the steps of claim 1.
Continuations (1)
Number Date Country
Parent 15605159 May 2017 US
Child 16208091 US