Cheese.CameraDevice¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
The GStreamer device object of the video capture device  | 
||
r/w/co  | 
Human-readable name of the video capture device  | 
||
r/w/co  | 
Path of the video capture device  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
unused  | 
r  | 
Class Details¶
- class Cheese.CameraDevice(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Use the accessor functions below.
- classmethod new(device)¶
 - Parameters:
 device (
Gst.Device) – The GStreamer the device, as supplied byGst.DeviceMonitor- Raises:
 - Returns:
 a new
Cheese.CameraDevice, orNone- Return type:
 
Tries to create a new
Cheese.CameraDevicewith the supplied device. If construction fails,Noneis returned, and error is set.
- classmethod supported_format_caps()¶
 - 
Get the
Gst.Capsthat are supported for allCheese.CameraDevice 
- get_best_format()¶
 - Returns:
 the highest-resolution supported
Cheese.VideoFormat- Return type:
 
Get the
Cheese.VideoFormatwith the highest resolution with a width greater than 640 pixels and a framerate of greater than 15 FPS for this self. If no such format is found, get the highest available resolution instead.
- get_caps_for_format(format)¶
 - Parameters:
 format (
Cheese.VideoFormat) – aCheese.VideoFormat- Returns:
 the
Gst.Capsfor the given format- Return type:
 
Get the
Gst.Capsfor the given format on the self.
- get_format_list()¶
 - Returns:
 list of
Cheese.VideoFormat- Return type:
 
Get the sorted list of
Cheese.VideoFormatthat the self supports.
- get_name()¶
 - Returns:
 the human-readable name of the video capture device
- Return type:
 
Get a human-readable name for the device, as reported by udev, which is suitable for display to a user.
- get_path()¶
 - Returns:
 the path of the video capture device
- Return type:
 
Get path for the device, as reported by udev.
- get_src()¶
 - Returns:
 the source GStreamer element
- Return type:
 
Get the source GStreamer element for the self.
Property Details¶
- Cheese.CameraDevice.props.device¶
 - Name:
 device- Type:
 - Default Value:
 - Flags:
 
GStreamer device object of the video capture device.
- Cheese.CameraDevice.props.name¶
 - Name:
 name- Type:
 - Default Value:
 - Flags:
 
Human-readable name of the video capture device, for display to the user.