Qudi
Public Member Functions | List of all members
camera_dummy.CameraDummy Class Reference

Dummy hardware for camera interface. More...

Inheritance diagram for camera_dummy.CameraDummy:
Inheritance graph
[legend]
Collaboration diagram for camera_dummy.CameraDummy:
Collaboration graph
[legend]

Public Member Functions

def on_activate (self)
 Initialisation performed during activation of the module.
 
def on_deactivate (self)
 Deinitialisation performed during deactivation of the module.
 
def get_name (self)
 Retrieve an identifier of the camera that the GUI can print. More...
 
def get_size (self)
 Retrieve size of the image in pixel. More...
 
def support_live_acquisition (self)
 Return whether or not the camera can take care of live acquisition. More...
 
def start_live_acquisition (self)
 Start a continuous acquisition. More...
 
def start_single_acquisition (self)
 Start a single acquisition. More...
 
def stop_acquisition (self)
 Stop/abort live or single acquisition. More...
 
def get_acquired_data (self)
 Return an array of last acquired image. More...
 
def set_exposure (self, exposure)
 Set the exposure time in seconds. More...
 
def get_exposure (self)
 Get the exposure time in seconds. More...
 
def set_gain (self, gain)
 Set the gain. More...
 
def get_gain (self)
 Get the gain. More...
 
def get_ready_state (self)
 Is the camera ready for an acquisition ? More...
 
- Public Member Functions inherited from core.module.BaseMixin
def __init__ (self, manager, name, config=None, callbacks=None, kwargs)
 Initialise Base class object and set up its state machine. More...
 
def log (self)
 Returns a logger object.
 
def is_module_threaded (self)
 Returns whether the module shall be started in a thread.
 
def on_activate (self)
 Method called when module is activated. More...
 
def on_deactivate (self)
 Method called when module is deactivated. More...
 
def getStatusVariables (self)
 Return a dict of variable names and their content representing the module state for saving. More...
 
def setStatusVariables (self, variableDict)
 Give a module a dict of variable names and their content representing the module state. More...
 
def getConfiguration (self)
 Return the configration dictionary for this module. More...
 
def get_connector (self, connector_name)
 Return module connected to the given named connector. More...
 
- Public Member Functions inherited from core.module.ModuleMeta
def __new__ (cls, name, bases, attrs)
 Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
 

Additional Inherited Members

- Public Attributes inherited from core.module.BaseMixin
 module_state
 
 connectors
 

Detailed Description

Dummy hardware for camera interface.

Example config for copy-paste:

camera_dummy: module 'camera.camera_dummy.CameraDummy' support_live True camera_name 'Dummy camera' resolution (1280, 720) exposure 0.1 gain 1.0

Member Function Documentation

◆ get_acquired_data()

def camera_dummy.CameraDummy.get_acquired_data (   self)

Return an array of last acquired image.

Returns
numpy array: image data in format [[row],[row]...]

Each pixel might be a float, integer or sub pixels

◆ get_exposure()

def camera_dummy.CameraDummy.get_exposure (   self)

Get the exposure time in seconds.

Returns
float exposure time

◆ get_gain()

def camera_dummy.CameraDummy.get_gain (   self)

Get the gain.

Returns
float: exposure gain

◆ get_name()

def camera_dummy.CameraDummy.get_name (   self)

Retrieve an identifier of the camera that the GUI can print.

Returns
string: name for the camera

◆ get_ready_state()

def camera_dummy.CameraDummy.get_ready_state (   self)

Is the camera ready for an acquisition ?

Returns
bool: ready ?

◆ get_size()

def camera_dummy.CameraDummy.get_size (   self)

Retrieve size of the image in pixel.

Returns
tuple: Size (width, height)

◆ set_exposure()

def camera_dummy.CameraDummy.set_exposure (   self,
  exposure 
)

Set the exposure time in seconds.

Parameters
floattime: desired new exposure time
Returns
float: setted new exposure time

◆ set_gain()

def camera_dummy.CameraDummy.set_gain (   self,
  gain 
)

Set the gain.

Parameters
floatgain: desired new gain
Returns
float: new exposure gain

◆ start_live_acquisition()

def camera_dummy.CameraDummy.start_live_acquisition (   self)

Start a continuous acquisition.

Returns
bool: Success ?

◆ start_single_acquisition()

def camera_dummy.CameraDummy.start_single_acquisition (   self)

Start a single acquisition.

Returns
bool: Success ?

◆ stop_acquisition()

def camera_dummy.CameraDummy.stop_acquisition (   self)

Stop/abort live or single acquisition.

Returns
bool: Success ?

◆ support_live_acquisition()

def camera_dummy.CameraDummy.support_live_acquisition (   self)

Return whether or not the camera can take care of live acquisition.

Returns
bool: True if supported, False if not

The documentation for this class was generated from the following file: