mxcubecore.HardwareObjects.QtTangoLimaVideo#

[Name] QtTangoLimaVideo

[Description] HwObj used to grab images via Tango Lima device server If you want to access the Lima Library directly you may consider using the QtLimaVideo module instead

[Configuration] Example Hardware Object XML file : ================================== <object class=”QtLimaVideo”>

<type>basler</type> <encoding>yuv422p</encoding> <tangoname>bl13/eh/lima_oav</tangoname> <gain>0.5</gain> <exposure>0.01</exposure> <mirror>(False, False)</mirror> <interval>30</interval>

</object>

Functions

test_hwo(hwo)

Classes

QtTangoLimaVideo(name)

Descript.

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

Bases: AbstractVideoDevice

Descript. :

get_exposure_time()[source]#

Get the camera exposure time [s]

get_gain()[source]#

Get the camera gain

get_height()[source]#

Get the image height. :returns: Image height [pixels]. :rtype: (int)

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)

get_width()[source]#

Get the image width. :returns: Image width [pixels]. :rtype: (int)

init()[source]#

Descript. :

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