WebcamVideo

from panda3d.vision import WebcamVideo
class WebcamVideo

Bases: MovieVideo

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

Inheritance diagram

Inheritance diagram of WebcamVideo

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

getFps()

C++ Interface: get_fps(WebcamVideo self)

/**
  • Returns the camera’s framerate. This is a maximum theoretical: the actual

  • performance will depend on the speed of the hardware.

*/

getNumOptions()

C++ Interface: get_num_options()

/**
  • 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.

*/

getOption()

C++ Interface: get_option(int n)

/**
  • Returns the nth webcam option.

*/

getOptions()
getPixelFormat()

C++ Interface: get_pixel_format(WebcamVideo self)

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

*/

getSizeX()

C++ Interface: get_size_x(WebcamVideo self)

/**
  • Returns the camera’s size_x.

*/

getSizeY()

C++ Interface: get_size_y(WebcamVideo self)

/**
  • Returns the camera’s size_y.

*/

get_class_type()

C++ Interface: get_class_type()

get_fps()

C++ Interface: get_fps(WebcamVideo self)

/**
  • Returns the camera’s framerate. This is a maximum theoretical: the actual

  • performance will depend on the speed of the hardware.

*/

get_num_options()

C++ Interface: get_num_options()

/**
  • 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.

*/

get_option()

C++ Interface: get_option(int n)

/**
  • Returns the nth webcam option.

*/

get_options()
get_pixel_format()

C++ Interface: get_pixel_format(WebcamVideo self)

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

*/

get_size_x()

C++ Interface: get_size_x(WebcamVideo self)

/**
  • Returns the camera’s size_x.

*/

get_size_y()

C++ Interface: get_size_y(WebcamVideo self)

/**
  • Returns the camera’s size_y.

*/

options = <WebcamVideo.options[0] of <NULL>>
output()

C++ Interface: output(WebcamVideo self, ostream out)

/**
  • Outputs the WebcamVideo. This function simply writes the name, size and

  • FPS to the output stream.

*/