pyfast_adt.main.adaptor.camera.adaptor_cam

Classes

Cam_base

Helper class that provides a standard way to create an ABC using

Module Contents

class pyfast_adt.main.adaptor.camera.adaptor_cam.Cam_base

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

name = None
exposure = None
x = None
y = None
processing = None
delay = None
binning = None
buffer_size = None
stop_signal = None
buffer = None
table = None
timings = []
abstract connect()

‘ connection with the device

abstract release_connection()

‘ release the connection with the device

abstract set_exposure(exposure_time: int)

‘ set the exposure time in ms for the camera

abstract get_exposure()

‘ get the exposure time in ms for the camera

abstract start_liveview(delay: float)

‘ start the live view of the camera

abstract stop_liveview()

‘ stop the live view of the camera

abstract set_binning(binning: int)

‘ set the binning of the camera, common parameters are 1, 2, 4, 8

abstract get_binning()

‘ get the binning of the camera

abstract acquire_image(exposure_time: int, binning: int, processing: str)

Acquire image through its adaptor and return it as np.array.

abstract rotate_img(img, times=None, flip_h=None, flip_v=None)
abstract set_processing(processing: str)

‘ set the processing of the camera, processing = “Unprocessed, Background subtracted, Gain normalized”

abstract get_processing()

‘ get the processing typeof the camera

abstract acquire_series_images(exposure_time: int, binning: int, processing: str, buffer_size: int, stop_signal, display=False)
abstract prepare_acquisition_cRED_data(camera: str, binning: int, exposure: int, buffer_size, FPS_devider=1)
abstract acquisition_cRED_data(stage_thread=None)

Acquire images into the buffer up to the thread is alive, usually the stage thread is passed for cRED experiments

abstract save_cRED_data(savingpath: str)
abstract get_camera_characteristic()
abstract load_calibration_table()
abstract is_cam_streaming()

True is the camera have a live mode where you can retrieve the images from the memory like the xf416r, otherwise False like the timepix1

abstract is_cam_bottom_mounted()

True if the camera is mounted on the bottom of the microscope, otherwise False