od

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_object_detector_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetImage

func (x *Image) GetImage() []byte

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetX

func (x *Position) GetX() int32

func (*Position) GetY

func (x *Position) GetY() int32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type UnimplementedObjectDetectorServer

type UnimplementedObjectDetectorServer struct {
}

UnimplementedObjectDetectorServer must be embedded to have forward compatible implementations.

func (UnimplementedObjectDetectorServer) Detect

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL