Vehicle Counting, Classification and Detection Using OpenCV
Vehicle Counting, Classification and Detection Using OpenCV
https://doi.org/10.22214/ijraset.2023.51113
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Abstract: Vehicle Counting, Classification and Detection are turning out to be progressively significant in the field of Highway
management. In any case, because of the various sizes of vehicles, their identification stays a test that straight forwardly
influences the exactness of vehicle counts. To resolve this issue, we propose a vehicle Counting, Classification and Detection
framework. In the proposed system we uses Yolov3 for vehicle detection and counting of vehicles from still images that can
detect, classify and count numerous vehicles from CCTV footage.
I. INTRODUCTION
From the past few years the traffic control has turned into a serious issue for society. A variety of issues ranging from traffic
blockage, absence of vehicle parking, pollution etc. have hassled humans. It has achieved major break in the recent era. However,
the detection and classification of vehicles is a demanding concern.
The scope in this area is huge because of the variety of challenging features that vehicles possess ranging from edges, colors,
shadows, corners, textures, etc. Due to the progress in hardware and reduced manufacturing expenses, the amount of surveillance
devices has risen in the past few years, and video cameras are of high resolutions used in these systems. As a result, large amount of
video sources generates surprising volume of information that needs to be analysed and realized, but to examine the amount of
information is too high for human operators. Therefore, researchers are more take the benefit in all probability from technology like
Intelligent Transportation System
An important study of the surveillance system is the detection of different vehicle types. The main phase in traffic management
software is the classification of vehicles. Prior information of the model and vehicle type is required, because it allows for queries as
to know “which direction the vehicle has passed and at what time?”. Therefore, feature extraction and classification of vehicles
cover a vast scope of traffic management applications.
II. OBJECTIVE
The traffic surveillance system is to Count, Classify and Detect the vehicles but they can be used to do complex tasks such as driver
activity recognition, lane recognition.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 4126
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
B. Frame Differencing
In temporal frame differencing technique, the difference in the pixels is calculated among two consecutive frames. Whereas, using a
threshold value the moving foreground region are found out. The detection rate is improved by using three consecutive frames,
whereto obtain the moving target region the dual inter-frame subtraction is considered and binarized proceeding the bitwise AND
operation.
E. Neural Networks
There are six major stages in the vehicle detection through neural networks. They are loading the data set, designing the
convolutional neural network, configuring training options, training the object detector using Faster R-CNN, and evaluating the
trained detector. The above processes are discussed as follows.
V. PROCESS FLOW
Vehicle counting, classification, and detection are important tasks in traffic management and surveillance systems. The process
typically involves the following steps:
1) Data Collection: This involves collecting video footage of the traffic from cameras or other sensors.
2) Pre-processing: The collected data may require pre-processing to remove any noise or irrelevant data that can affect the
accuracy of the analysis.
3) Object Detection: The next step involves detecting the presence of vehicles in the video footage using computer vision
techniques such as object detection algorithms.
4) Object Tracking: Once the vehicles are detected, the system tracks them over time to determine their relevant information.
5) Vehicle Classification: The system then classifies the vehicles based on their type, such as cars, trucks, motorcycles, or buses,
using machine learning algorithms.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 4127
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
6) Data Analysis: The final step involves analyzing the data collected during the entire process to provide insights into vehicle
types, and other relevant information.
7) OpenCV: OpenCV is a Python library that allows you to perform image processing and computer vision tasks. It provides a
wide range of features, including object detection, face recognition, and tracking.
VIII. CONCLUSION
In this paper, a detailed overview of literature on video-based traffic monitoring and classification systems using computer vision
methods is presented. The purpose of this study is to support the researcher in the detection, classification and availability of car
data sets of vehicles. The most prevalent issues in this field are the biased form of datasets and the distinct vehicle types with the
same size and form, which makes it more difficult to categorize them.
REFERENCES
[1] Foucher, Philippe, Yazid Sebsadji, Jean-Philippe Tarel, Pierre Charbonnier, and Philippe Nicolle, “Detection and recognition of urban road markings using
images”, In Proceeding of the International IEEE Conference on Intelligent Transportation Systems (ITSC), IEEE, pp. 1747-1752., 2011.
[2] Oliveira, Miguel, Vitor Santos, and Angel D. Sappa, “Multimodal inverse perspective mapping”, Information Fusion, 24, pp. 108-121, 2015.
[3] Kim, Jong Bae, and Hang Joon Kim, “Efficient region-based motion segmentation for a video monitoring system”, Pattern recognition letters, 24(1-3), pp. 113-
128, 2003.
[4] Li, Xiaobo, Zhi-Qiang Liu, and Ka-Ming Leung, “Detection of vehicles from traffic scenes using fuzzy integrals”, Pattern Recognition, 35(4), pp. 967-980,
2002.
[5] Xia, Yingjie, Chunhui Wang, Xingmin Shi, and Luming Zhang, “Vehicles overtaking detection using RGB-D data”, Signal Processing, 112, 98-109, 2015.
[6] Zhang, Wei, QM Jonathan Wu, and Hai bing Yin, “Moving vehicles detection based on adaptive motion histogram”, Digital Signal Processing, 20(3), pp. 793-
805, 2010.
[7] Ji, Wenyang, Lingjun Tang, Dedi Li, Wenming Yang, and Qingmin Liao, “Video-based construction vehicles detection and its application in intelligent
monitoring system”, CAAI Transactions on Intelligence Technology, 1(2), pp. 162-172, 2016.
[8] Anandhalli, Mallikarjun, and Vishwanath P. Baligar, “Improvised approach using background subtraction for vehicle detection”, In Proceedings of the IEEE
International Advance Computing Conference (IACC), IEEE, pp. 303-308, 2015.
[9] Gibson, James J, “On the analysis of change in the optic array”, Scandinavian Journal of Psychology, 18(1), pp. 161-163, 1977.
[10] Horn, B. K. P., and B. G. Schunck, “Determining Optical Flow Artificial Intelligence”, Vol. 17, pp. 185- 203, 1981.
[11] Weber, Markus, Max Welling, and Pietro Perona, “Unsupervised learning of models for recognition”, In European conference on computer vision, Springer,
pp. 18-32, 2000.
[12] Handmann, Uwe, Thomas Kalinke, Christos Tzomakas, Martin Werner, and W. V. Seelen, “An image processing system for driver assistance”, Image and
Vision Computing, 18(5), pp. 367-376, 2000.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 4128