Traffic safety has become one of the major concerns in most of the countries with extensive road networks. With the ever-increasing traffic and its various types, it has become increasingly difficult to check if the road network can sustain the surge. To evaluate the efficiency and safety of a network, several factors such as speed, vehicular composition, traffic volume are required. Data collection for calculating each of these factors is time-consuming. Most of the current activities in the area of intelligent transportation systems involve the collection of data through various sources such as surveillance cameras, but the collection alone is not sufficient. It requires a lot of time to process this data and determine the safety level of the road network which becomes manifold for a country with a vast network like India. It is a necessity to expand the use of intelligent transportation for the processing of the data. To achieve this initially, it is required to have traffic flow data. Therefore, high-resolution video cameras were placed at vantage points approximately 100-150 m away from the center of intersection locations. Two such intersections were selected from the National Capital Region (NCR) of India. Traffic flow-related data was recorded from 10 am to 4 pm during good weather condition. The obtained videos were then processed to segregate different types of vehicles. The proposed algorithm deals with the vehicles which are up to 70% occluded. A CNN-LSTM (Krizhevsky et al. in Advances in neural information processing systems, pp 1097-1105, 2012 [6]) model is trained for the recognition of a vehicle. Following this, a minimal cover volume algorithm is developed using bi-grid mapping for classifying vehicles and evaluating various parameters such as base center, orientation, and minimizing error due to occlusion. The proposed algorithm is based on machine learning, and it can estimate the required parameters with minimal human assistance and accuracy of 95.6% on test video and 87.6% on cifar-100 for object detection.