Previously, you have learnt to read and preprocess images. In this exercise, you will learn to read the videos using OpenCV.
You can download the notebook here:
Reading video is as simple as capturing frames in a loop. We have already discussed the approach to the problem as shown in the below figure. You also know to detect the object in a video using contours. Let’s see how to draw the imaginary line, capture the vehicle and crop the detected vehicle without going into the code details.
That brings us to the end of the familiarisation session of OpenCV.
Before proceeding to the next segment, make sure you have got some very basic hands-on experience with OpenCV. Play around with the computer vision operations that you learnt in this session. This library will be extensively used in the upcoming parts of the session, and a good feel for how this Python package works will be really helpful.
Report an error