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
-
getSize
()[source]¶ Returns the size in pixels of the image being acquired. This is useful for checking the ROI settings.
-
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:
-