esppy.connectors.UVCPublisher¶
-
class
esppy.connectors.
UVCPublisher
(name=None, is_active=None, frame_rate=None, format_in=None, format_out=None, width=None, height=None, brightness=None, gain=None, saturation=None, contrast=None, device=None, blocking=None, predelay=None, maxevents=None, cameraid=None)¶ Bases:
esppy.connectors.base.Connector
Publish photos taken by a V4L2 compatible
- Parameters
- frame_ratefloat, optional
Specifies the frames per second that the camera streams. Must be a double. The default value is 15.
- format_instring, optional
Specifies the image format of captured photos. The default is jpeg. yuyv, an uncompressed image format, is also supported.
- format_outstring, optional
Specifies the image format that the connector publishes. The default is jpeg. yuyv, an uncompressed image format, is supported only when format_in is yuyv.
- widthint, optional
Specifies the height of the photo.
- heightint, optional
Specifies the width of the photo.
- brightnessstring, optional
Specifies the brightness of the photo.
- gainstring, optional
Specifies the gain of the photo.
- saturationstring, optional
Specifies the saturation of the photo.
- contraststring, optional
Specifies the contrast of the photo.
- devicestring, optional
Specifies the device name the camera is using on the Linux operating system.
- blockingboolean, optional
Specifies whether the connector is in blocking mode.
- predelayint, optional
Specifies a delay time, in seconds, on starting the connector.
- maxeventsint, optional
Specifies the maximum number of events to publish.
- cameraidstring, optional
Specifies an arbitrary string that is copied into the corresponding string field in the Source window. This value can be used by the model to identify the source camera.
- Returns
-
__init__
(self, name=None, is_active=None, frame_rate=None, format_in=None, format_out=None, width=None, height=None, brightness=None, gain=None, saturation=None, contrast=None, device=None, blocking=None, predelay=None, maxevents=None, cameraid=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(self[, name, is_active, …])Initialize self.
clear
(self)copy
(self[, deep])Return a copy of the object
from_element
(data[, session])Construct connector from XML definition
from_parameters
(conncls[, type, name, …])from_xml
(data[, session])Construct connector from XML definition
get
(self, key[, default])items
(self)keys
(self)pop
(self, key[, default])If key is not found, d is returned if given, otherwise KeyError is raised.
popitem
(self)as a 2-tuple; but raise KeyError if D is empty.
set_properties
(self, \*\*kwargs)Set connector properties
setdefault
(self, key[, default])to_element
(self)Export connector definition to ElementTree.Element
to_xml
(self[, pretty])Export connector definition to XML
update
(\*args, \*\*kwds)If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
values
(self)Attributes
connector_key
property_defs