esppy.connectors.PylonPublisher¶
-
class
esppy.connectors.
PylonPublisher
(name=None, is_active=None, cameraipaddress=None, maxnumframes=None, maxframerate=None, camerafeaturesfile=None, camerawidth=None, cameraheight=None, camerapixelformat=None, camerapacketsize=None, transactional=None, configfilesection=None, publishwithupsert=None, cameraxoffset=None, camerayoffset=None, maxevents=None)¶ Bases:
esppy.connectors.base.Connector
Publish Basler GigE camera captured frames
- Parameters
- cameraipaddressstring, optional
Specifies the camera IP address. The default value is the address of the first camera found on the local subnet.
- maxnumframesint, optional
Specifies the maximum number of frames to publish. The default value is no maximum.
- maxframerateint, optional
Specifies the maximum number of frames per second to publish. The default value is the rate at which frames are received from the camera.
- camerafeaturesfilestring, optional
Specifies a Pylon Features Stream (.pfs) configuration file to load. The default is to use the current camera configuration unmodified.
- camerawidthint, optional
Specifies the Area-Of-Interest width. The default value is the value in the current camera configuration.
- cameraheightint, optional
Specifies the Area-Of-Interest height. The default value is the value in the current camera configuration.
- camerapixelformatstring, optional
Specifies the image pixel format. The default value is the format in the current camera configuration.
- camerapacketsizeint, optional
Specifies the Ethernet packet size. The default value is the value in the current camera configuration.
- transactionalstring, optional
Sets the event block type to transactional. The default value is normal.
- configfilesectionstring, optional
Specifies the name of the section in the connector config file to parse for configuration parameters. Specify the value as [configfilesection].
- publishwithupsertboolean, optional
Specifies to build events with opcode=Upsert instead of opcode=Insert
- cameraxoffsetint, optional
Specifies the Area-Of-Interest horizontal offset. The default value is the value in the current camera configuration.
- camerayoffsetint, optional
Specifies the Area-Of-Interest vertical offset. The default value is the value in the current camera configuration.
- maxeventsint, optional
Specifies the maximum number of events to publish.
- Returns
-
__init__
(self, name=None, is_active=None, cameraipaddress=None, maxnumframes=None, maxframerate=None, camerafeaturesfile=None, camerawidth=None, cameraheight=None, camerapixelformat=None, camerapacketsize=None, transactional=None, configfilesection=None, publishwithupsert=None, cameraxoffset=None, camerayoffset=None, maxevents=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