WebcamVideo

from panda3d.vision import WebcamVideo
class WebcamVideo

Bases:

Bases: MovieVideo

Allows you to open a webcam or other video capture device as a video stream.

Inheritance diagram

Inheritance diagram of WebcamVideo

static get_class_type() → panda3d.core.TypeHandle
get_fps() → float

Returns the camera’s framerate. This is a maximum theoretical: the actual performance will depend on the speed of the hardware.

static get_num_options() → int

Returns the number of webcam options. An “option” consists of a device plus a set of configuration parameters. For example, “Creative Webcam Live at 640x480, 30 fps” is an option.

static get_option(n: int) → WebcamVideo

Returns the nth webcam option.

get_options() → list
get_pixel_format() → str

Returns the camera’s pixel format, as a FourCC code, if known.

get_size_x() → int

Returns the camera’s size_x.

get_size_y() → int

Returns the camera’s size_y.

property options → Sequence[PointerTo_WebcamVideo]

Returns the nth webcam option.

output(out: panda3d.core.ostream)

Outputs the WebcamVideo. This function simply writes the name, size and FPS to the output stream.