Devia
tion
13,8 14.59 5,72 0.79 13,81 0,07 0,01
20,6 21,39 3,83 0.79 20.,97 1,8 0,37
22,7 23,28 2,56 0.58 23 1,32 0,3
23,2 23,7 2,16 0,5 23,46 1,12 0,26
29,9 30,29 1,3 0,39 30,68 2,61 0,78
32,2 31,77 1,34 0,43 32,32 0,37 0,12
From the data presented, the measurement is set
in meter, thus the deviation are around 39 cm to 79
cm. The shortest the distance, the bigger the
deviation.
In other research to measure distance like
(Dirgantara, Rohman, & Yulianti, 2019) and (Gao,
Chen, Liu2, & Chen2, 2021) used the same method
by using references. In both paper state that by using
bottom part of a vehicle image, measuring the
distance between the two object can be achieved
though it state that it’s not accurate in a certain length.
As previous test result shown which is not clear, but
the average of error percentage are 1% and deviation
of 26 cm. Both research using mobile net and Yolo in
detecting image. While Jae Moon Lee (Lee, Hwang,
& Jung, 2021) in their research, the object detected by
using difference between 2 image with same object,
where there is a movement distance between 2 image.
2 RESEARCH DESIGN
Implementation of image detection is common
especially in image processing.
Figure 1: Image Capturing process in camera.
The process of measuring in this research is
following the common concept of image capturing in
camera lens. The image illustration is describe in
Figure 1.
This research will used 2 different object to
calculate the distance of the object. The first object is
16cm x 16 cm and 20cm x 20cm. The method propose
in this paper are to create a comparison between the
measured distance to get the ideal pivot used for
measurement.
Different from the process of captured image by
the camera, this research will approach by using the
concept of triangle. This deduction come from the
perspective of image we get from the capture image.
The further the distance of an object to camera, the
smaller the image captured. Figure 2 can describe the
process of image captured.
Figure 2: Image Capturing illustration.
The image shown how The further the distance of
an object to camera, the smaller the image result.
Despite the angel of the camera, the image proportion
will remain as long as the direction where the image
taken is equal.
To produce the formula, we must assume that the
angle at α in Figure 1 is equal both at real distance and
image distance. If we assume that the α is a formula
of tangent, then the formula can be described as:
tan(
α
) =
H
∶𝐷
=
h
∶ 𝐷
(1)
Thus
𝐷
=
𝐷
𝑥ℎ
𝐻
(2)
By using this formula, we can have a base
distance. As we follow the rules of triangle similarity,
as the image move further, so does the distance and
the image grow smaller. We can use one of the image
captured and with known distance as a reference. By
using this as a reference, we can derive the formula
by comparing the distance inside the reference image
(D
f
) and the height of the measured image captured.
The formula for calculated distance D
r
is calculated
using formula as follow:
Image Captured
H
D