Table of Contents

Function Definition: cv2.VideoCapture(camera_id)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
camera_idintid of the video capturing device to open. To open default camera using default backend just pass 0.0-100

Description

The function is used to open a camera for video capture.

We are using OpenCV. OpenCV is a vast library that helps in providing various functions for image and video operations. With OpenCV, we can capture a video from the camera. It lets you create a video capture object which is helpful to capture videos through a webcam and then you may perform desired operations on that video.

Example

There are no examples documented for this article.