VisionCameraCommandGroup
Bases: CommandGroupBase
A command group for setting camera parameters.
You are not meant to instantiate this class directly. Access it via the camera attribute of the vision attribute of the SentioProber class.
get_calib(mp)
Get the calibration data of the camera.
Camera calibration data consists of the width and height of an image pixel in micrometers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
Returns:
Name | Type | Description |
---|---|---|
width |
float
|
Get the width of a camera pixel in micrometers. |
height |
float
|
Get height of a camera pixel in micrometers. |
get_exposure(mp)
Get exposure time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
Returns:
Type | Description |
---|---|
float
|
The exposure time in microseconds. |
get_focus_value(mp, alg)
Get the focus value of the camera.
This function wraps the vis:get_focus_value remote command.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
alg |
AutoFocusAlgorithm
|
The autofocus algorithm to use. |
required |
Returns:
Type | Description |
---|---|
float
|
The focus value. |
get_gain(mp)
Get gain of the camera.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
Returns:
Type | Description |
---|---|
float
|
The gain value. |
get_image_size(mp)
Get size of the image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
Returns:
Name | Type | Description |
---|---|---|
width |
int
|
The width of the image in pixels. |
height |
int
|
The height of the image in pixels. |
get_light(mp)
Get light intensity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
is_pattern_trained(mp, pat)
Check if a pattern is trained.
This command wraps the vis:pattern:is_trained remote command.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if the pattern is trained, False otherwise. |
set_exposure(mp, value)
Set exposure time of the camera.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
value |
int
|
The exposure time in microseconds. |
required |
Returns:
Type | Description |
---|---|
Response
|
A Response object. |
set_gain(mp, value)
Set gain of the camera.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
value |
float
|
The gain value. |
required |
set_light(mp, value)
Set intensity of the light.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mp |
CameraMountPoint
|
The mount point of the camera. |
required |
value |
int
|
The intensity of the light. |
required |
handler: python options: members: VisionCameraCommandGroup