class Video(sieve.File)

A type that represents a video in Sieve. The benefit of using a sieve.Video is that Sieve is able to optimize the storage and transfer of the type while processing, which results in faster processing times.

cap

@property
cap(self) -> cv2.VideoCapture:

The cv2.VideoCapture object that can used to read the video.

fps

@property
fps(self) -> float:

The frame rate of the video.

frame_count

@property
frame_count(self) -> int:

The number of frames in the video.

width

@property
width(self) -> int:

The width of the video.

height

@property
height(self) -> int:

The height of the video.

channels

@property
channels(self) -> int:

The number of channels in the video.

getstate

def __getstate__(self) -> dict:

dict

def dict(self) -> dict:

json

def json(self) -> str: