Liquid crystal lens autofocus places a thin element whose optical power can be tuned by voltage inside the imaging lens, and uses the added power to change the focus distance while the lens and the camera stay still. It addresses a problem common to industrial cameras and compact camera modules: whenever the working distance changes, the focal plane has to move with it.
Most industrial camera lenses are fixed-focus lenses: during setup the focus ring is turned until the workpiece surface is sharp and then locked, and from then on the whole production line runs at that working distance. As soon as the workpiece height, the product model or the reading distance changes, the focal plane has to follow. The usual approaches are to move the camera or the lens elements, or to stop down the aperture and rely on depth of field to cover the range; a liquid crystal lens requires no moving parts at all.
This article discusses how this approach is put into practice in machine vision and compact camera modules. It first explains where the need for focusing comes from and why depth of field alone cannot meet it. It then derives how the added power translates into working distance, depth of field and magnification, and compares placing the liquid crystal lens in front of the lens, at the aperture stop and at the stop of a telecentric lens. After that it discusses how autofocus algorithms work together with the response of a liquid crystal lens, how the approach compares with voice coil motor (VCM) modules and liquid lenses, and the limitations imposed by polarization, temperature and small-aperture modules. The difference between focusing and zooming, the general characteristics of mechanical actuators and the basic specifications of liquid crystal lenses are covered in What Is a Liquid Crystal Tunable Lens? Principles, Types and System Integration; this article cites its conclusions only where needed.
The conventions follow that article: optical power is , in diopters D (i.e. ); the object distance is the distance from the object to the lens, positive for real objects; the image distance is ; is called the object-space vergence, also in D. The added power provided by the liquid crystal lens is written . In this article, "liquid crystal lens" mainly refers to the continuously tunable gradient-index (GRIN) liquid crystal lens, whose principle is explained in GRIN Liquid Crystal Lenses: How Voltage Tunes Focal Length Continuously; the PB liquid crystal lens, which can only switch between discrete focal states, is described in PB Lens Principles: How Geometric Phase Liquid Crystal Lenses Switch Focal Length Electrically and discussed separately where applicable. Two reviews cover the structural types and main challenges of liquid crystal lenses [1][2].
Focusing needs in machine vision
In machine vision, the need for focusing comes mainly from the following kinds of scenarios.
- One station, several working distances. The same inspection system has to handle several product models of different heights, and at each changeover the focal plane must move to the new height.
- Height variation on the production line. Trays, fixtures and conveyors have height tolerances, and workpieces may be warped or stacked; in logistics sorting, box heights that differ by several tens of centimeters are common.
- Workpieces of different sizes. A large workpiece has to fit in the field of view, so the camera must be farther away; a small workpiece has to be seen in detail, so the camera must be closer. When the working distance changes, the focal plane has to change too.
- Barcode and character reading. Decoding requires the edges of bars and spaces to be sufficiently sharp, and the narrowest bar (the module) usually has to span several pixels. Defocus lowers the contrast between narrow bars and narrow spaces, and decoding fails. Fixed-mount and handheld readers often face a wide range of reading distances.
- Steps and uneven surfaces. On stepped parts, or on circuit boards with components of different heights, the height difference between the upper and lower surfaces may exceed the depth of field of the lens, and a single focal plane cannot render them all sharp at once.
What these scenarios have in common is that the focal plane has to switch between several heights or track the workpiece in real time. The requirements on the focusing mechanism are also specific: each switch must be completed within the cycle time; the same command must return to the same focal plane, i.e. repeatability must be good; vibration and shock on the line must not make the focal plane drift; and long-term, high-volume switching must not wear in play. Manual refocusing requires stopping the line; motorized focusing lenses and Z-axis translation stages are bulky and limited in speed, and their lead screws and guides suffer from backlash and wear; a VCM suspends the lens barrel on springs, has a short stroke and is sensitive to shock and mounting orientation.
Why depth of field is not enough
The most direct idea is to stop down the aperture until the depth of field covers the whole height range. To see the limits of this approach, first write down the depth of field.
When the lens is focused at object distance , an object point at forms a sharp image on the detector. When the object moves to , the Gaussian lens formula [3] shows that, with the power and the detector position fixed, the image-space vergence changes by the same amount as the object-space vergence but with the opposite sign, i.e. . The image point therefore moves axially by about . The cone of light that leaves an entrance pupil of diameter and converges to the image point has an angular width of about , and the blur spot it cuts out on the detector has a diameter equal to the product of the two:
Here the entrance pupil is taken to coincide with the lens, and the image shift caused by defocus is assumed to be much smaller than . Specifying a permissible blur-spot diameter and requiring gives the total depth of field expressed in vergence:
The second equality substitutes ( is the f-number) and ( is the absolute value of the lateral magnification). Three points can be read from this expression.
First, measured in diopters, the depth of field is almost independent of the working distance. For distant imaging and , determined only by the lens and the permissible blur spot. Converted to length, the depth of field is about and grows with the square of the working distance, so the same lens has a wide depth of field when looking far away and a narrow one when looking close. As shown below, the added power of a liquid crystal lens is also counted directly in diopters, which makes the most convenient measure.
Second, the depth of field is proportional to . Stopping down does increase the depth of field, but the diffraction spot grows with it. The Airy disk diameter for a circular aperture is , where is the working f-number [3]. Once the Airy disk becomes comparable to , stopping down further only blurs the whole image. At the same time the light throughput is inversely proportional to ; maintaining the exposure requires a longer exposure time or stronger illumination, and motion blur on moving workpieces increases accordingly.
Third, is tied to the pixel size and is usually taken as one to two pixels. The smaller the pixels and the higher the resolution, the smaller and the proportionally narrower the depth of field. Switching to a higher-resolution sensor to detect smaller defects makes the depth-of-field problem more pronounced.
Example. A lens with a 16 mm focal length at F/4 has an entrance pupil diameter mm; with 3.45 μm pixels, take as two pixels, i.e. 6.9 μm; the wavelength is 550 nm. Focused at 400 mm, and D, giving a sharp range of about 384–417 mm, about 33 mm in total; focused at 1000 mm, the range is about 904–1119 mm; focused at 250 mm, it is about 244–257 mm, only about 13 mm. At all three distances the Airy disk diameter is between 5.5 and 5.7 μm, slightly smaller than .
For this lens to cover 250–1000 mm without refocusing, i.e. 1–4 D, a span of 3 D, the expression requires . The Airy disk diameter would then be about 81 μm, more than ten times , and the light throughput only about 1/210 of that at F/4. The only option is therefore to move the focal plane: keep F/4 and divide the 3 D range into segments about 0.21 D wide, which takes about 15 focal states; see Figure 1(b).
Tiling the depth of field with discrete focal states has been verified experimentally. Chen and Lin switched a liquid crystal lens between three discrete optical powers in an endoscope system; with the depths of field of the focal states stitched together, the range of object distances that could be observed clearly was 12.4–76.4 mm, about twice that without the liquid crystal lens [4].
The estimates above are based on geometric optics. The acceptable amount of defocus depends on the task: dimensional measurement requires accurate edge location, so must be strict; barcode reading only requires the narrowest module to remain resolvable, so more defocus can be tolerated. should be set from the modulation transfer function (MTF) the task requires, but two points still hold: the depth of field is best counted in diopters, and it is proportional to and .
How added power translates into working distance
There are three typical positions for integrating a liquid crystal lens into an imaging lens, shown in Figure 2. Depending on the position, the same added power produces different changes in focus distance, requires different apertures and affects magnification differently.
At the aperture stop
The aperture stop is usually inside the lens group. With the liquid crystal lens at the stop, and treating it as in contact with the elements next to the stop, the system power becomes . With the detector position unchanged, the Gaussian formula gives
The added power adds directly to the object-space vergence: a positive brings the focus distance closer, and a negative one moves it farther away. This is exactly why measuring the depth of field in diopters, as in the previous section, is convenient: each focal state covers a vergence of about , and the number of focal states needed is the vergence range divided by , independent of the nominal focus distance. How to choose the nominal focus distance depends on whether the liquid crystal lens can tune in both the positive and negative directions; this is discussed in What Is a Liquid Crystal Tunable Lens? Principles, Types and System Integration.
Example. Using the same lens, set the fixed lens group to a nominal focus of 1000 mm (1 D). For of 0.5 D, 1.5 D and 3 D, the focus distances are about 667 mm, 400 mm and 250 mm; see Figure 3(a). Each focal state has a depth of field about 0.2 D wide, so the closer the focus distance, the narrower the depth of field in millimeters.
The stop position has another property that matters for measurement. The chief ray passes through the center of the stop, where the liquid crystal lens does not deflect rays; so for a given object, changing changes only the sharpness, not the position of the image point (the center of the blur spot), and the image size does not change with focusing.
This does not mean that the magnification is constant. For objects at different working distances, the magnification still varies with distance as ; this is the perspective relation of an ordinary (non-telecentric) lens and has nothing to do with how focusing is done. Focusing makes workpieces of different heights all sharp, but their pixel scale (the object-space size corresponding to one pixel) is not the same.
Example. At a working distance of 400 mm, a 2 mm change in workpiece height changes the magnification by about 0.5%, so a 50 mm dimension would be measured with an error of about 0.25 mm.
The focusing result itself contains distance information: the at best focus gives , which can be used to correct the pixel scale. The accuracy of this estimate, however, is limited by the depth of field. Krotkov measured distance from the focus motor position combined with the thick-lens formula and achieved an accuracy of about 2.5% over 1–3 m, comparable to the depth of field of the lens [5]. Such accuracy is sufficient for selecting an inspection program or making a rough dimensional correction, but not for replacing height calibration in precision measurement. For dimensional measurement, a safer approach is to calibrate the pixel scale separately for each focal state, or to use a telecentric lens instead (see below).
In front of the lens
Mounting the liquid crystal lens in front of the imaging lens does not require opening the lens, which suits retrofitting existing systems. As long as the distance between the liquid crystal lens and the entrance pupil is much smaller than the working distance, the relation above still holds approximately (with now measured from the liquid crystal lens). There are two costs.
The first is aperture. Beams from off-axis field points cross the space in front of the lens obliquely and are already displaced from the axis when they reach the liquid crystal lens, as in Figure 2(a). With an entrance pupil diameter and a half field angle , the clear aperture required of the liquid crystal lens is about
while the power limit of a GRIN liquid crystal lens, , is inversely proportional to the square of the aperture, where is the maximum optical path difference the liquid crystal layer can provide [2]. As the aperture grows, the tuning range shrinks rapidly.
Example. With an entrance pupil diameter of 4 mm, mm and a half field angle of , the required aperture is about 9.4 mm. Computing the power limit with (assuming the full is usable, which gives an ideal upper bound): at the stop, with a 4 mm aperture, it is about 3.0 D; in front of the lens, with a 9.4 mm aperture, it is only about 0.55 D; see Figure 3(b). Reaching 3 D in front of the lens would require an optical path difference about 5.5 times larger; the liquid crystal layer would be correspondingly thicker, and because the relaxation time grows with the square of the thickness, it would be about 30 times longer.
The second is focus breathing, i.e. the change in image size of a given object during focusing. When the liquid crystal lens is not at the stop, the chief ray crosses it at an off-axis height and is deflected. Let the object height be and the height of the chief ray on the liquid crystal lens be ; the liquid crystal lens deflects the ray by . Requiring the deflected chief ray to pass through the center of the entrance pupil then gives and the angle of the chief ray entering the lens. For a fixed object, the ratio of the image heights with and without the added is
The approximation holds for and . The relative image scaling is approximately the product of the spacing and the added power.
Example. With mm, focusing on an object at about 333 mm requires D, and the image of the same object is about 3% larger than at ; at D it is about 1% larger. In dimensional measurement this scaling must be calibrated for each focal state; in multi-focal image fusion, the frames must be registered before they are combined.
At the stop of a telecentric lens
Dimensional measurement often uses object-side telecentric lenses: the aperture stop is placed at the back focal plane of the front group, all object-space chief rays are parallel to the optical axis, and the image size does not change when the object moves back and forth within the depth of field. The price is that the depth of field is usually very shallow, and the working distance of a telecentric lens is fixed.
Placing the liquid crystal lens at this stop has two consequences. The combined power of two thin lenses separated by is [3]. Taking the front group as , the liquid crystal lens as and the spacing as , the last two terms cancel exactly, so the combined power is still and the focal length is unchanged. The back focal point of the combination is still at the stop, while the distance from the front focal point to the front group becomes , i.e. the front focal point moves toward the lens by . With the rear group and the detector fixed, all quantities in Newton's formula, which measures distances from the focal points, stay the same, so the object plane moves together with the front focal point:
For the object plane moves closer. At the same time, the chief ray passes through the center of the stop and is not deflected by the liquid crystal lens, so the object-space chief rays remain parallel to the optical axis, and both telecentricity and magnification are preserved.
Example. With a front-group focal length mm and a liquid crystal lens providing D, the object plane can move by mm with unchanged magnification. The stop of a telecentric lens is usually small, which suits a liquid crystal lens well.
This conclusion follows from Gaussian optics; whether it can be realized depends on whether the lens leaves room at the stop. One more condition must be considered: in a telecentric lens, chief rays from different field points cross the stop at different angles. With an object-space half field of 20 mm and mm, the chief ray of the edge field makes an angle of about with the optical axis at the stop. When light crosses the liquid crystal layer obliquely, the effective refractive index it experiences depends on the angle of incidence, so off-axis field points receive a different added power from the on-axis point, and astigmatism appears as well. Li et al. used numerical calculations to show how multi-cell structures and phase resetting improve the off-axis imaging of refractive liquid crystal lenses [6], which indicates that this problem has to be addressed specifically in device design.
Autofocus: matching the search algorithm to the liquid crystal response
Contrast detection and hill-climbing search
Most machine vision systems have no dedicated ranging or phase-detection unit, so autofocus relies on the image itself: the sharper the image, the more high-spatial-frequency content it contains. A focus measure turns sharpness into a number, and the system then looks for the drive value that maximizes it. Krotkov compared a range of focus measures and found that those based on gray-level gradient magnitude performed best: the curve is unimodal, monotonic on both sides of the peak and robust to noise [5]. Such a measure is commonly written as
where and are the horizontal and vertical gradients computed with an operator such as Sobel, and the sum runs over the selected focus window. Nayar and Nakagawa used a focus measure based on the Laplacian operator and recovered the depth of object surfaces from a set of images taken at different focus settings [7].
Because the focus measure is unimodal, a one-dimensional search can find its peak. The most common method is hill-climbing: step in one direction with a large step size; when the focus value starts to fall, the peak has been passed; then search back with a small step size, and finally fit a few points near the peak to locate it. Krotkov used Fibonacci search, the interval-reduction method that needs the fewest evaluations for a unimodal function [5]. The choice of step size is subject to two constraints: the fine step should be no larger than half the depth of field, so that the peak can be located within the depth of field; and the coarse step must not be much larger than the width of the focus curve, otherwise the samples on both sides fall in the flat low-value region and reveal nothing about where the peak is.
Example. A schematic model illustrates the search. With the lens above, a defocus of 1 D gives a blur-spot diameter of about μm. Let the focus measure be , where is the blur-spot diameter, and take μm, so that the full width at half maximum corresponds to D; the target is at D. A coarse search starting from 0 in steps of 0.4 D sees the focus value fall at frame 7 (2.4 D), with the highest point at 2.0 D. A fine search back in steps of 0.1 D toward the side with the higher focus value rises at 1.9 D and 1.8 D and falls at 1.7 D, taking 3 frames. A parabolic fit of at the three points 1.7, 1.8 and 1.9 D gives a peak at 1.83 D. The whole process takes 10 frames; see Figure 4(a). In this model is exactly quadratic, so the fit has no error; real focus curves have different shapes, and the fitting error only needs to be smaller than half the depth of field.
Waiting for the liquid crystal to settle at every step
After the voltage changes, the liquid crystal molecules need some time to rotate to the new orientation, and during the transition the phase profile is not parabolic; an image captured then corresponds to neither the old nor the new focal state. Each step therefore has to wait until the liquid crystal has settled before an image is captured. With a settling time per step and a time for exposure, readout and computing the focus measure, the total time of an -step search is about
Example. With ms and : s for ms, about 1.1 s for ms and about 5.1 s for ms.
The settling time of a GRIN liquid crystal lens is determined by the thickness of the liquid crystal layer; the relaxation time is proportional to the square of the thickness, as derived in GRIN Liquid Crystal Lenses: How Voltage Tunes Focal Length Continuously. A device listed in the review by Lin et al. serves as a reference: a 2 mm aperture and a 25 μm cell gap, with dual-mode switching, a tunable focal length range of about 10 cm to 300 cm and a response time of about 500 ms; the review shows imaging results at object distances of 300 cm and 10 cm [2]. A full hill-climbing search with such a device takes several seconds, which is acceptable for one-time focusing at changeover but not for refocusing on every workpiece.
With a liquid crystal lens, focusing time can be shortened by working on each of the two factors.
- Fewer steps. In machine vision the working distance is often known in advance: it is given by the product recipe at changeover, or measured by a sensor such as a laser rangefinder. Setting the focal state directly from a calibrated voltage table and then confirming with two or three frames nearby reduces to 2–4. The cost is that reliable calibration is required; see the section "Temperature drift and calibration" below.
- Shorter steps. Thinner liquid crystal layers are faster, and multilayer stacking and phase resetting allow each layer to be thinner while maintaining the optical path difference. In the voltage-on direction, a brief high-voltage overdrive can speed up the response; in the voltage-off direction only elastic relaxation is available, so the search path can be arranged to proceed in the voltage-on direction as much as possible. Drive schemes are discussed in general in Electrical Control of Liquid Crystal Devices: Response Time, Polarization Switches and Cascaded Switching.
For objects whose height changes slowly, such as continuous web material or workpieces of the same type on a conveyor, a full search is unnecessary: the system can alternate small steps around the peak, compare the focus values and follow the peak, needing only one small step per frame. If only a few known working distances need to be switched between, the discrete focal states of a PB liquid crystal lens are more suitable: the switching time of an active PB lens is on the sub-millisecond scale (see PB Lens Principles: How Geometric Phase Liquid Crystal Lenses Switch Focal Length Electrically); the cost is that it requires circularly polarized input, which is discussed in the section "Polarization dependence" below.
Several experiments have verified the use of liquid crystal lenses for camera focusing. Ye et al. reported a liquid crystal lens driven by two voltages, one fixed and the other tuning the optical power, with the power decreasing monotonically as the control voltage increased, and demonstrated focusing in a camera [8]. They subsequently used an ISO 12233 resolution chart to evaluate quantitatively an imaging system consisting of a camera module plus a liquid crystal lens; with the liquid crystal lens performing the focusing, the resolving power of the system could come very close to that of the camera module itself [9]. Galstian et al. demonstrated a mobile phone camera with a liquid crystal autofocus lens: at a fixed drive voltage, the optical power could be changed by tuning only the frequency, spherical aberration stayed below at optical powers up to 10 D, and the camera could take distant shots and read barcodes at close range with a fairly short focus convergence time [10].
The focus measure can also be used for ranging. Capturing images at a series of focal states and finding, region by region, the focal state with the highest focus value yields a depth map; this is the "shape from focus" method of Nayar and Nakagawa [7]. A liquid crystal lens can return repeatedly to the same set of focal states without mechanical motion, which suits this kind of focus scanning; related applications are covered in Extending Depth of Field with Liquid Crystal Lenses: Focus Stacking and 3D Imaging.
Comparison with VCM modules and liquid lenses
A VCM module uses the Lorentz force between a coil and a permanent magnet to push a spring-suspended lens barrel, changing the image distance; its structural characteristics and costs are covered in What Is a Liquid Crystal Tunable Lens? Principles, Types and System Integration. An electrowetting liquid lens instead changes the curvature of the interface between two liquids: the chamber contains an immiscible conductive liquid and insulating liquid with different refractive indices, and the voltage changes the wetting angle of the conductive liquid on the chamber wall, which changes the interface curvature and with it the optical power [11]. Kuiper and Hendriks built a miniature camera module with such a lens with an inner diameter of 3 mm and observed that the interface changed smoothly from convex to concave without hysteresis; to reduce the effect of gravity on the interface, they matched the densities of the two liquids [12]. Liquids are isotropic, so liquid lenses are polarization independent.
| Item | VCM module | Electrowetting liquid lens | GRIN liquid crystal lens |
|---|---|---|---|
| Focusing mechanism | Moves the lens group, changing the image distance | Changes the curvature of the liquid–liquid interface | Changes the refractive index profile of the liquid crystal layer |
| Moving parts | Lens barrel and springs | Liquid interface | No macroscopic motion |
| Holding a focal state | Spring-type designs need continuous current | Capacitive load | Capacitive load |
| Vibration and orientation | Suspended mass affected by shock, vibration and gravity | Interface affected by gravity and vibration; density matching required | No moving mass |
| Response time mainly set by | Stroke, moving mass and settling time | Liquid properties and aperture | Square of the liquid crystal layer thickness, and the material |
| Polarization | Independent | Independent | A single layer acts on only one linear polarization component |
| Repeatability | Open loop affected by spring characteristics and orientation; closed loop needs a position sensor | Interface change without hysteresis | Determined by voltage and temperature; calibration required |
| Temperature effects | Thermal deformation of barrel and mount | Changes in liquid refractive indices and interface properties | Changes in birefringence and viscosity |
| Wear | Mechanical fatigue and wear | No mechanical wear | No mechanical wear |
Electrically, a liquid crystal lens is approximately a small capacitor and consumes energy only when it is charged and discharged. For example, with a 5 mm aperture, a 30 μm liquid crystal layer and an average relative permittivity of 10 (example values), the capacitance is about 58 pF; driven with a 5 V, 1 kHz AC signal, the charging power is about 1.5 μW, not including losses in the high-resistance layer or in the drive circuit itself. The review by Lin et al. also lists low power consumption and thinness as features that make liquid crystal lenses suitable for portable devices [2].
For system integration, the value of a liquid crystal lens comes mainly from what it removes. Mechanical focusing needs an actuator, guiding structures and return springs, plus a position sensor for closed-loop operation, and space has to be reserved for the stroke. A liquid crystal lens is a flat plate whose thickness is set mainly by its substrates; it can sit directly in the gap at the stop or be bonded to a fixed lens element, and its electrical connection needs only a few wires. It can also be made with wafer-level processes: Fraval and Berier filled nematic liquid crystal between two glass substrates coated with hole-patterned chromium electrodes and a transparent high-resistance PEDOT:PSS layer, producing a wafer-level tunable-focus lens that focuses light polarized along the director. By dividing the hole electrode into several sectors driven with separate voltages, they demonstrated the principle of shifting the optical axis, although the amount of shift still requires a more suitable electrode structure to meet the needs of optical image stabilization [13]. Wafer-level focusing has thus been demonstrated experimentally, while image stabilization with the same device remains an application potential.
In exchange, other requirements arise: an AC drive circuit with adjustable amplitude (and sometimes frequency); temperature measurement and calibration data; and, for single-layer devices, a polarization condition or a dual-layer structure. The last two are discussed below.
Polarization dependence: effects and countermeasures
In a nematic liquid crystal lens with planar alignment, the molecules tilt within one plane. Extraordinary light (e-light) polarized in this plane experiences a refractive index that varies with the tilt and is focused by the lens; the orthogonal ordinary light (o-light) always experiences , as if passing through a uniform flat plate [2]. The relation between birefringence and polarization is covered in Liquid Crystal Birefringence: How Liquid Crystals Control the Phase and Polarization of Light.
In scenes lit with natural light, a single-layer liquid crystal lens focuses only half of the light, while the other half remains at the focal state. The defocused half spreads over the image plane as a blurred background.
Example. With the lens above, when the liquid crystal lens adds 2 D to bring the e-light into focus, the o-light is defocused by 2 D, with a blur-spot diameter of about 133 μm, about 39 pixels. For details much smaller than this, the o-light contributes only a nearly uniform background, and the modulation of the details falls to about half of its original value.
There are several countermeasures.
- Use in an already polarized beam path. In machine vision, polarizers are often placed in front of both the light source and the lens with their axes crossed to suppress specular reflections from metal, glass and plastic surfaces; when liquid crystal displays are inspected, the light under test is itself linearly polarized. In such systems, placing the liquid crystal lens after the analyzer with its director parallel to the analyzer's transmission axis causes no additional light loss, as in Figure 5(a).
- Add a polarizer. At least half of unpolarized light is lost, so the illumination must be increased or the exposure lengthened accordingly.
- Orthogonal dual layers. Two liquid crystal lenses with mutually perpendicular directors are placed in series, each handling one polarization component, as in Figure 5(c). The review by Lin et al. lists dual-layer structures, residual phase modulation and blue phase liquid crystals as routes to polarizer-free liquid crystal lenses [2]; Lin and Chen demonstrated an electrically tunable-focusing, polarizer-free liquid crystal lens and pointed out that the approach can be applied to imaging and projection systems such as mobile phone cameras, pico projectors and endoscopes [14]. The cost is that the powers of the two layers must match; otherwise the two polarization components focus at different points and the image shows polarization-dependent defocus. The device thickness and the number of drive channels also double. The two layers are separated by a substrate; at the stop, the effect of this spacing on the optical power is negligible.
- PB liquid crystal lens. It requires circularly polarized input of a single handedness and flips the handedness on output; such input can be obtained by adding a quarter-wave plate after a linear polarizer. Its diffractive dispersion is large, with optical power proportional to wavelength, but machine vision often uses narrowband LED illumination, which reduces the effect of dispersion.
Example. Under red LED illumination with a center wavelength of 625 nm and a bandwidth of 20 nm, the optical power of a 2 D PB lens differs by about D between the two ends of the band, less than the depth of field of about 0.21 D of the example lens above.
At stations with polarized or narrowband illumination, using a PB lens to switch quickly between a few fixed working distances is therefore an attractive option; it is still an application potential and has to be evaluated against the efficiency and ghost-image level of specific devices.
Temperature drift and calibration
The birefringence of a liquid crystal decreases as the temperature rises. In Haller's approximation, the order parameter is , and the birefringence can be written as [15]
where is the clearing point (the temperature at which the nematic phase turns into an isotropic liquid), is a material constant and is the birefringence extrapolated to 0 K. Differentiating with respect to gives the relative temperature coefficient of the birefringence:
The closer the operating temperature is to the clearing point, the faster the drift. If the tilt distribution in the liquid crystal layer stays the same, the power of a GRIN lens is proportional to the usable refractive index difference and therefore changes in the same proportion as .
Example. Take and K (example values; the clearing points of several liquid crystals measured by Li et al. lie between about 307 and 374 K [15]). The relative temperature coefficient at 25 °C is then about . For a liquid crystal lens operating at 3 D, a temperature rise of 10 K reduces the power by about 0.12 D, about 58% of the depth of field of the example lens above (0.207 D); at 1 D the reduction is about 0.04 D.
The actual drift is more complicated than this estimate: the elastic constants and the dielectric anisotropy also vary with temperature, so the tilt distribution at a given voltage changes; at low temperatures the rotational viscosity increases and the response becomes markedly slower [16]. The temperature behavior therefore has to be measured on the specific device. For comparison, liquid lenses also have temperature effects: the two liquids used by Kuiper and Hendriks both have refractive index temperature coefficients of about ; because the two are similar, the index difference changes very little [12].
How to handle this depends on the control mode.
- Closed-loop focusing. Contrast autofocus aims for the sharpest image, so any absolute drift in power is eliminated by the search itself; temperature affects only the starting point of the search and the settling time of each step.
- Open-loop setting. When the voltage is set directly from the product recipe or a ranging result, temperature compensation is essential. This is done by calibrating each device individually: place a focus target at several known distances, find the best-focus voltage (and, for modally controlled devices, the frequency) at each of several temperatures, build a lookup table with vergence and temperature as inputs, and at run time interpolate using a temperature sensor next to the liquid crystal lens.
- Measurement systems. In addition to the focus voltage, the pixel scale must be calibrated for each focal state, including the focus breathing of the front-of-lens configuration and the magnification change with working distance in the stop configuration. Fixed reference marks can be placed at the edge of the field of view for periodic checks during operation.
The light source and the image sensor both generate heat, and the camera needs some time after power-on to reach thermal equilibrium; calibration should be done in the same thermal state.
Feasibility in small-aperture phones and compact modules
Because the power limit is inversely proportional to the square of the aperture, small apertures favor liquid crystal lenses. Lenses in mobile phones and compact modules have short focal lengths and small stops, which places them right in this favorable range.
Example. A phone lens with a 4.5 mm focal length at F/1.8 has an entrance pupil diameter of about 2.5 mm, and the ideal power limit of a GRIN liquid crystal lens with a 6 μm optical path difference is about 7.7 D; see Figure 3(b). Focusing from infinity to 30 cm requires about 3.3 D, which with calls for a liquid crystal layer at least about 12.9 μm thick; macro focusing to 10 cm requires 10 D and a layer at least about 39 μm thick. With an example viscoelastic coefficient of , the relaxation times are about 67 ms and 0.62 s, respectively. In practice the usable index difference is smaller than , so the required thickness and time will both be larger.
Existing experimental results include the liquid crystal autofocus phone camera of Galstian et al. mentioned above, with spherical aberration below at optical powers up to 10 D [10]; the imaging system with a 2 mm aperture and a response of about 500 ms in the review by Lin et al. [2]; and the wafer-level liquid crystal lens of Fraval and Berier [13]. These results show that liquid crystal lenses can perform autofocus in phones and compact cameras.
In consumer modules such as phone cameras, several conditions are more demanding than in machine vision.
- Wide field of view. In wide-angle lenses, chief rays cross the liquid crystal layer near the stop at large angles, and off-axis field points see a power and astigmatism different from the on-axis point, which must be compensated in device design [6].
- Natural-light, broadband imaging. Scene light is unpolarized, so orthogonal dual layers are usually needed; liquid crystal dispersion also enters the imaging directly.
- Speed. In video autofocus each frame lasts about 33 ms, and settling times of a hundred milliseconds or more make the focusing process span several frames.
- Wide temperature range. The phone camera requirement cited by Kuiper and Hendriks is operation from −30 °C to +70 °C [12]; over this range the birefringence and viscosity of liquid crystals change considerably, which calls for high-clearing-point materials and temperature compensation.
By comparison, embedded vision and small industrial cameras often have short focal lengths, small stops, controllable operating temperatures and narrowband illumination, and some already include polarizers, so the conditions are more favorable. Liquid crystal lenses have good prospects for replacing mechanical focusing in such modules, but the speed, image quality and environmental robustness that can actually be achieved still have to be evaluated against test data from real devices.
Conditions to check when selecting a device
- Vergence range and number of focal states. Convert the working distance range to diopters and divide by the depth of field of a single focal state to obtain the number of focal states or the continuous tuning range required.
- Placement and aperture. Place the lens at the stop whenever possible and check the power limit of the GRIN gradient-index liquid crystal lens with ; when mounting it in front of the lens, include the field of view in the aperture and evaluate focus breathing.
- Cycle time. Estimate the focusing time with ; when the cycle time is tight, prefer an open-loop setting from a known distance plus a few confirmation frames, or switch to a PB lens (geometric phase lens) with discrete focal states.
- Polarization and spectrum. Whether polarizers are already present in the illumination and imaging paths, and whether the illumination is narrowband, determine whether a single-layer device, orthogonal dual layers or a PB lens is more suitable.
- Measurement requirements. When dimensional measurement is needed, calibrate the pixel scale for each focal state, or integrate the lens at the stop of a telecentric lens.
- Temperature. Define the operating temperature range, which determines whether to use closed-loop focusing or open-loop setting with temperature compensation.
References
[1] Y.-H. Lin, Y.-J. Wang, V. Reshetnyak. Liquid crystal lenses with tunable focal length. Liquid Crystals Reviews, 5(2): 111–143, 2017. DOI: 10.1080/21680396.2018.1440256
[2] H.-C. Lin, M.-S. Chen, Y.-H. Lin. A review of electrically tunable focusing liquid crystal lenses. Transactions on Electrical and Electronic Materials, 12(6): 234–240, 2011. DOI: 10.4313/TEEM.2011.12.6.234
[3] E. Hecht. Optics, 5th ed. Pearson, 2017. ISBN 978-0-13-397722-6
[4] H.-S. Chen, Y.-H. Lin. An endoscopic system adopting a liquid crystal lens with an electrically tunable depth-of-field. Optics Express, 21(15): 18079, 2013. DOI: 10.1364/OE.21.018079
[5] E. Krotkov. Focusing. International Journal of Computer Vision, 1(3): 223–237, 1988. DOI: 10.1007/BF00127822
[6] L. Li, D. Bryant, T. Van Heugten, P. J. Bos. Speed, optical power, and off-axis imaging improvement of refractive liquid crystal lenses. Applied Optics, 53(6): 1124, 2014. DOI: 10.1364/AO.53.001124
[7] S. K. Nayar, Y. Nakagawa. Shape from focus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(8): 824–831, 1994. DOI: 10.1109/34.308479
[8] M. Ye, B. Wang, T. Takahashi, S. Sato. Properties of variable-focus liquid crystal lens and its application in focusing system. Optical Review, 14(4): 173–175, 2007. DOI: 10.1007/s10043-007-0173-3
[9] M. Ye, B. Wang, M. Uchida, S. Yanase, S. Takahashi, S. Sato. Focus tuning by liquid crystal lens in imaging system. Applied Optics, 51(31): 7630, 2012. DOI: 10.1364/AO.51.007630
[10] T. Galstian, O. Sova, K. Asatryan, V. Presniakov, A. Zohrabyan, M. Evensen. Optical camera with liquid crystal autofocus lens. Optics Express, 25(24): 29945, 2017. DOI: 10.1364/OE.25.029945
[11] B. Berge, J. Peseux. Variable focal lens controlled by an external voltage: An application of electrowetting. The European Physical Journal E, 3(2): 159–163, 2000. DOI: 10.1007/s101890070029
[12] S. Kuiper, B. H. W. Hendriks. Variable-focus liquid lens for miniature cameras. Applied Physics Letters, 85(7): 1128–1130, 2004. DOI: 10.1063/1.1779954
[13] N. Fraval, F. Berier. Liquid crystal lens auto-focus extended to optical image stabilization for wafer level camera. Proceedings of SPIE, 7930 (MOEMS and Miniaturized Systems X): 793009, 2011. DOI: 10.1117/12.875575
[14] Y.-H. Lin, H.-S. Chen. Electrically tunable-focusing and polarizer-free liquid crystal lenses for ophthalmic applications. Optics Express, 21(8): 9428, 2013. DOI: 10.1364/OE.21.009428
[15] J. Li, S. Gauza, S.-T. Wu. Temperature effect on liquid crystal refractive indices. Journal of Applied Physics, 96(1): 19–24, 2004. DOI: 10.1063/1.1757034
[16] D.-K. Yang, S.-T. Wu. Fundamentals of Liquid Crystal Devices, 2nd ed. John Wiley & Sons, 2014. ISBN 978-1-118-75200-5. DOI: 10.1002/9781118751992