photoprism/internal/form/marker.go
Michael Mayer d767e50b37 People: Improve face clustering #22
Work in progress.
2021-08-12 12:05:10 +02:00

20 lines
489 B
Go

package form
import "github.com/ulule/deepcopier"
// Marker represents an image marker edit form.
type Marker struct {
RefUID string `json:"RefUID"`
RefSrc string `json:"RefSrc"`
MarkerSrc string `json:"Src"`
MarkerType string `json:"Type"`
MarkerScore int `json:"Score"`
MarkerInvalid bool `json:"Invalid"`
MarkerLabel string `json:"Label"`
}
func NewMarker(m interface{}) (f Marker, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}