Client#
- class deapi.Client#
Bases:
object
A class for connecting to the DE-Server
Examples
>>> client = Client() >>> client.connect() >>> client["Exposure Time (seconds)"]
Attributes
Check if the camera is currently acquiring images.
Client.cameras
Client.connected
Client.currCamera
Client.debugImagesFolder
Client.exposureTime
Client.height
Client.host
Client.mmf
Client.port
Client.read_only
Client.refreshProperties
Client.usingMmf
Client.width
Methods
Client.connect
([host, port, read_only])Connect to DE-Server
Disconnects from the server.
Client.getProperty
(property_name)Get the value of a property of the current camera on DE-Server
Get the current camera on the server.
Client.get_image
([frame_type, pixel_format, ...])Get a single image and save it to disk if a file name is provided
Client.get_movie_buffer
(movieBuffer, ...[, ...])Get the movie buffer of the current camera on DE-Server.
Client.get_movie_buffer_info
([...])Get the movie buffer information of the current camera on DE-Server.
Client.get_properties
([names])Client.get_property
(property_name)Get the value of a property of the current camera on DE-Server
Client.get_property_spec
(property_name)Get a list of allowed values for a property of the current camera on DE-Server Deprecated since DE-MC 2.7.4
Client.get_property_specifications
(property_name)Get a list of allowed values for a property of the current camera on DE-Server Only works for DE-MC version greater or equal to 2.7.4
Client.get_result
([frame_type, ...])Get the specified type of frames in the desired pixel format and associated information.
Get the server software version
Get the current time from the system clock
Client.get_virtual_mask
(index)Client.grab
([frames, dataSetName, fileName])Grab specified number of frames and print out stats.
List the available cameras on the server.
Client.list_properties
([options, search])Get a list of property names from the current camera on DE-Server
Print out the acquisition information
Print out the saving information
Client.print_server_info
([camera])Print out the server information
Client.save_image
(image, fileName[, textSize])Client.setEngMode
(enable, password)Set the engineering mode of the current camera on DE-Server.
Client.setProperty
(name, value)Set the value of a property of the current camera on DE-Server
Client.setROI
(offsetX, offsetY, sizeX, sizeY)Set the region of interest (ROI) of the current camera on DE-Server.
Client.set_adaptive_roi
(size_x, size_y[, ...])Automatically choose the proper HW ROI and set SW ROI of the current camera on DE-Server.
Automatically choose the proper HW ROI and set SW ROI of the current camera on DE-Server and get all of the changed properties.
Client.set_binning
(bin_x, bin_y[, use_hw])Set the binning of the current camera on DE-Server.
Client.set_client_read_only
(read_only)Client.set_current_camera
([camera_name])Set the current camera on the server.
Client.set_engineering_mode
(enable, password)Set the engineering mode of the current camera on DE-Server.
Client.set_hw_roi
(offset_x, offset_y, ...)Set the hardware region of interest (ROI) of the current camera on DE-Server.
Set the hardware region of interest (ROI) of the current camera on DE-Server and get all the changed properties.
Client.set_log_level
(level)Client.set_property
(name, value)Set the value of a property of the current camera on DE-Server
Set the value of a property of the current camera on DE-Server and get all the changed properties.
Client.set_sw_roi
(offsetX, offsetY, sizeX, sizeY)Set the software region of interest (ROI) of the current camera on DE-Server.
Set the software region of interest (ROI) of the current camera on DE-Server and get all of the changed properties.
Client.set_virtual_mask
(id, w, h, mask)Set the virtual mask of the current camera on DE-Server.
Client.set_xy_array
(positions[, width, height])Set the scan array for a set of x,y positions.
Client.start_acquisition
([...])Start acquiring images.
Start saving movie during acquisition.
Start saving movie during acquisition.
Stop acquiring images.
Stop saving movie during acquisition.
Stop saving movie during acquisition.
Client.take_dark_reference
([frame_rate, ...])Take dark reference images.
Client.take_gain_reference
(frame_rate[, ...])Take a gain reference.
Take a trial gain reference.
Client.wait_for_saving_files
([quiet])Wait for the saving files to complete