UUTrack.Model.Cameras._skeleton.py

Camera class with the skeleton functions. Important to keep track of the methods that are exposed to the View. The class cameraBase should be subclassed when developing new Models. This ensures that all the methods are automatically inherited and there is no breaks downstream.

Note

IMPORTANT Whatever new function is implemented in a specific model, it should be first declared in the cameraBase class. In this way the other models will have access to the method and the program will keep running (perhaps with non intended behavior though).

Section author: Aquiles Carattino <aquiles@aquicarattino.com>

class UUTrack.Model.Cameras._skeleton.cameraBase(camera)[source]

Bases: object

GetCCDHeight()[source]

Returns: the CCD height in pixels

GetCCDWidth()[source]

Returns the CCD width in pixels

acquisitionReady()[source]

Checks if the acquisition in the camera is over.

clearROI()[source]

Clears the ROI from the camera.

getAcquisitionMode()[source]

Returns the acquisition mode, either continuous or single shot.

getExposure()[source]

Gets the exposure time of the camera.

getSerialNumber()[source]

Returns the serial number of the camera.

getSize()[source]

Returns the size in pixels of the image being acquired. This is useful for checking the ROI settings.

initializeCamera()[source]

Initializes the camera.

readCamera()[source]

Reads the camera

setAcquisitionMode(mode)[source]

Set the readout mode of the camera: Single or continuous. :param int mode: One of self.MODE_CONTINUOUS, self.MODE_SINGLE_SHOT :return:

setBinning(xbin, ybin)[source]

Sets the binning of the camera if supported. Has to check if binning in X/Y can be different or not, etc.

Parameters:
  • xbin
  • ybin
Returns:

setExposure(exposure)[source]

Sets the exposure of the camera.

setROI(X, Y)[source]

Sets up the ROI. Not all cameras are 0-indexed, so this is an important place to define the proper ROI.

Parameters:
  • X (array) – array type with the coordinates for the ROI X[0], X[1]
  • Y (array) – array type with the coordinates for the ROI Y[0], Y[1]
Returns:

stopAcq()[source]

Stops the acquisition without closing the connection to the camera.

stopCamera()[source]

Stops the acquisition and closes the connection with the camera.

triggerCamera()[source]

Triggers the camera.