From the course: OpenCV for Python Developers

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Use video inputs

Use video inputs

- [Narrator] OpenCV provides easy access to video feeds, enabling applications to provide real-time processing and even display the process video output. In a real-time application, the video feed is tapped for an image at the start of a repeating loop, which represents the actual image processing to occur. If you were having trouble accessing a livestream video in this module, you could also import a raw image sequence and simply load a new image on each iteration of the loop. If you're having trouble accessing a livestream video or if you're using Google CoLab, where you can't visualize a livestream, you could instead import a raw image sequence and simply load a new image on each iteration of the loop instead of using video capture. To begin, as always, we will import numpy as np and import cv2. Next we're going to capture or request from the operating system to use the camera. We can do this by naming the variable cap…

Contents