Person To Camera Distance Measurement Based On Eye-Distance
Person To Camera Distance Measurement Based On Eye-Distance
Abstract−This paper presents a novel person to camera distance of two eyes in number of pixels and camera to
distance measuring system based on eye-distance. The distance object distance (in inches), the distance of a person from the
between centers of two eyes is used for measuring the person to camera is computed.
camera distance. The variation in eye-distance (in pixels) with The proposed method in this paper is quite different
the changes in camera to person distance (in inches) is used to
from other existing image processing based person to
formulate the distance measuring system. The system starts
with computing the distance between two eyes of a person and camera distance measuring techniques which requires
then person to camera distance is measured. The proposed additional CCD cameras [8, 9], laser projectors, etc. during
distance measurement system is relatively simple and the measurements. The distance between two eyes (in
inexpensive to implement as it does not require any other pixels) of a person in an image reduces as the person moves
external distance measuring tools. Experimental results show away from the camera and vice versa. This property is used
the effectiveness of the system with an average accuracy of to measure the person to camera distance based on a certain
94.11%. eye-distance in real time.
The paper is organized as follows. In Section II, the
Keywords-Eye detection; Eye distance; Person to proposed person to camera distance measurement system
camera distance. based on eye-distance is described. Experimental results and
discussions are presented in Section III. Finally the paper is
I. INTRODUCTION concluded in Section IV.
Two widely used approaches for measuring object to
camera distance are: contact and non-contact approaches II. PERSON TO CAMERA DISTANCE MEASURING
[1]. In contact-based approach, various methods can be SYSTEM
used, such as ultrasonic distance measurement [2, 3], laser
reflection methods [4, 5]. These two methods use the theory A. Eye Distance Measurement
of reflection. If the reflection surface is not uniform, the This system forms an image pyramid of the input images
measuring system generally performs poorly or not at all. and uses a template matching approach for face and eye
On the other hand, image-based measuring systems based detection [10]. An image pyramid is a set of the original
on pattern recognition or image analysis techniques [6, 7] image at different scales. To locate the face, a mask is
generally demand huge amount of storage capacity and moved pixel-wise over each image in the pyramid, and at
high-speed processors. To overcome these problems and each position in the image the mask is passed to a function
difficulties encountered by the existing techniques, an that assesses the similarity of the image section to a face. If
image-based person to camera distance measuring system the similarity value is high enough with respect to specific
without complex calculation method is presented in this threshold, the presence of a face at that location is assumed.
paper. The system setup and configuration of the proposed From that location, the position and size of the face in the
method is very simple, consisting of only a single CCD original image is generated [10]. From the detected face eye
camera. Based on an established relationship between the is detected by forming an image pyramid of the detected
Equations (2) and (3) are formulated after a thorough weight. Positions of MAX ed , MIN ed , Mid G points are
study of the nature of Eye Distance2 versus Person to
shown in Fig. 2. These values are generalized considering
Camera Distance graphs of 35 people, which simulates the
graphs in real-time. the data collected of 35 people.
2 MAX ed
d ep = (2)
d c − Mid G
(1 + ) ( d c − MIN ed − 1)
Mid G
d ep
d c ' = d c ± V (2 − ) (3)
MAX ed
where d ep is the distance between two eyes, MAX ed is Figure 2. Relation between eye distance and object to camera distance
the maximum eye distance point, MIN ed is the minimum Before measuring the person to camera distance, the person
camera distance point, Mid G is the mid point of square of is trained with different predefined distances from the
camera starting from 7 inches and increased up-to 31 inches.
eye distance Vs person to camera distance graph , d c is the During the training session corresponding person to camera
primary camera to person distance (with error), d c ' is the distances (in inches) and eye distances are mapped and the
corrected camera to person distance and V is the correction
MAX ed value of that person (when the person is in the
138
highest distance from the camera) is set by the system. It is 18000 14000
20000 1000
18000 0
0
16000
14000 0 10 20 30 0 10 20 30
12000 Cam era Distance (in inches)
Camera Distance (in inches)
10000
8000
6000
4000 (d) (e)
2000
0 Figure 3. Square of eye distance versus person to camera distance graph (a)
0 10 20 30 40
Cam era Distance (in inches) where MAX ed >16000 (b) for 13000< MAX ed <=16000, (c) for
(a) 11000< MAX ed <=13000, (d) for 9500< MAX ed <=11000 and (e)
MAX ed <=950
139
d ep Accuracy of measurement results using the proposed
d c ' = d c ± V (2 − ) where d c is the primary method are shown in Table III, where real distances,
MAX ed measured distances, and accuracy (for distances from 7
camera to person distance (with error), d c ' is the corrected inches to 31 inches) of 35 persons are recorded. Fig. 6
shows the accuracy (%) of the proposed system at different
person to camera distance and V is the correction weight predefined distances. The average accuracy of 94.11% is
and return dc ' . obtained. Though other conventional measuring results
shows slight accurate where error rates range from 1 to 8%
Step 6. If the person is not identified, set the default value
[12,13], the proposed system validated its’ superiority in
as MAX ed = 11000 and goto Step 2. terms of simplicity and cost effectiveness.
120
100
Figure 4. Person to camera distance measurement system architecture
Accuracy (%)
80
60
40
140
REFERENCES
141