A_Real_Time_Object_Distance_Measurement
A_Real_Time_Object_Distance_Measurement
2. Problem Definition
The main image formation technique is mostly based on
the pinhole lens model. In this model, the mapping
relationship between the 3-D world coordinates and the 2-D
image coordinates plays an important role. Let’s consider M
in Figure 1 to be a point in the world coordinate relative to
the camera frame. In this case, m would be the projection of
M onto the image plane. Under the pinhole assumption,
these two points and the origin of the camera frame (the
center of the projection) that is in the back of the image
plane at a distance µ will be collinear [11]. This model of
Figure 2. Standard frame assignment
image formation is applied in the present research. Now, the
238
BA + AG = BG (1)
BT + TG = BG
TG = BG - BT
239
3.2 Image Complement
Image complement is used to compute the complement of a
binary or intensity image. The image complements switches
the values of the zero and one valued pixels.
3.3 Averaging Subsystem
The averaging subsystem method is used to stabilize the
system by applying four consecutive measurement values
for the system. This technique would mediate the fluctuation
arising from the noise into the system [18]. The completed
algorithm to the system is shown in Figure 5.
240
Table 1 distance would surprisingly rise, and the error would
Average distance error measurements for the rectangular significantly increase. Therefore, when the camera has an
block angle with optical axis, [19-20]’s methods are no longer
Trial Real Proposed Joglekar et al Proposed Joglekar valid as the object distance measurement would be a non-
distance measured [20] distance et al[20] linear function of distance. Moreover, due to the fact that the
(mm) distance measured error distance
(mm) distance (mm) error
oblique object distance is calculated from the result of the
(mm) (mm) in-path object distance divided by the cosine angle between
the optical axis and the line joining the camera point to the
object’s point of contact. Hence, the error is relatively
1 1181 1176 1186 5 5
similar for the in-path object distance as obtained. The
2 1213 1231 1131 18 82 proposed vision-based object distance measurement
3 1215 1190 1150 25 65 technique is principally different from above-mentioned
4 1272 1302 1622 30 350 optical techniques.
5 1320 1340 1134 20 186 Table 3
6 1323 1320 1399 3 76 Comparison of different methods for object distance
7 1367 1414 2275 47 908 measurement
Method Characteristics Nature of the
8 1432 1438 1424 6 8
(in terms of method
9 1436 1468 1209 32 227 distance)
10 1481 1529 1433 48 48
11 1513 1521 1306 8 207 Gat et al[19] Along the optical Linear
(Optical axis is axis
12 1548 1580 1183 32 365 parallel to the
13 1585 1617 1227 32 358 ground)
14 1621 1633 1156 12 465 Joglekar et al[20] In-path and oblique Non-Linear
(Optical axis is
15 1630 1615 1200 15 430
parallel to the
Average absolute error 23.43 269.64 ground)
241
[5] Z. Zhang, Y. Han, Y. Zhou, & M. Dai, A novel absolute
localization estimation of a target with monocular vision,
Optik - Int. J. Light Electron Opt, 2012, 1218-1223.
[6] Y. Yang, & Q. Z. Cao, Monocular vision based 6D
object localization for service robots intelligent grasping.
Computers Mathematics with Applications, Volume 64,
Issue 5, 2012, 1235-1241.
[7] M. Coman, & R. Balan, Video Camera Measuring
Application Using matlab. Solid State Phenomena Vols.166-
167, 2010, 139-144.
[8] N. Yamaguchi, S. Oe & K. Terada, A Method of
Distance Measurement by Using Monocular
Camera. Proceedings of the 36th SICE Annual Conference
International Session, Tokushima, 1997, 1255-1260.
[9] L. Zhang, Y. Bo, J. Zhang, & W. Zou, Study on Distance
Measure Based on Monocular Vision. Energy Procedia 13,
2011, 9533-9542.
[10] W. E. Dixon, Y. Fang, D. M. Dawson, & T. J. Flynn,
Range identification for perspective vision systems. IEEE
Trans. Automat. Contr., 48(12), 2003, 2232–2238.
Figure 8. Object distance measurement for the toy car [11] M. W. Spong, S. Hutchinson, & M. Vidyasagar, Robot
Modeling and Control, (John Wiley and Sons, Inc., 2006).
6. Conclusion [12] J. J. Craig, Introduction to Robotics Mechanics &
Control, 3rd edition, NJ: Prentice-Hall, 2004.
In this paper, an improved method was proposed to [13] A. Rahman, A. Salam, M. Islam, and P. Sarker, An
calculate the object distance using a single camera even if Image Based Approach to Compute Object Distance.
the surface of an object is not parallel to the camera and is International Journal of Computational Intelligence
not restricted to be vertically intersecting the optical axis. Systems, Vol. 1, No. 4, 2008, 304- 312.
The proposed method is able to identify the desired object [14] S. Y. Kim, E. K. Lee, & Y. S. Ho, Generation of ROI
and extract the object feature for a moving and a static enhanced depth maps using stereoscopic cameras and a
object. The experimental results shows that the object depth camera. IEEE Transactions on Broadcasting 54 (4),
distance average error for the rectangular block, and the 2008, 732–740.
irregular toy car are 23.43 mm and 16.50 mm, respectively. [15] M. C. Lu, and C. C. Hsu, & Y. Y. Lu, Image-Based
Moreover, the discrete sample time to run the proposed System for Measuring Objects on an Oblique Plane and Its
algorithm is estimated to be 0.033. This inexpensive Applications in 2-D Localization IEEE Sensors Journal,
distance measurement method could be applied to many vol. 12, NO. 6, 2012, 2249-2261.
applications such as pick and place task in robotics. [16] T. A. Clarke, & M. R Williams, Buyers guide to six
non-contact distances measuring techniques. Quality Today,
Buyers Guide, 1998, 145-149.
References [17] M. Sezgin & B. Sankur, Survey over Image
thresholding techniques and Quantitative performance
[1] A. Goto, & H. Fujimoto, Proposal of 6 DOF Visual
evaluation. Journal of Electronic Imaging, vol.13, 2004, 146
Servoing for Moving Object Based on Real-Time Distance
–165.
identification. SICE. Annual Conference, Japan, 2008,
[18] M. Coman, S.D. Stan, M. Manic, & R. Balan,
3208-3213.
Application of Distance Measuring with Matlab/Simulink.
[2] H. Firouzi, & H. Najjaran, Real-time monocular vision-
IEEE-HSI 2010, the 3rd International Conference on
based object tracking with object distance and motion
Human System interaction, Rzeszow, Poland, 2010, 113 –
estimation. Advanced Intelligent Mechatronics (AIM),
118.
IEEE/ASME International Conference on, 2010, 987-992.
[19] I. Gat, M. Benady, & A. Shashua, A Monocular Vision
[3] K. M. Shaaban, & N. M. Omar, 3D information
Advance Warning System for the Automotive Aftermarket,
extraction using Region-based Deformable Net for
SAE Technical Paper, 2005, 8 pages.
monocular robot navigation. J. Visual Communication and
[20] A. Joglekar, D. Joshi, R. Khemani, S. Nair, & S. Sahare,
Image Representation, vol. 23, 2012, 397-408.
Depth Estimation Using Monocular Camera. International
[4] A. Cavallaro, O. Steiger, & T. Ebrahimi, Tracking video
Journal of Computer Science and Information
objects in cluttered background. Circuits and Systems for
Technologies, Vol. 2 (4), 2011, 1758-1763.
Video Technology, IEEE Transactions on, 15(4), 2005,
575– 584.
242