Loading repository data…
Loading repository data…
Kartik-Aggarwal / repository
Using only Image Processing Techniques, detecting vehicles in real time video, creating bounding box, and tracking them
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Using only Image Processing Techniques, detecting vehicles in real time video, creating bounding box, and tracking them
Two consecutive frames are taken and their difference is computed. This creates an outline around the moving objects(here vehicles)
The image is converted to grayscale and a binary thresholding filter is applied
Then 3 sets of erode and dilate filters are applied with different kernel sizes and iterations
Reduntant objects like the number plate, shadow, car's rear view mirrors were also geting detected as seperate ojbects and were being identified as vehicles if we used only one erosion and dilation filter with larger filter size and iterations
To avoid this repetitive but small erosions and dialations operations are done
Balance between two tasks had to be maintained
Also, elimination based on the area of contour could not be done (assuming that noise has a smaller area) because cars far back on the road had contour area comparable to that of the noise
Trackbars were used to tweak the parameters simultaneously
Notice how the interiors of the car merges into one whole blob of pixels at the end
![]()