image π
Image-related operations.
ImageMixin π
Mixin providing image operations for a Session
.
This mixin is intended to be used in combination with BaseSession
and should not be instantiated on its own.
Intended usage
class Session(BaseSession, ImageMixin): ...
classify π
Performs the image classification operation.
Wraps the vaccel_image_classification()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The image data as a | required |
Returns:
Type | Description |
---|---|
(str, str) | A tuple containing: - The classification tag. - The resulting image filename. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |
Source code in vaccel/ops/image.py
depth π
Performs the image depth estimation operation.
Wraps the vaccel_image_depth()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The image data as a | required |
Returns:
Type | Description |
---|---|
str | The resulting image filename. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |
Source code in vaccel/ops/image.py
detect π
Performs the image detection operation.
Wraps the vaccel_image_detection()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The image data as a | required |
Returns:
Type | Description |
---|---|
str | The resulting image filename. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |
Source code in vaccel/ops/image.py
pose π
Performs the image pose estimation operation.
Wraps the vaccel_image_pose()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The image data as a | required |
Returns:
Type | Description |
---|---|
str | The resulting image filename. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |
Source code in vaccel/ops/image.py
segment π
Performs the image segmentation operations.
Wraps the vaccel_image_segmentation()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The image data as a | required |
Returns:
Type | Description |
---|---|
str | The resulting image filename. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |