2021-09-18 15:32:39 +02:00
|
|
|
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"`
|
2021-09-18 20:41:30 +02:00
|
|
|
FaceHidden bool `json:"Hidden"`
|
2021-09-18 15:32:39 +02:00
|
|
|
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
|