Videocapture constructors.
-
C ++: Videocapture :: Videocapture ( )
-
C ++: Videocapture :: Videocapture (Const
String &
Filename )
-
C ++: Videocapture :: Videocapture (Int
Device )
-
Python: Cv2. Videocapture ( )→
<Videocapture Object>
-
Python: Cv2. Videocapture (Filename )→
<Videocapture Object>
-
Python: Cv2. Videocapture (Device )→
<Videocapture Object>
-
C: Cvcapture * Cvcapturefromcam (Int
Device )
-
Python: CV. Capturefromcam (Index )→
Cvcapture
-
C: Cvcapture * Cvcapturefromfile (Const
Char *
Filename )
-
Python: CV. Capturefromfile (Filename )→
Cvcapture
-
Parameters: |
- Filename-Name of the opened video file
- Device-ID of the opened video capturing device (I. e. A camera Index). If there is a single camera connected, just pass 0.
|
Note
In c api, when you finished working with video, releaseCvcaptureStructureCvreleasecapture (),
Or usePTR <cvcapture>That CILSCvreleasecapture ()Automatically
In the destructor.