Files
moteva/server/internal/domain/design/object_recognition.go
T

30 lines
528 B
Go
Raw Normal View History

package design
import "context"
type NormalizedBox struct {
X float64
Y float64
Width float64
Height float64
}
type ObjectRecognitionRequest struct {
ImageBase64 string
ImageURL string
BoundingBox NormalizedBox
Lang string
Prompt string
}
type ObjectRecognition struct {
ID string
Label string
Confidence float64
BBox NormalizedBox
}
type ObjectRecognizer interface {
RecognizeObject(ctx context.Context, req ObjectRecognitionRequest) (ObjectRecognition, error)
}