viam.gen.service.vision.v1.vision_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes
Classes
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
the general form of the output from a classifier |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Module Contents
- viam.gen.service.vision.v1.vision_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class viam.gen.service.vision.v1.vision_pb2.GetDetectionsRequest(*, name: str = ..., image: bytes = ..., width: int = ..., height: int = ..., mime_type: str = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- image: bytes
the image, encoded as bytes
- width: int
the width of the image
- height: int
the height of the image
- mime_type: str
the actual MIME type of image
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetDetectionsRequest = GetDetectionsRequest
- class viam.gen.service.vision.v1.vision_pb2.GetDetectionsResponse(*, detections: collections.abc.Iterable[Global___Detection] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- detections() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Detection]
the bounding boxes and labels
- type viam.gen.service.vision.v1.vision_pb2.Global___GetDetectionsResponse = GetDetectionsResponse
- class viam.gen.service.vision.v1.vision_pb2.GetDetectionsFromCameraRequest(*, name: str = ..., camera_name: str = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- camera_name: str
name of camera source to use as input
- extra() google.protobuf.struct_pb2.Struct
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetDetectionsFromCameraRequest = GetDetectionsFromCameraRequest
- class viam.gen.service.vision.v1.vision_pb2.GetDetectionsFromCameraResponse(*, detections: collections.abc.Iterable[Global___Detection] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- detections() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Detection]
the bounding boxes and labels
- type viam.gen.service.vision.v1.vision_pb2.Global___GetDetectionsFromCameraResponse = GetDetectionsFromCameraResponse
- class viam.gen.service.vision.v1.vision_pb2.Detection(*, x_min: int | None = ..., y_min: int | None = ..., x_max: int | None = ..., y_max: int | None = ..., confidence: float = ..., class_name: str = ..., x_min_normalized: float | None = ..., y_min_normalized: float | None = ..., x_max_normalized: float | None = ..., y_max_normalized: float | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- x_min: int
the four corners of the box
- y_min: int
- x_max: int
- y_max: int
- confidence: float
the confidence of the detection
- class_name: str
label associated with the detected object
- x_min_normalized: float
the four corners of the box, in proportion to the respective image dimension
- y_min_normalized: float
- x_max_normalized: float
- y_max_normalized: float
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- WhichOneof(oneof_group: _WhichOneofArgType__x_max) _WhichOneofReturnType__x_max | None
- WhichOneof(oneof_group: _WhichOneofArgType__x_max_normalized) _WhichOneofReturnType__x_max_normalized | None
- WhichOneof(oneof_group: _WhichOneofArgType__x_min) _WhichOneofReturnType__x_min | None
- WhichOneof(oneof_group: _WhichOneofArgType__x_min_normalized) _WhichOneofReturnType__x_min_normalized | None
- WhichOneof(oneof_group: _WhichOneofArgType__y_max) _WhichOneofReturnType__y_max | None
- WhichOneof(oneof_group: _WhichOneofArgType__y_max_normalized) _WhichOneofReturnType__y_max_normalized | None
- WhichOneof(oneof_group: _WhichOneofArgType__y_min) _WhichOneofReturnType__y_min | None
- WhichOneof(oneof_group: _WhichOneofArgType__y_min_normalized) _WhichOneofReturnType__y_min_normalized | None
Returns the name of the field that is set inside a oneof group.
If no field is set, returns None.
- Parameters:
oneof_group (str) – the name of the oneof group to check.
- Returns:
The name of the group that is set, or None.
- Return type:
str or None
- Raises:
ValueError – no group with the given name exists
- class viam.gen.service.vision.v1.vision_pb2.GetClassificationsRequest(*, name: str = ..., image: bytes = ..., width: int = ..., height: int = ..., mime_type: str = ..., n: int = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- image: bytes
the image encoded as bytes
- width: int
the width of the image
- height: int
the height of the image
- mime_type: str
the actual MIME type of image
- n: int
the number of classifications desired
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetClassificationsRequest = GetClassificationsRequest
- class viam.gen.service.vision.v1.vision_pb2.GetClassificationsResponse(*, classifications: collections.abc.Iterable[Global___Classification] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- classifications() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Classification]
- type viam.gen.service.vision.v1.vision_pb2.Global___GetClassificationsResponse = GetClassificationsResponse
- class viam.gen.service.vision.v1.vision_pb2.GetClassificationsFromCameraRequest(*, name: str = ..., camera_name: str = ..., n: int = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- camera_name: str
the image encoded as bytes
- n: int
the number of classifications desired
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetClassificationsFromCameraRequest = GetClassificationsFromCameraRequest
- class viam.gen.service.vision.v1.vision_pb2.GetClassificationsFromCameraResponse(*, classifications: collections.abc.Iterable[Global___Classification] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- classifications() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Classification]
- type viam.gen.service.vision.v1.vision_pb2.Global___GetClassificationsFromCameraResponse = GetClassificationsFromCameraResponse
- class viam.gen.service.vision.v1.vision_pb2.Classification(*, class_name: str = ..., confidence: float = ...)
Bases:
google.protobuf.message.Messagethe general form of the output from a classifier
- class_name: str
the class name
- confidence: float
the confidence score of the classification
- type viam.gen.service.vision.v1.vision_pb2.Global___Classification = Classification
- class viam.gen.service.vision.v1.vision_pb2.GetObjectPointCloudsRequest(*, name: str = ..., camera_name: str = ..., mime_type: str = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
- camera_name: str
Name of a camera
- mime_type: str
Requested MIME type of response
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetObjectPointCloudsRequest = GetObjectPointCloudsRequest
- class viam.gen.service.vision.v1.vision_pb2.GetObjectPointCloudsResponse(*, mime_type: str = ..., objects: collections.abc.Iterable[common.v1.common_pb2.PointCloudObject] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- mime_type: str
Actual MIME type of response
- objects() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[common.v1.common_pb2.PointCloudObject]
List of objects in the scene
- type viam.gen.service.vision.v1.vision_pb2.Global___GetObjectPointCloudsResponse = GetObjectPointCloudsResponse
- class viam.gen.service.vision.v1.vision_pb2.GetPropertiesRequest(*, name: str = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___GetPropertiesRequest = GetPropertiesRequest
- class viam.gen.service.vision.v1.vision_pb2.CaptureAllFromCameraRequest(*, name: str = ..., camera_name: str = ..., return_image: bool = ..., return_classifications: bool = ..., return_detections: bool = ..., return_object_point_clouds: bool = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
name of the vision service
- camera_name: str
name of camera source to use as input
- return_image: bool
whether or not including the image in the response
- return_classifications: bool
whether or not including classifications in the response
- return_detections: bool
whether or not including detections in the response
- return_object_point_clouds: bool
whether or not including pcd in the response
- extra() google.protobuf.struct_pb2.Struct
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___CaptureAllFromCameraRequest = CaptureAllFromCameraRequest
- class viam.gen.service.vision.v1.vision_pb2.CaptureAllFromCameraResponse(*, image: component.camera.v1.camera_pb2.Image | None = ..., detections: collections.abc.Iterable[Global___Detection] | None = ..., classifications: collections.abc.Iterable[Global___Classification] | None = ..., objects: collections.abc.Iterable[common.v1.common_pb2.PointCloudObject] | None = ..., extra: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- detections() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Detection]
- classifications() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Classification]
- objects() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[common.v1.common_pb2.PointCloudObject]
- extra() google.protobuf.struct_pb2.Struct
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- type viam.gen.service.vision.v1.vision_pb2.Global___CaptureAllFromCameraResponse = CaptureAllFromCameraResponse
- class viam.gen.service.vision.v1.vision_pb2.GetPropertiesResponse(*, classifications_supported: bool = ..., detections_supported: bool = ..., object_point_clouds_supported: bool = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- classifications_supported: bool
whether or not classifactions are supported by the vision service
- detections_supported: bool
whether or not detections are supported by the vision service
- object_point_clouds_supported: bool
whether or not 3d segmentation is supported by the vision service
- type viam.gen.service.vision.v1.vision_pb2.Global___GetPropertiesResponse = GetPropertiesResponse