The exponential rise of urban areas and the associated surge in transportation congestion. Consequently, this study offers a thorough method for vehicle recognition and counting via the use of machine learning, as well as an effective system for real-time traffic monitoring, with the aim of reducing traffic. The first step is to develop a model that can identify and follow moving cars in still photos or video. This research delves into the topic of teaching a computer to count automobiles using machine learning, a kind of artificial intelligence. The purpose of this study is to provide a computational model for intelligent vehicle detection and tracking at a given location and time of day, using real-time images of passing cars. This approach uses OpenCV to evaluate the model's car detection and counting capabilities, and convolutional neural networks (CNNs) for object recognition and classification. The techniques laid the groundwork for early improvements, which were often enhanced using machine learning classifiers such as random forests and support vector machines (SVMs). To automate the process and get useful information regarding traffic patterns and management.