Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadBoundingBBox = fmt.Errorf("bad bounding box") ErrBadDetections = fmt.Errorf("bad detections") )
Functions ¶
func NewMicroserice ¶
func NewMicroserice(engine *license_plate_recognition.LPRQueue) (*grpc.Server, error)
Types ¶
type Microservice ¶
type Microservice struct { protos.ServiceServer // contains filtered or unexported fields }
func (*Microservice) ProcessImage ¶
func (ts *Microservice) ProcessImage(ctx context.Context, in *protos.LPRRequest) (*protos.LPRResponse, error)
ProcessImage is to match gRPC server interface. Provides business logic for processing image
func (*Microservice) SendToQueue ¶
func (microservice *Microservice) SendToQueue(req *license_plate_recognition.QueueRequest) (*license_plate_recognition.QueueResponse, error)
microservice is just an alias to internal implementation
Click to show internal directories.
Click to hide internal directories.