From b6e4aa23d0263160731e67f372cc3e65d324a967 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 23 Sep 2021 14:03:35 +0200 Subject: [PATCH] People: Add face dist to marker API JSON #22 --- internal/entity/marker_json.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/entity/marker_json.go b/internal/entity/marker_json.go index 3c811c4a4..706966539 100644 --- a/internal/entity/marker_json.go +++ b/internal/entity/marker_json.go @@ -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,