Aravis.Interface¶
- Subclasses:
Aravis.FakeInterface
,Aravis.GvInterface
,Aravis.UvInterface
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Aravis.Interface(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Aravis.Interface
is an abstract base class for camera discovery. It maintains a list of the available devices and helps to instantiate the correspondingAravis.Device
objects. If the user already knows the device id of the device, he should not worry about this class and just useAravis.Camera.new
() orAravis.open_device
().- get_device_address(index)¶
-
queries the device address (IP address in the case of an ethernet camera). Useful for constructing manual connections to devices using arv_gv_device_new
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.2.0.
- get_device_id(index)¶
-
Queries the unique device id corresponding to index. Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.2.0.
- get_device_manufacturer_info(index)¶
- Parameters:
index (
int
) – device index- Returns:
the device manufacturer info,
None
on error- Return type:
Queries the device manufacturer info.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.8.20.
- get_device_model(index)¶
-
Queries the device model.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.6.0.
- get_device_physical_id(index)¶
-
Queries the physical device id corresponding to index such as the MAC address for Ethernet based devices, bus id for PCI, USB or Firewire based devices.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.2.0.
- get_device_protocol(index)¶
- Parameters:
index (
int
) – device index- Returns:
the device protocol as a string,
None
on error- Return type:
Queries the device protocol. Possible values are ‘USB3Vision’, ‘GigEVision’ and ‘Fake’.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.6.0.
- get_device_serial_nbr(index)¶
-
Queries the device serial.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.6.0.
- get_device_vendor(index)¶
-
Queries the device vendor.
Prior to this call the
Aravis.Interface.update_device_list
() function must be called.New in version 0.6.0.
- get_n_devices()¶
- Returns:
the number of available devices
- Return type:
Queries the number of available devices on this interface. Prior to this call the arv_interface_update_device_list function must be called. The list content will not change until the next call of the update function.
New in version 0.2.0.
- open_device(device_id)¶
- Parameters:
- Raises:
- Returns:
a new
Aravis.Device
- Return type:
Creates a new
Aravis.Device
object corresponding to the given device id string. The first available device is returned if device_id isNone
.New in version 0.2.0.
- update_device_list()¶
Updates the internal list of available devices. This may change the connection between a list index and a device ID.
New in version 0.2.0.
- do_open_device(device_id) virtual¶
- Parameters:
- Returns:
a new
Aravis.Device
- Return type:
Creates a new
Aravis.Device
object corresponding to the given device id string. The first available device is returned if device_id isNone
.New in version 0.2.0.