Now that you’ve got some experience with OpenCV and computer vision, it’s time to work on the problem statement. In this segment, Anand Mudliker, CEO – StomatoBot, will start walking you through the code to detect and classify moving vehicles on a road.
Note: The problem statement is present in the introduction segment of this session. Feel free to go through it again before proceeding with the code.
Let’s just get started with the notebook. In the first part of the code, we’ll define all the major variables that you would need to complete this project.
The coordinates (x1,y1) and (x2,y2) are the coordinates of the yellow imaginary line drawn perpendicular to the lane. And you already know that the colour scheme of OpenCV is BGR.
In the next segment, you will learn how to embed the functionality that allows you to draw on top of a video.
Report an error