People: Add face dist to marker API JSON #22

This commit is contained in:
Michael Mayer 2021-09-23 14:03:35 +02:00
parent b4bcfe499c
commit b6e4aa23d0

View file

@ -25,6 +25,7 @@ func (m *Marker) MarshalJSON() ([]byte, error) {
Review bool
Invalid bool
FaceID string
FaceDist float64 `json:",omitempty"`
SubjUID string
SubjSrc string
X float32
@ -45,6 +46,7 @@ func (m *Marker) MarshalJSON() ([]byte, error) {
Review: m.MarkerReview,
Invalid: m.MarkerInvalid,
FaceID: m.FaceID,
FaceDist: m.FaceDist,
SubjUID: m.SubjUID,
SubjSrc: m.SubjSrc,
X: m.X,