2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2021-08-13 20:04:59 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var onceFaces sync.Once
|
|
|
|
|
|
|
|
func initFaces() {
|
|
|
|
services.Faces = photoprism.NewFaces(Config())
|
|
|
|
}
|
|
|
|
|
|
|
|
func Faces() *photoprism.Faces {
|
|
|
|
onceFaces.Do(initFaces)
|
|
|
|
|
|
|
|
return services.Faces
|
|
|
|
}
|