cv.VideoCapture/VideoCapture - MATLAB File Help
cv.VideoCapture/VideoCapture

Open video file or a capturing device or a IP video stream for video capturing

cap = cv.VideoCapture()
cap = cv.VideoCapture(index)
cap = cv.VideoCapture(filename)
cap = cv.VideoCapture(..., 'API',apiPreference)

Output

Accepts the same inputs and options as the cv.VideoCapture.open method.

Creates a new video capture instance. With no argument, it connects to the default camera device found in the system. You can specify camera devices by index, an integer value starting from 0. You can also specify a filename to open a video file.

See also