Aravis.FakeCamera

g Aravis.FakeCamera Aravis.FakeCamera GObject.Object GObject.Object GObject.Object->Aravis.FakeCamera

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (serial_number)

class

new_full (serial_number, genicam_filename)

check_and_acknowledge_software_trigger ()

fill_buffer (buffer)

get_acquisition_status ()

get_control_channel_privilege ()

get_genicam_xml ()

get_heartbeat_timeout ()

get_payload ()

get_sleep_time_for_next_frame ()

get_stream_address ()

is_in_free_running_mode ()

is_in_software_trigger_mode ()

read_memory (address, size, buffer)

read_register (address)

set_control_channel_privilege (privilege)

set_fill_pattern (fill_pattern_callback, *fill_pattern_data)

set_inet_address (address)

set_trigger_frequency (frequency)

wait_for_next_frame ()

write_memory (address, size, buffer)

write_register (address, value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Aravis.FakeCamera(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Aravis.FakeCameraClass

Aravis.FakeCamera is a class that simulate a real camera, which provides methods for the implementation of Aravis.FakeDevice and Aravis.FakeStream.

arv-fake-gv-camera is a GV camera simulator based on this class.

classmethod new(serial_number)
Parameters:

serial_number (str) –

Return type:

Aravis.FakeCamera

classmethod new_full(serial_number, genicam_filename)
Parameters:
  • serial_number (str) –

  • genicam_filename (str) –

Return type:

Aravis.FakeCamera

check_and_acknowledge_software_trigger()
Return type:

bool

fill_buffer(buffer)
Parameters:

buffer (Aravis.Buffer) – the Aravis.Buffer to fill

Returns:

the packet size

Return type:

packet_size: int

Fill a buffer with data from the fake camera.

get_acquisition_status()
Return type:

int

get_control_channel_privilege()
Return type:

int

get_genicam_xml()
Returns:

the genicam XML description of the camera

size:

the size of the returned XML string

Return type:

(str, size: int)

get_heartbeat_timeout()
Return type:

int

get_payload()
Return type:

int

get_sleep_time_for_next_frame()
Returns:

the sleep time for the next frame

next_timestamp_us:

the timestamp for the next frame in microseconds

Return type:

(int, next_timestamp_us: int)

get_stream_address()
Returns:

the data stream Gio.SocketAddress for this camera

Return type:

Gio.SocketAddress

is_in_free_running_mode()
Return type:

bool

is_in_software_trigger_mode()
Return type:

bool

read_memory(address, size, buffer)
Parameters:
Return type:

bool

read_register(address)
Parameters:

address (int) – the register address

Returns:

true if the read succeeded, false otherwise

value:

the register value

Return type:

(bool, value: int)

set_control_channel_privilege(privilege)
Parameters:

privilege (int) –

set_fill_pattern(fill_pattern_callback, *fill_pattern_data)
Parameters:

Sets the fill pattern callback for custom test images.

set_inet_address(address)
Parameters:

address (Gio.InetAddress) –

set_trigger_frequency(frequency)
Parameters:

frequency (float) –

wait_for_next_frame()
write_memory(address, size, buffer)
Parameters:
Return type:

bool

write_register(address, value)
Parameters:
  • address (int) –

  • value (int) –

Return type:

bool