photoprism/internal/service/faces.go
Michael Mayer a974b3a7ea People: Improve Facial Recognition Accuracy, Command, and UI #22
Work in progress. Performed refactoring along the way.
2021-08-13 20:04:59 +02:00

19 lines
273 B
Go

package service
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
}