photoprism/internal/search/faces_results.go

27 lines
913 B
Go
Raw Normal View History

package search
import (
"time"
"github.com/photoprism/photoprism/internal/entity"
)
// Face represents a face search result.
type Face struct {
ID string `json:"ID"`
FaceSrc string `json:"Src"`
FaceHidden bool `json:"Hidden"`
SubjUID string `json:"SubjUID"`
Samples int `json:"Samples"`
SampleRadius float64 `json:"SampleRadius"`
Collisions int `json:"Collisions"`
CollisionRadius float64 `json:"CollisionRadius"`
Marker *entity.Marker `json:"Marker,omitempty"`
MatchedAt *time.Time `json:"MatchedAt" yaml:"MatchedAt,omitempty"`
CreatedAt time.Time `json:"CreatedAt" yaml:"CreatedAt,omitempty"`
UpdatedAt time.Time `json:"UpdatedAt" yaml:"UpdatedAt,omitempty"`
}
// FaceResults represents face search results.
type FaceResults []Face