EICT_2023
EICT_2023
net/publication/377560436
CITATIONS READS
0 150
6 authors, including:
SEE PROFILE
All content following this page was uploaded by Fahim Hasan Khan on 21 January 2024.
Abstract—To reduce road traffic accidents, maintaining a safe The two main categories of distance estimation approaches
distance between vehicles can play an important role. Advanced are sensor-based [4] and vision-based [5] systems. Most
driver assistance systems (ADAS) primarily focus on collision autonomous cars use expensive sensors like LIDAR, RADAR,
avoidance technologies. This article introduces two vehicle dis-
tance detection methods based on monocular vision. Parameters and high-precision global positioning systems as the founda-
extracted from the number plate are utilized to predict the tion of their vision systems (GPS).
distance. Two different parameters are considered for the two
methods, one is the weight-height, and another one is the digit Vision-based distance estimation nowadays attracts the re-
size of the number plate in pixels. To calculate these parameters, searchers because it can provide richer sensing at a far
the number plate must first be detected, for which YOLOv5 lower cost. Vision-based systems tend to be divided into the
is employed. Finally, the distance is predicted using either a following groups: monocular vision [6] and stereo vision [7].
regression model or an ANN model that takes the extracted
parameters from the number plate as input. As the number plate Nevertheless, because two cameras must be calibrated and
is focused rather than the whole car size, the posture of the vehicle matched, stereo vision systems need a longer execution time,
on the road doesn’t affect the prediction much. Furthermore, demonstrate poor efficiency, and include a significant amount
different car models do not require separate trained models. of computational complexity. Monocular distance estimation
Despite the fact that number plates also vary, which is mostly techniques currently available still have shortcomings, such as
dependent on region, they may generally be more standardized
than automobile types. low accuracy and constrained application space. Here in the
Index Terms—ADAS, monocular vision. YOLOV5, regression paper, a new approach for monocular distance measurement
model, ANN is proposed.
For monocular vision, distance estimate methods fall into
I. I NTRODUCTION two broad categories [8]: relative depth estimations [9], [10]
and absolute distance [11] estimations. Relative depth estima-
The study of ADAS (advanced driver assistance systems) is tion is achieved by analyzing the size and position of objects in
growing significantly [1], [2]. Using technology to aid drivers the image and using this information to estimate their relative
in avoiding collisions and lowering the likelihood of damage distances from the camera. Absolute distance estimation, on
or death, ADAS is crucial for enhancing driving efficiency the other hand, requires additional information, such as the
and safety. Among other things, ADAS capabilities include size of the objects in the scene and the camera’s intrinsic
automated emergency braking, adaptive cruise control, lane parameters. This information is used to calculate the absolute
departure warning, and collision avoidance. ADAS can save distance from the camera to the objects in the scene. Thus, we
lives, prevent injuries, and lower collision costs by lowering propose a technique for relative depth estimation.
the likelihood of accidents.
Distance measurement is vital [3] for ADAS because it In this paper, we present a system for calculating the
offers important details about the surroundings of the vehicle, distance between cars based on the characteristics of the num-
which are required for assuring safety and preventing acci- ber plate using monocular vision from a single camera. For
dents. The ADAS may alert the driver about impending crashes number plate detection, a YOLOv5 model is employed [12],
by precisely calculating the distance to nearby objects, and in [13]. After detecting the number plate, the distance is predicted
extreme circumstances, it may even take control of the car to using a regression model or an ANN (artificial neural network)
prevent collisions altogether. Furthermore, accurate distance model. The two main advantages of the work are posture
readings are necessary for functions like adaptive cruise con- affects the result less, and there is no effect of different car
trol and automated emergency braking, which depend on them models on the result. As monocular vision is used, it is also
to function safely and effectively. cost-efficient and easy to place.
Not the final version. Preprint accepted to the 6th International Conference on Electrical Information and Communication Technology (EICT),
07-09 December 2023, Khulna, Bangladesh
B. Distance Prediction
During the object detection process, two different types of
outputs were extracted. In this step, there are two distinct
regression models of degree 4 for each output, as well as two
separate ANN models. These ANN models were compiled
with mean squared error loss and Adam optimizer. Both
the regression model and ANN model predict the distance Fig. 5. detailed 3rd step in method 1
independently.
Therefore, there are essentially two methods for predicting
the distance, which are briefly discussed below. used on the plate to traverse over the black pixels to calculate
Method 1: This method was applied to stationary cars. the digit size. The detailed 3rd step is shown in Figure 5.
Initially, an image of a stationary car was captured, and Finally, the entire process of method 1 is shown in Figure
the number plates within the image were detected using 4. The advantage of this method is that highly accurate results
YOLOv5. Subsequently, the digit size of each number plate can be obtained if the camera captures high-megapixel images.
was calculated. Based on the calculated size, the distance of This method can also be applied to moving cars if it can be
each car present in the image was predicted using either a ensured that the pixels are not significantly affected by the
polynomial regression model or an ANN. The structure of car’s speed.
ANN is shown in the figure 1. ANN takes the digit height as Method 2: This method was applied to moving cars. First, a
input. The process is illustrated in Figure 3 with a flow chart. video was recorded and then converted into frames. For each
In step 3 of method 1, for calculating the height of the digit frame, cars and their distances need to be predicted. To achieve
in the number plate; image processing is used. this, the number plate is first detected in each frame, and then
Image processing approach: First, a part of the text of the the width and height of the number plates are calculated. Based
number plate is taken and the other part is excluded, here on the weight and height, a polynomial regression model or
excluded means pixels on that part are converted into 256 an ANN predicts the distance. The structure of ANN is shown
intensity. Then the selected part is converted into black(pixel in Figure 2. ANN takes the width and height of the number
value 255) and white(pixel value 0) using a threshold value. plate as input. The process is illustrated in Figure 6 with a
Pixels of text areas are made black. Then a BFS algorithm is flow chart.
Not the final version. Preprint accepted to the 6th International Conference on Electrical Information and Communication Technology (EICT),
07-09 December 2023, Khulna, Bangladesh
TABLE II
ACTUAL VS PREDICTED DISTANCE FOR METHOD 2