Xiaoming 2010
Xiaoming 2010
Camera
Abstract—In this paper we propose a real-time method which can In contrast, the method described here requires only one
measure distance using a modified camera. The camera’s image image from a monocular camera while the camera does not
sensor is inclined by a certain angle. Thus, the image projected have to be moved. We incline the image sensor by a certain
on the sensor is defocused differently at different areas. The area angle. Thus, the image projected on the sensor is defocused
where the image is focused best is just at projection plane. The differently at different areas. Namely, the definition of the
position of the projection plane can be obtained after finding out image is a function of distance from pixels on the sensor to lens
this area. The distance between the projection plane and the lens plane. The function value reaches maximum at the area where
of the camera is image distance. Object distance can be obtained the image is focused best. If the maximum of the function is
by applying image distance to lens formula. This method is
found, so as the image plane. Thus the image distance is easy
proved to be effective and a single distance measurement can be
to be obtained. Applying the image distance to lens formula,
performed within 3.21ms.
we can calculate the object distance.
Keywords-distance measurement; definition function; This paper is organized as follows. Principle of
monocular camera; lens formula measurement is introduced in Section II. Simulation is
demonstrated in Section III. Performance of the hardware is
I. INTRODUCTION tested in Section IV. Finally, conclusions will be drawn in
It is often said that distance information is lost during the Section V.
process of image formation, but in fact, according to lens
formula, object distance can be obtained if the focal length of II. PRINCIPLE OF MEASUREMENT
the lens and image distance are known [1]. Generally, the focal This section will discuss the principle of the measurement
length of the lens is given. Thus, the key point of distance method. As shown in Fig. 1, a lens is located at point O. An
measurement is how to get the image distance. Here, the image object at point U is projected by the lens and generates an
distance is the distance between the focused image and the lens image plane at M. An Image sensor is located at point N on the
center along the lens optical axis, while the object distance is optical axis of the lens, and is inclined by an angle of θ. The
the distance between the object and the lens center along the sensor and the image plane intersect at point C.
lens optical axis.
Several methods for calculating image distance have been
proposed. In [2], the image sensor is movable. Fix the lens and
the object, move the image sensor until the focused image
appears on the sensor. Record the image distance and calculate
the object distance using lens formula. In [3], a method using
two images is given. Two images are taken respectively at two
fixed points along the optical axis. The image distance is
calculated according to the ratio between each size of an object
projected on two images. In [1], the camera has one lens but
two image sensors. A half-reflect mirror divides the light from
the lens into two parts. Each sensor gets one part and produces
one image. These two images are identical except for the
aperture size and therefore depth of filed. Calculate the image
distance according to this difference and get the object distance.
Another method is proposed in [4]. But all these methods take
much time to perform a single measurement, because they have Figure 1. Skew sensor
to move cameras or deal with two or more images.
3 3
(27.05 − sin 450 , 27.05 + sin 450 ) mm.
2 2
The corresponding object distance is
(226, 656) mm.
The camera is fixed vertically, facing to the floor of our
laboratory. The interface programmed in VC is shown in Fig. 8.
Object distance is increased from 300mm. Measurement
result is recorded every 50mm. A test result with hardware is
obtained as Fig. 9. Figure 9. Hardware test result