mxcubecore.HardwareObjects.QtLimaVideo#

[Name] QtLimaVideo

[Description] HwObj used to grab images via LImA library or Lima Tango server.

[Configuration] See example below. To select between “Library” or “Tango” simply use and configure the field <address> (for Library) or <tangoname> (for Tango) in the XML file.

Example Hardware Object XML file :#

<object class=”QtLimaVideo”>

<type>basler</type> <encoding>yuv422p</encoding> <address>84.89.227.6</address> <gain>0.5</gain> <exposure>0.01</exposure> <mirror>(False, False)</mirror> <interval>30</interval>

</object>

Functions

test_hwo(hwo)

Classes

QtLimaVideo(name)

Descript.

class mxcubecore.HardwareObjects.QtLimaVideo.QtLimaVideo(name)[source]#

Bases: AbstractVideoDevice

Descript. :

get_exposure_time()[source]#

Get the camera exposure time [s]

get_gain()[source]#

Get the camera gain

get_image()[source]#

The implementing class should return here the latest_image in raw_format, followed by the width and height of the image

get_raw_image_size()[source]#

Must return a two-value list necessary to avoid breaking e.g. ViideoMockup

get_video_live()[source]#

Get the video live mode. :returns: Live mode. :rtype: flag(bool)

init()[source]#

Initialise the values from config and set default values, when appropriate

set_cam_encoding(cam_encoding)[source]#

Set the image encoding. :param cam_encoding: set the encoding type. :type cam_encoding: str

set_exposure_time(exposure_time_value)[source]#

Set the camera exposure time [s]

set_gain(gain_value)[source]#

Set the camera gain

set_video_live(flag)[source]#

Set the video live mode. :param flag: Live mode. :type flag: bool