Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterVisionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVisionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VisionServiceClient) error
- func RegisterVisionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVisionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VisionServiceServer) error
- func RegisterVisionServiceServer(s grpc.ServiceRegistrar, srv VisionServiceServer)
- type CaptureAllFromCameraRequest
- func (*CaptureAllFromCameraRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureAllFromCameraRequest) GetCameraName() string
- func (x *CaptureAllFromCameraRequest) GetExtra() *structpb.Struct
- func (x *CaptureAllFromCameraRequest) GetName() string
- func (x *CaptureAllFromCameraRequest) GetReturnClassifications() bool
- func (x *CaptureAllFromCameraRequest) GetReturnDetections() bool
- func (x *CaptureAllFromCameraRequest) GetReturnImage() bool
- func (x *CaptureAllFromCameraRequest) GetReturnObjectPointClouds() bool
- func (*CaptureAllFromCameraRequest) ProtoMessage()
- func (x *CaptureAllFromCameraRequest) ProtoReflect() protoreflect.Message
- func (x *CaptureAllFromCameraRequest) Reset()
- func (x *CaptureAllFromCameraRequest) String() string
- type CaptureAllFromCameraResponse
- func (*CaptureAllFromCameraResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureAllFromCameraResponse) GetClassifications() []*Classification
- func (x *CaptureAllFromCameraResponse) GetDetections() []*Detection
- func (x *CaptureAllFromCameraResponse) GetExtra() *structpb.Struct
- func (x *CaptureAllFromCameraResponse) GetImage() *v11.Image
- func (x *CaptureAllFromCameraResponse) GetObjects() []*v1.PointCloudObject
- func (*CaptureAllFromCameraResponse) ProtoMessage()
- func (x *CaptureAllFromCameraResponse) ProtoReflect() protoreflect.Message
- func (x *CaptureAllFromCameraResponse) Reset()
- func (x *CaptureAllFromCameraResponse) String() string
- type Classification
- func (*Classification) Descriptor() ([]byte, []int)deprecated
- func (x *Classification) GetClassName() string
- func (x *Classification) GetConfidence() float64
- func (*Classification) ProtoMessage()
- func (x *Classification) ProtoReflect() protoreflect.Message
- func (x *Classification) Reset()
- func (x *Classification) String() string
- type Detection
- func (*Detection) Descriptor() ([]byte, []int)deprecated
- func (x *Detection) GetClassName() string
- func (x *Detection) GetConfidence() float64
- func (x *Detection) GetXMax() int64
- func (x *Detection) GetXMin() int64
- func (x *Detection) GetYMax() int64
- func (x *Detection) GetYMin() int64
- func (*Detection) ProtoMessage()
- func (x *Detection) ProtoReflect() protoreflect.Message
- func (x *Detection) Reset()
- func (x *Detection) String() string
- type GetClassificationsFromCameraRequest
- func (*GetClassificationsFromCameraRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassificationsFromCameraRequest) GetCameraName() string
- func (x *GetClassificationsFromCameraRequest) GetExtra() *structpb.Struct
- func (x *GetClassificationsFromCameraRequest) GetN() int32
- func (x *GetClassificationsFromCameraRequest) GetName() string
- func (*GetClassificationsFromCameraRequest) ProtoMessage()
- func (x *GetClassificationsFromCameraRequest) ProtoReflect() protoreflect.Message
- func (x *GetClassificationsFromCameraRequest) Reset()
- func (x *GetClassificationsFromCameraRequest) String() string
- type GetClassificationsFromCameraResponse
- func (*GetClassificationsFromCameraResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassificationsFromCameraResponse) GetClassifications() []*Classification
- func (*GetClassificationsFromCameraResponse) ProtoMessage()
- func (x *GetClassificationsFromCameraResponse) ProtoReflect() protoreflect.Message
- func (x *GetClassificationsFromCameraResponse) Reset()
- func (x *GetClassificationsFromCameraResponse) String() string
- type GetClassificationsRequest
- func (*GetClassificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassificationsRequest) GetExtra() *structpb.Struct
- func (x *GetClassificationsRequest) GetHeight() int32
- func (x *GetClassificationsRequest) GetImage() []byte
- func (x *GetClassificationsRequest) GetMimeType() string
- func (x *GetClassificationsRequest) GetN() int32
- func (x *GetClassificationsRequest) GetName() string
- func (x *GetClassificationsRequest) GetWidth() int32
- func (*GetClassificationsRequest) ProtoMessage()
- func (x *GetClassificationsRequest) ProtoReflect() protoreflect.Message
- func (x *GetClassificationsRequest) Reset()
- func (x *GetClassificationsRequest) String() string
- type GetClassificationsResponse
- func (*GetClassificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassificationsResponse) GetClassifications() []*Classification
- func (*GetClassificationsResponse) ProtoMessage()
- func (x *GetClassificationsResponse) ProtoReflect() protoreflect.Message
- func (x *GetClassificationsResponse) Reset()
- func (x *GetClassificationsResponse) String() string
- type GetDetectionsFromCameraRequest
- func (*GetDetectionsFromCameraRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDetectionsFromCameraRequest) GetCameraName() string
- func (x *GetDetectionsFromCameraRequest) GetExtra() *structpb.Struct
- func (x *GetDetectionsFromCameraRequest) GetName() string
- func (*GetDetectionsFromCameraRequest) ProtoMessage()
- func (x *GetDetectionsFromCameraRequest) ProtoReflect() protoreflect.Message
- func (x *GetDetectionsFromCameraRequest) Reset()
- func (x *GetDetectionsFromCameraRequest) String() string
- type GetDetectionsFromCameraResponse
- func (*GetDetectionsFromCameraResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDetectionsFromCameraResponse) GetDetections() []*Detection
- func (*GetDetectionsFromCameraResponse) ProtoMessage()
- func (x *GetDetectionsFromCameraResponse) ProtoReflect() protoreflect.Message
- func (x *GetDetectionsFromCameraResponse) Reset()
- func (x *GetDetectionsFromCameraResponse) String() string
- type GetDetectionsRequest
- func (*GetDetectionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDetectionsRequest) GetExtra() *structpb.Struct
- func (x *GetDetectionsRequest) GetHeight() int64
- func (x *GetDetectionsRequest) GetImage() []byte
- func (x *GetDetectionsRequest) GetMimeType() string
- func (x *GetDetectionsRequest) GetName() string
- func (x *GetDetectionsRequest) GetWidth() int64
- func (*GetDetectionsRequest) ProtoMessage()
- func (x *GetDetectionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDetectionsRequest) Reset()
- func (x *GetDetectionsRequest) String() string
- type GetDetectionsResponse
- func (*GetDetectionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDetectionsResponse) GetDetections() []*Detection
- func (*GetDetectionsResponse) ProtoMessage()
- func (x *GetDetectionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDetectionsResponse) Reset()
- func (x *GetDetectionsResponse) String() string
- type GetObjectPointCloudsRequest
- func (*GetObjectPointCloudsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectPointCloudsRequest) GetCameraName() string
- func (x *GetObjectPointCloudsRequest) GetExtra() *structpb.Struct
- func (x *GetObjectPointCloudsRequest) GetMimeType() string
- func (x *GetObjectPointCloudsRequest) GetName() string
- func (*GetObjectPointCloudsRequest) ProtoMessage()
- func (x *GetObjectPointCloudsRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectPointCloudsRequest) Reset()
- func (x *GetObjectPointCloudsRequest) String() string
- type GetObjectPointCloudsResponse
- func (*GetObjectPointCloudsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectPointCloudsResponse) GetMimeType() string
- func (x *GetObjectPointCloudsResponse) GetObjects() []*v1.PointCloudObject
- func (*GetObjectPointCloudsResponse) ProtoMessage()
- func (x *GetObjectPointCloudsResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectPointCloudsResponse) Reset()
- func (x *GetObjectPointCloudsResponse) String() string
- type GetPropertiesRequest
- func (*GetPropertiesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPropertiesRequest) GetExtra() *structpb.Struct
- func (x *GetPropertiesRequest) GetName() string
- func (*GetPropertiesRequest) ProtoMessage()
- func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message
- func (x *GetPropertiesRequest) Reset()
- func (x *GetPropertiesRequest) String() string
- type GetPropertiesResponse
- func (*GetPropertiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPropertiesResponse) GetClassificationsSupported() bool
- func (x *GetPropertiesResponse) GetDetectionsSupported() bool
- func (x *GetPropertiesResponse) GetObjectPointCloudsSupported() bool
- func (*GetPropertiesResponse) ProtoMessage()
- func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPropertiesResponse) Reset()
- func (x *GetPropertiesResponse) String() string
- type UnimplementedVisionServiceServer
- func (UnimplementedVisionServiceServer) CaptureAllFromCamera(context.Context, *CaptureAllFromCameraRequest) (*CaptureAllFromCameraResponse, error)
- func (UnimplementedVisionServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
- func (UnimplementedVisionServiceServer) GetClassifications(context.Context, *GetClassificationsRequest) (*GetClassificationsResponse, error)
- func (UnimplementedVisionServiceServer) GetClassificationsFromCamera(context.Context, *GetClassificationsFromCameraRequest) (*GetClassificationsFromCameraResponse, error)
- func (UnimplementedVisionServiceServer) GetDetections(context.Context, *GetDetectionsRequest) (*GetDetectionsResponse, error)
- func (UnimplementedVisionServiceServer) GetDetectionsFromCamera(context.Context, *GetDetectionsFromCameraRequest) (*GetDetectionsFromCameraResponse, error)
- func (UnimplementedVisionServiceServer) GetObjectPointClouds(context.Context, *GetObjectPointCloudsRequest) (*GetObjectPointCloudsResponse, error)
- func (UnimplementedVisionServiceServer) GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error)
- type UnsafeVisionServiceServer
- type VisionServiceClient
- type VisionServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_service_vision_v1_vision_proto protoreflect.FileDescriptor
var VisionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "viam.service.vision.v1.VisionService", HandlerType: (*VisionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDetectionsFromCamera", Handler: _VisionService_GetDetectionsFromCamera_Handler, }, { MethodName: "GetDetections", Handler: _VisionService_GetDetections_Handler, }, { MethodName: "GetClassificationsFromCamera", Handler: _VisionService_GetClassificationsFromCamera_Handler, }, { MethodName: "GetClassifications", Handler: _VisionService_GetClassifications_Handler, }, { MethodName: "GetObjectPointClouds", Handler: _VisionService_GetObjectPointClouds_Handler, }, { MethodName: "GetProperties", Handler: _VisionService_GetProperties_Handler, }, { MethodName: "CaptureAllFromCamera", Handler: _VisionService_CaptureAllFromCamera_Handler, }, { MethodName: "DoCommand", Handler: _VisionService_DoCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/vision/v1/vision.proto", }
VisionService_ServiceDesc is the grpc.ServiceDesc for VisionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVisionServiceHandler ¶
func RegisterVisionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterVisionServiceHandler registers the http handlers for service VisionService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterVisionServiceHandlerClient ¶
func RegisterVisionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VisionServiceClient) error
RegisterVisionServiceHandlerClient registers the http handlers for service VisionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VisionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VisionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VisionServiceClient" to call the correct interceptors.
func RegisterVisionServiceHandlerFromEndpoint ¶
func RegisterVisionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterVisionServiceHandlerFromEndpoint is same as RegisterVisionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterVisionServiceHandlerServer ¶
func RegisterVisionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VisionServiceServer) error
RegisterVisionServiceHandlerServer registers the http handlers for service VisionService to "mux". UnaryRPC :call VisionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVisionServiceHandlerFromEndpoint instead.
func RegisterVisionServiceServer ¶
func RegisterVisionServiceServer(s grpc.ServiceRegistrar, srv VisionServiceServer)
Types ¶
type CaptureAllFromCameraRequest ¶ added in v0.1.297
type CaptureAllFromCameraRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // name of camera source to use as input CameraName string `protobuf:"bytes,2,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` // whether or not including the image in the response ReturnImage bool `protobuf:"varint,3,opt,name=return_image,json=returnImage,proto3" json:"return_image,omitempty"` // whether or not including classifications in the response ReturnClassifications bool `protobuf:"varint,4,opt,name=return_classifications,json=returnClassifications,proto3" json:"return_classifications,omitempty"` // whether or not including detections in the response ReturnDetections bool `protobuf:"varint,5,opt,name=return_detections,json=returnDetections,proto3" json:"return_detections,omitempty"` // whether or not including pcd in the response ReturnObjectPointClouds bool `` /* 135-byte string literal not displayed */ Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*CaptureAllFromCameraRequest) Descriptor
deprecated
added in
v0.1.297
func (*CaptureAllFromCameraRequest) Descriptor() ([]byte, []int)
Deprecated: Use CaptureAllFromCameraRequest.ProtoReflect.Descriptor instead.
func (*CaptureAllFromCameraRequest) GetCameraName ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetCameraName() string
func (*CaptureAllFromCameraRequest) GetExtra ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetExtra() *structpb.Struct
func (*CaptureAllFromCameraRequest) GetName ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetName() string
func (*CaptureAllFromCameraRequest) GetReturnClassifications ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetReturnClassifications() bool
func (*CaptureAllFromCameraRequest) GetReturnDetections ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetReturnDetections() bool
func (*CaptureAllFromCameraRequest) GetReturnImage ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetReturnImage() bool
func (*CaptureAllFromCameraRequest) GetReturnObjectPointClouds ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) GetReturnObjectPointClouds() bool
func (*CaptureAllFromCameraRequest) ProtoMessage ¶ added in v0.1.297
func (*CaptureAllFromCameraRequest) ProtoMessage()
func (*CaptureAllFromCameraRequest) ProtoReflect ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) ProtoReflect() protoreflect.Message
func (*CaptureAllFromCameraRequest) Reset ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) Reset()
func (*CaptureAllFromCameraRequest) String ¶ added in v0.1.297
func (x *CaptureAllFromCameraRequest) String() string
type CaptureAllFromCameraResponse ¶ added in v0.1.297
type CaptureAllFromCameraResponse struct { Image *v11.Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Detections []*Detection `protobuf:"bytes,2,rep,name=detections,proto3" json:"detections,omitempty"` Classifications []*Classification `protobuf:"bytes,3,rep,name=classifications,proto3" json:"classifications,omitempty"` Objects []*v1.PointCloudObject `protobuf:"bytes,4,rep,name=objects,proto3" json:"objects,omitempty"` Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*CaptureAllFromCameraResponse) Descriptor
deprecated
added in
v0.1.297
func (*CaptureAllFromCameraResponse) Descriptor() ([]byte, []int)
Deprecated: Use CaptureAllFromCameraResponse.ProtoReflect.Descriptor instead.
func (*CaptureAllFromCameraResponse) GetClassifications ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) GetClassifications() []*Classification
func (*CaptureAllFromCameraResponse) GetDetections ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) GetDetections() []*Detection
func (*CaptureAllFromCameraResponse) GetExtra ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) GetExtra() *structpb.Struct
func (*CaptureAllFromCameraResponse) GetImage ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) GetImage() *v11.Image
func (*CaptureAllFromCameraResponse) GetObjects ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) GetObjects() []*v1.PointCloudObject
func (*CaptureAllFromCameraResponse) ProtoMessage ¶ added in v0.1.297
func (*CaptureAllFromCameraResponse) ProtoMessage()
func (*CaptureAllFromCameraResponse) ProtoReflect ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) ProtoReflect() protoreflect.Message
func (*CaptureAllFromCameraResponse) Reset ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) Reset()
func (*CaptureAllFromCameraResponse) String ¶ added in v0.1.297
func (x *CaptureAllFromCameraResponse) String() string
type Classification ¶
type Classification struct { // the class name ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"` // the confidence score of the classification Confidence float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"` // contains filtered or unexported fields }
the general form of the output from a classifier
func (*Classification) Descriptor
deprecated
func (*Classification) Descriptor() ([]byte, []int)
Deprecated: Use Classification.ProtoReflect.Descriptor instead.
func (*Classification) GetClassName ¶
func (x *Classification) GetClassName() string
func (*Classification) GetConfidence ¶
func (x *Classification) GetConfidence() float64
func (*Classification) ProtoMessage ¶
func (*Classification) ProtoMessage()
func (*Classification) ProtoReflect ¶
func (x *Classification) ProtoReflect() protoreflect.Message
func (*Classification) Reset ¶
func (x *Classification) Reset()
func (*Classification) String ¶
func (x *Classification) String() string
type Detection ¶
type Detection struct { // the four corners of the box XMin *int64 `protobuf:"varint,1,opt,name=x_min,json=xMin,proto3,oneof" json:"x_min,omitempty"` YMin *int64 `protobuf:"varint,2,opt,name=y_min,json=yMin,proto3,oneof" json:"y_min,omitempty"` XMax *int64 `protobuf:"varint,3,opt,name=x_max,json=xMax,proto3,oneof" json:"x_max,omitempty"` YMax *int64 `protobuf:"varint,4,opt,name=y_max,json=yMax,proto3,oneof" json:"y_max,omitempty"` // the confidence of the detection Confidence float64 `protobuf:"fixed64,5,opt,name=confidence,proto3" json:"confidence,omitempty"` // label associated with the detected object ClassName string `protobuf:"bytes,6,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"` // contains filtered or unexported fields }
func (*Detection) Descriptor
deprecated
func (*Detection) GetClassName ¶
func (*Detection) GetConfidence ¶
func (*Detection) ProtoMessage ¶
func (*Detection) ProtoMessage()
func (*Detection) ProtoReflect ¶
func (x *Detection) ProtoReflect() protoreflect.Message
type GetClassificationsFromCameraRequest ¶
type GetClassificationsFromCameraRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the image encoded as bytes CameraName string `protobuf:"bytes,2,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` // the number of classifications desired N int32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetClassificationsFromCameraRequest) Descriptor
deprecated
func (*GetClassificationsFromCameraRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClassificationsFromCameraRequest.ProtoReflect.Descriptor instead.
func (*GetClassificationsFromCameraRequest) GetCameraName ¶
func (x *GetClassificationsFromCameraRequest) GetCameraName() string
func (*GetClassificationsFromCameraRequest) GetExtra ¶ added in v0.1.6
func (x *GetClassificationsFromCameraRequest) GetExtra() *structpb.Struct
func (*GetClassificationsFromCameraRequest) GetN ¶
func (x *GetClassificationsFromCameraRequest) GetN() int32
func (*GetClassificationsFromCameraRequest) GetName ¶
func (x *GetClassificationsFromCameraRequest) GetName() string
func (*GetClassificationsFromCameraRequest) ProtoMessage ¶
func (*GetClassificationsFromCameraRequest) ProtoMessage()
func (*GetClassificationsFromCameraRequest) ProtoReflect ¶
func (x *GetClassificationsFromCameraRequest) ProtoReflect() protoreflect.Message
func (*GetClassificationsFromCameraRequest) Reset ¶
func (x *GetClassificationsFromCameraRequest) Reset()
func (*GetClassificationsFromCameraRequest) String ¶
func (x *GetClassificationsFromCameraRequest) String() string
type GetClassificationsFromCameraResponse ¶
type GetClassificationsFromCameraResponse struct { Classifications []*Classification `protobuf:"bytes,1,rep,name=classifications,proto3" json:"classifications,omitempty"` // contains filtered or unexported fields }
func (*GetClassificationsFromCameraResponse) Descriptor
deprecated
func (*GetClassificationsFromCameraResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClassificationsFromCameraResponse.ProtoReflect.Descriptor instead.
func (*GetClassificationsFromCameraResponse) GetClassifications ¶
func (x *GetClassificationsFromCameraResponse) GetClassifications() []*Classification
func (*GetClassificationsFromCameraResponse) ProtoMessage ¶
func (*GetClassificationsFromCameraResponse) ProtoMessage()
func (*GetClassificationsFromCameraResponse) ProtoReflect ¶
func (x *GetClassificationsFromCameraResponse) ProtoReflect() protoreflect.Message
func (*GetClassificationsFromCameraResponse) Reset ¶
func (x *GetClassificationsFromCameraResponse) Reset()
func (*GetClassificationsFromCameraResponse) String ¶
func (x *GetClassificationsFromCameraResponse) String() string
type GetClassificationsRequest ¶
type GetClassificationsRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the image encoded as bytes Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // the width of the image Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` // the height of the image Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // the actual MIME type of image MimeType string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // the number of classifications desired N int32 `protobuf:"varint,6,opt,name=n,proto3" json:"n,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetClassificationsRequest) Descriptor
deprecated
func (*GetClassificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClassificationsRequest.ProtoReflect.Descriptor instead.
func (*GetClassificationsRequest) GetExtra ¶ added in v0.1.6
func (x *GetClassificationsRequest) GetExtra() *structpb.Struct
func (*GetClassificationsRequest) GetHeight ¶
func (x *GetClassificationsRequest) GetHeight() int32
func (*GetClassificationsRequest) GetImage ¶
func (x *GetClassificationsRequest) GetImage() []byte
func (*GetClassificationsRequest) GetMimeType ¶
func (x *GetClassificationsRequest) GetMimeType() string
func (*GetClassificationsRequest) GetN ¶
func (x *GetClassificationsRequest) GetN() int32
func (*GetClassificationsRequest) GetName ¶
func (x *GetClassificationsRequest) GetName() string
func (*GetClassificationsRequest) GetWidth ¶
func (x *GetClassificationsRequest) GetWidth() int32
func (*GetClassificationsRequest) ProtoMessage ¶
func (*GetClassificationsRequest) ProtoMessage()
func (*GetClassificationsRequest) ProtoReflect ¶
func (x *GetClassificationsRequest) ProtoReflect() protoreflect.Message
func (*GetClassificationsRequest) Reset ¶
func (x *GetClassificationsRequest) Reset()
func (*GetClassificationsRequest) String ¶
func (x *GetClassificationsRequest) String() string
type GetClassificationsResponse ¶
type GetClassificationsResponse struct { Classifications []*Classification `protobuf:"bytes,1,rep,name=classifications,proto3" json:"classifications,omitempty"` // contains filtered or unexported fields }
func (*GetClassificationsResponse) Descriptor
deprecated
func (*GetClassificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClassificationsResponse.ProtoReflect.Descriptor instead.
func (*GetClassificationsResponse) GetClassifications ¶
func (x *GetClassificationsResponse) GetClassifications() []*Classification
func (*GetClassificationsResponse) ProtoMessage ¶
func (*GetClassificationsResponse) ProtoMessage()
func (*GetClassificationsResponse) ProtoReflect ¶
func (x *GetClassificationsResponse) ProtoReflect() protoreflect.Message
func (*GetClassificationsResponse) Reset ¶
func (x *GetClassificationsResponse) Reset()
func (*GetClassificationsResponse) String ¶
func (x *GetClassificationsResponse) String() string
type GetDetectionsFromCameraRequest ¶
type GetDetectionsFromCameraRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // name of camera source to use as input CameraName string `protobuf:"bytes,2,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetDetectionsFromCameraRequest) Descriptor
deprecated
func (*GetDetectionsFromCameraRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDetectionsFromCameraRequest.ProtoReflect.Descriptor instead.
func (*GetDetectionsFromCameraRequest) GetCameraName ¶
func (x *GetDetectionsFromCameraRequest) GetCameraName() string
func (*GetDetectionsFromCameraRequest) GetExtra ¶ added in v0.1.6
func (x *GetDetectionsFromCameraRequest) GetExtra() *structpb.Struct
func (*GetDetectionsFromCameraRequest) GetName ¶
func (x *GetDetectionsFromCameraRequest) GetName() string
func (*GetDetectionsFromCameraRequest) ProtoMessage ¶
func (*GetDetectionsFromCameraRequest) ProtoMessage()
func (*GetDetectionsFromCameraRequest) ProtoReflect ¶
func (x *GetDetectionsFromCameraRequest) ProtoReflect() protoreflect.Message
func (*GetDetectionsFromCameraRequest) Reset ¶
func (x *GetDetectionsFromCameraRequest) Reset()
func (*GetDetectionsFromCameraRequest) String ¶
func (x *GetDetectionsFromCameraRequest) String() string
type GetDetectionsFromCameraResponse ¶
type GetDetectionsFromCameraResponse struct { // the bounding boxes and labels Detections []*Detection `protobuf:"bytes,1,rep,name=detections,proto3" json:"detections,omitempty"` // contains filtered or unexported fields }
func (*GetDetectionsFromCameraResponse) Descriptor
deprecated
func (*GetDetectionsFromCameraResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDetectionsFromCameraResponse.ProtoReflect.Descriptor instead.
func (*GetDetectionsFromCameraResponse) GetDetections ¶
func (x *GetDetectionsFromCameraResponse) GetDetections() []*Detection
func (*GetDetectionsFromCameraResponse) ProtoMessage ¶
func (*GetDetectionsFromCameraResponse) ProtoMessage()
func (*GetDetectionsFromCameraResponse) ProtoReflect ¶
func (x *GetDetectionsFromCameraResponse) ProtoReflect() protoreflect.Message
func (*GetDetectionsFromCameraResponse) Reset ¶
func (x *GetDetectionsFromCameraResponse) Reset()
func (*GetDetectionsFromCameraResponse) String ¶
func (x *GetDetectionsFromCameraResponse) String() string
type GetDetectionsRequest ¶
type GetDetectionsRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the image, encoded as bytes Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // the width of the image Width int64 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` // the height of the image Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // the actual MIME type of image MimeType string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetDetectionsRequest) Descriptor
deprecated
func (*GetDetectionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDetectionsRequest.ProtoReflect.Descriptor instead.
func (*GetDetectionsRequest) GetExtra ¶ added in v0.1.6
func (x *GetDetectionsRequest) GetExtra() *structpb.Struct
func (*GetDetectionsRequest) GetHeight ¶
func (x *GetDetectionsRequest) GetHeight() int64
func (*GetDetectionsRequest) GetImage ¶
func (x *GetDetectionsRequest) GetImage() []byte
func (*GetDetectionsRequest) GetMimeType ¶
func (x *GetDetectionsRequest) GetMimeType() string
func (*GetDetectionsRequest) GetName ¶
func (x *GetDetectionsRequest) GetName() string
func (*GetDetectionsRequest) GetWidth ¶
func (x *GetDetectionsRequest) GetWidth() int64
func (*GetDetectionsRequest) ProtoMessage ¶
func (*GetDetectionsRequest) ProtoMessage()
func (*GetDetectionsRequest) ProtoReflect ¶
func (x *GetDetectionsRequest) ProtoReflect() protoreflect.Message
func (*GetDetectionsRequest) Reset ¶
func (x *GetDetectionsRequest) Reset()
func (*GetDetectionsRequest) String ¶
func (x *GetDetectionsRequest) String() string
type GetDetectionsResponse ¶
type GetDetectionsResponse struct { // the bounding boxes and labels Detections []*Detection `protobuf:"bytes,1,rep,name=detections,proto3" json:"detections,omitempty"` // contains filtered or unexported fields }
func (*GetDetectionsResponse) Descriptor
deprecated
func (*GetDetectionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDetectionsResponse.ProtoReflect.Descriptor instead.
func (*GetDetectionsResponse) GetDetections ¶
func (x *GetDetectionsResponse) GetDetections() []*Detection
func (*GetDetectionsResponse) ProtoMessage ¶
func (*GetDetectionsResponse) ProtoMessage()
func (*GetDetectionsResponse) ProtoReflect ¶
func (x *GetDetectionsResponse) ProtoReflect() protoreflect.Message
func (*GetDetectionsResponse) Reset ¶
func (x *GetDetectionsResponse) Reset()
func (*GetDetectionsResponse) String ¶
func (x *GetDetectionsResponse) String() string
type GetObjectPointCloudsRequest ¶
type GetObjectPointCloudsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of a camera CameraName string `protobuf:"bytes,2,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` // Requested MIME type of response MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetObjectPointCloudsRequest) Descriptor
deprecated
func (*GetObjectPointCloudsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectPointCloudsRequest.ProtoReflect.Descriptor instead.
func (*GetObjectPointCloudsRequest) GetCameraName ¶
func (x *GetObjectPointCloudsRequest) GetCameraName() string
func (*GetObjectPointCloudsRequest) GetExtra ¶ added in v0.1.6
func (x *GetObjectPointCloudsRequest) GetExtra() *structpb.Struct
func (*GetObjectPointCloudsRequest) GetMimeType ¶
func (x *GetObjectPointCloudsRequest) GetMimeType() string
func (*GetObjectPointCloudsRequest) GetName ¶
func (x *GetObjectPointCloudsRequest) GetName() string
func (*GetObjectPointCloudsRequest) ProtoMessage ¶
func (*GetObjectPointCloudsRequest) ProtoMessage()
func (*GetObjectPointCloudsRequest) ProtoReflect ¶
func (x *GetObjectPointCloudsRequest) ProtoReflect() protoreflect.Message
func (*GetObjectPointCloudsRequest) Reset ¶
func (x *GetObjectPointCloudsRequest) Reset()
func (*GetObjectPointCloudsRequest) String ¶
func (x *GetObjectPointCloudsRequest) String() string
type GetObjectPointCloudsResponse ¶
type GetObjectPointCloudsResponse struct { // Actual MIME type of response MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // List of objects in the scene Objects []*v1.PointCloudObject `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"` // contains filtered or unexported fields }
func (*GetObjectPointCloudsResponse) Descriptor
deprecated
func (*GetObjectPointCloudsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectPointCloudsResponse.ProtoReflect.Descriptor instead.
func (*GetObjectPointCloudsResponse) GetMimeType ¶
func (x *GetObjectPointCloudsResponse) GetMimeType() string
func (*GetObjectPointCloudsResponse) GetObjects ¶
func (x *GetObjectPointCloudsResponse) GetObjects() []*v1.PointCloudObject
func (*GetObjectPointCloudsResponse) ProtoMessage ¶
func (*GetObjectPointCloudsResponse) ProtoMessage()
func (*GetObjectPointCloudsResponse) ProtoReflect ¶
func (x *GetObjectPointCloudsResponse) ProtoReflect() protoreflect.Message
func (*GetObjectPointCloudsResponse) Reset ¶
func (x *GetObjectPointCloudsResponse) Reset()
func (*GetObjectPointCloudsResponse) String ¶
func (x *GetObjectPointCloudsResponse) String() string
type GetPropertiesRequest ¶ added in v0.1.296
type GetPropertiesRequest struct { // name of the vision service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetPropertiesRequest) Descriptor
deprecated
added in
v0.1.296
func (*GetPropertiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPropertiesRequest.ProtoReflect.Descriptor instead.
func (*GetPropertiesRequest) GetExtra ¶ added in v0.1.296
func (x *GetPropertiesRequest) GetExtra() *structpb.Struct
func (*GetPropertiesRequest) GetName ¶ added in v0.1.296
func (x *GetPropertiesRequest) GetName() string
func (*GetPropertiesRequest) ProtoMessage ¶ added in v0.1.296
func (*GetPropertiesRequest) ProtoMessage()
func (*GetPropertiesRequest) ProtoReflect ¶ added in v0.1.296
func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message
func (*GetPropertiesRequest) Reset ¶ added in v0.1.296
func (x *GetPropertiesRequest) Reset()
func (*GetPropertiesRequest) String ¶ added in v0.1.296
func (x *GetPropertiesRequest) String() string
type GetPropertiesResponse ¶ added in v0.1.296
type GetPropertiesResponse struct { // whether or not classifactions are supported by the vision service ClassificationsSupported bool `` /* 134-byte string literal not displayed */ // whether or not detections are supported by the vision service DetectionsSupported bool `protobuf:"varint,2,opt,name=detections_supported,json=detectionsSupported,proto3" json:"detections_supported,omitempty"` // whether or not 3d segmentation is supported by the vision service ObjectPointCloudsSupported bool `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetPropertiesResponse) Descriptor
deprecated
added in
v0.1.296
func (*GetPropertiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPropertiesResponse.ProtoReflect.Descriptor instead.
func (*GetPropertiesResponse) GetClassificationsSupported ¶ added in v0.1.296
func (x *GetPropertiesResponse) GetClassificationsSupported() bool
func (*GetPropertiesResponse) GetDetectionsSupported ¶ added in v0.1.296
func (x *GetPropertiesResponse) GetDetectionsSupported() bool
func (*GetPropertiesResponse) GetObjectPointCloudsSupported ¶ added in v0.1.296
func (x *GetPropertiesResponse) GetObjectPointCloudsSupported() bool
func (*GetPropertiesResponse) ProtoMessage ¶ added in v0.1.296
func (*GetPropertiesResponse) ProtoMessage()
func (*GetPropertiesResponse) ProtoReflect ¶ added in v0.1.296
func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message
func (*GetPropertiesResponse) Reset ¶ added in v0.1.296
func (x *GetPropertiesResponse) Reset()
func (*GetPropertiesResponse) String ¶ added in v0.1.296
func (x *GetPropertiesResponse) String() string
type UnimplementedVisionServiceServer ¶
type UnimplementedVisionServiceServer struct { }
UnimplementedVisionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVisionServiceServer) CaptureAllFromCamera ¶ added in v0.1.297
func (UnimplementedVisionServiceServer) CaptureAllFromCamera(context.Context, *CaptureAllFromCameraRequest) (*CaptureAllFromCameraResponse, error)
func (UnimplementedVisionServiceServer) DoCommand ¶ added in v0.1.80
func (UnimplementedVisionServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
func (UnimplementedVisionServiceServer) GetClassifications ¶
func (UnimplementedVisionServiceServer) GetClassifications(context.Context, *GetClassificationsRequest) (*GetClassificationsResponse, error)
func (UnimplementedVisionServiceServer) GetClassificationsFromCamera ¶
func (UnimplementedVisionServiceServer) GetClassificationsFromCamera(context.Context, *GetClassificationsFromCameraRequest) (*GetClassificationsFromCameraResponse, error)
func (UnimplementedVisionServiceServer) GetDetections ¶
func (UnimplementedVisionServiceServer) GetDetections(context.Context, *GetDetectionsRequest) (*GetDetectionsResponse, error)
func (UnimplementedVisionServiceServer) GetDetectionsFromCamera ¶
func (UnimplementedVisionServiceServer) GetDetectionsFromCamera(context.Context, *GetDetectionsFromCameraRequest) (*GetDetectionsFromCameraResponse, error)
func (UnimplementedVisionServiceServer) GetObjectPointClouds ¶
func (UnimplementedVisionServiceServer) GetObjectPointClouds(context.Context, *GetObjectPointCloudsRequest) (*GetObjectPointCloudsResponse, error)
func (UnimplementedVisionServiceServer) GetProperties ¶ added in v0.1.296
func (UnimplementedVisionServiceServer) GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error)
type UnsafeVisionServiceServer ¶
type UnsafeVisionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVisionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VisionServiceServer will result in compilation errors.
type VisionServiceClient ¶
type VisionServiceClient interface { // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector GetDetectionsFromCamera(ctx context.Context, in *GetDetectionsFromCameraRequest, opts ...grpc.CallOption) (*GetDetectionsFromCameraResponse, error) // GetDetections will return a list of detections in the next image given the image bytes and a detector GetDetections(ctx context.Context, in *GetDetectionsRequest, opts ...grpc.CallOption) (*GetDetectionsResponse, error) // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier GetClassificationsFromCamera(ctx context.Context, in *GetClassificationsFromCameraRequest, opts ...grpc.CallOption) (*GetClassificationsFromCameraResponse, error) // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier GetClassifications(ctx context.Context, in *GetClassificationsRequest, opts ...grpc.CallOption) (*GetClassificationsResponse, error) // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, // as well as the 3-vector center of each of the found objects. // A specific MIME type can be requested but may not necessarily be the same one returned. GetObjectPointClouds(ctx context.Context, in *GetObjectPointCloudsRequest, opts ...grpc.CallOption) (*GetObjectPointCloudsResponse, error) // GetProperties will return the properties as booleans given the name of the vision service GetProperties(ctx context.Context, in *GetPropertiesRequest, opts ...grpc.CallOption) (*GetPropertiesResponse, error) CaptureAllFromCamera(ctx context.Context, in *CaptureAllFromCameraRequest, opts ...grpc.CallOption) (*CaptureAllFromCameraResponse, error) // DoCommand sends/receives arbitrary commands DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error) }
VisionServiceClient is the client API for VisionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVisionServiceClient ¶
func NewVisionServiceClient(cc grpc.ClientConnInterface) VisionServiceClient
type VisionServiceServer ¶
type VisionServiceServer interface { // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector GetDetectionsFromCamera(context.Context, *GetDetectionsFromCameraRequest) (*GetDetectionsFromCameraResponse, error) // GetDetections will return a list of detections in the next image given the image bytes and a detector GetDetections(context.Context, *GetDetectionsRequest) (*GetDetectionsResponse, error) // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier GetClassificationsFromCamera(context.Context, *GetClassificationsFromCameraRequest) (*GetClassificationsFromCameraResponse, error) // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier GetClassifications(context.Context, *GetClassificationsRequest) (*GetClassificationsResponse, error) // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, // as well as the 3-vector center of each of the found objects. // A specific MIME type can be requested but may not necessarily be the same one returned. GetObjectPointClouds(context.Context, *GetObjectPointCloudsRequest) (*GetObjectPointCloudsResponse, error) // GetProperties will return the properties as booleans given the name of the vision service GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error) CaptureAllFromCamera(context.Context, *CaptureAllFromCameraRequest) (*CaptureAllFromCameraResponse, error) // DoCommand sends/receives arbitrary commands DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error) // contains filtered or unexported methods }
VisionServiceServer is the server API for VisionService service. All implementations must embed UnimplementedVisionServiceServer for forward compatibility