26 lines
313 B
Go
26 lines
313 B
Go
package photoprism
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
)
|
|
|
|
func TestFaces_Match(t *testing.T) {
|
|
c := config.TestConfig()
|
|
|
|
m := NewFaces(c)
|
|
|
|
opt := FacesOptions{
|
|
Force: true,
|
|
Threshold: 1,
|
|
}
|
|
|
|
r, err := m.Match(opt)
|
|
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
t.Log(r)
|
|
}
|