I was really amazed by this video, whilst i was researching upon Open CV and i found it amazing how he’d managed to set the codes for counting the vehicles after detecting them. then i found that this work by for “every detected car there is a center point. Every car leaves a small trail/line that consists of these points. So we have a few small lines and the main red line. The last step is to determine whether they intersect. If yes then increment the number of vehicles”.