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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcObjectDetector

type GrpcObjectDetector struct {
	// contains filtered or unexported fields
}

GrpcObjectDetector implements ObjectDetector interface{}

func NewGrpcObjectDetector

func NewGrpcObjectDetector(stub od.ObjectDetectorClient) *GrpcObjectDetector

NewGrpcObjectDetector returns a new GrpcObjectDetector

func (*GrpcObjectDetector) Detect

func (v *GrpcObjectDetector) Detect(ctx context.Context, image []byte) (*Position, *Position, error)

Detect implements ObjectDetector interface{}

type ObjectDetector

type ObjectDetector interface {
	Detect(ctx context.Context, image []byte) (*Position, *Position, error)
}

type Position

type Position struct {
	X int
	Y int
}

Jump to

Keyboard shortcuts

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