Documentation ¶
Index ¶
- Variables
- func RegisterObjectDetectorServer(s grpc.ServiceRegistrar, srv ObjectDetectorServer)
- type BoundingBox
- func (*BoundingBox) Descriptor() ([]byte, []int)deprecated
- func (x *BoundingBox) GetBottomRight() *Position
- func (x *BoundingBox) GetTopLeft() *Position
- func (*BoundingBox) ProtoMessage()
- func (x *BoundingBox) ProtoReflect() protoreflect.Message
- func (x *BoundingBox) Reset()
- func (x *BoundingBox) String() string
- type Image
- type ObjectDetectorClient
- type ObjectDetectorServer
- type Position
- type UnimplementedObjectDetectorServer
- type UnsafeObjectDetectorServer
Constants ¶
This section is empty.
Variables ¶
var File_object_detector_proto protoreflect.FileDescriptor
var ObjectDetector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "object_detector.ObjectDetector", HandlerType: (*ObjectDetectorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Detect", Handler: _ObjectDetector_Detect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "object_detector.proto", }
ObjectDetector_ServiceDesc is the grpc.ServiceDesc for ObjectDetector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterObjectDetectorServer ¶
func RegisterObjectDetectorServer(s grpc.ServiceRegistrar, srv ObjectDetectorServer)
Types ¶
type BoundingBox ¶
type BoundingBox struct { TopLeft *Position `protobuf:"bytes,1,opt,name=top_left,json=topLeft,proto3" json:"top_left,omitempty"` BottomRight *Position `protobuf:"bytes,2,opt,name=bottom_right,json=bottomRight,proto3" json:"bottom_right,omitempty"` // contains filtered or unexported fields }
func (*BoundingBox) Descriptor
deprecated
func (*BoundingBox) Descriptor() ([]byte, []int)
Deprecated: Use BoundingBox.ProtoReflect.Descriptor instead.
func (*BoundingBox) GetBottomRight ¶
func (x *BoundingBox) GetBottomRight() *Position
func (*BoundingBox) GetTopLeft ¶
func (x *BoundingBox) GetTopLeft() *Position
func (*BoundingBox) ProtoMessage ¶
func (*BoundingBox) ProtoMessage()
func (*BoundingBox) ProtoReflect ¶
func (x *BoundingBox) ProtoReflect() protoreflect.Message
func (*BoundingBox) Reset ¶
func (x *BoundingBox) Reset()
func (*BoundingBox) String ¶
func (x *BoundingBox) String() string
type Image ¶
type Image struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ObjectDetectorClient ¶
type ObjectDetectorClient interface {
Detect(ctx context.Context, in *Image, opts ...grpc.CallOption) (*BoundingBox, error)
}
ObjectDetectorClient is the client API for ObjectDetector 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 NewObjectDetectorClient ¶
func NewObjectDetectorClient(cc grpc.ClientConnInterface) ObjectDetectorClient
type ObjectDetectorServer ¶
type ObjectDetectorServer interface { Detect(context.Context, *Image) (*BoundingBox, error) // contains filtered or unexported methods }
ObjectDetectorServer is the server API for ObjectDetector service. All implementations must embed UnimplementedObjectDetectorServer for forward compatibility
type Position ¶
type Position struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type UnimplementedObjectDetectorServer ¶
type UnimplementedObjectDetectorServer struct { }
UnimplementedObjectDetectorServer must be embedded to have forward compatible implementations.
func (UnimplementedObjectDetectorServer) Detect ¶
func (UnimplementedObjectDetectorServer) Detect(context.Context, *Image) (*BoundingBox, error)
type UnsafeObjectDetectorServer ¶
type UnsafeObjectDetectorServer interface {
// contains filtered or unexported methods
}
UnsafeObjectDetectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ObjectDetectorServer will result in compilation errors.