From the course: Introduction to Deep Learning with OpenCV
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Classification for a video - OpenCV Tutorial
From the course: Introduction to Deep Learning with OpenCV
Classification for a video
- [Instructor] So let's get started with using OpenCV's dnn module as an inference engine for a video file. Now, earlier in this course we looked at working with video files with OpenCV, so let's use the file that we created there as a starting point. We've also used OpenCV for image classification, and so we can reuse much of this for working with video files. Now, we're going to be using the same shore video, and let's head over to the image classification file. And we've worked with these synset files for the 1000 classes, so let's reuse that, along with the list comprehension, and let's load our caffe files, so I'm going to grab the three rows. So that's all_rows, the classes, and reading the files into caffe, and I'm going to copy it into my video file. Now, the next thing we do is to confirm that we can actually open the video file or stream. Now, a video is made up of multiple images; so all we're doing is taking each image of frame and checking against the model. So if we head…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.