People: Add face clustering worker #22

Work in progress. No performance optimizations yet.
This commit is contained in:
Michael Mayer
2021-08-12 04:54:20 +02:00
parent 733b84a03b
commit 1fc4ef123b
22 changed files with 637 additions and 65 deletions

View File

@@ -9,7 +9,7 @@ import (
func TestNewMarker(t *testing.T) {
t.Run("success", func(t *testing.T) {
var m = struct {
RefUID string
Ref string
RefSrc string
MarkerSrc string
MarkerType string
@@ -17,7 +17,7 @@ func TestNewMarker(t *testing.T) {
MarkerInvalid bool
MarkerLabel string
}{
RefUID: "3h59wvth837b5vyiub35",
Ref: "3h59wvth837b5vyiub35",
RefSrc: "meta",
MarkerSrc: "image",
MarkerType: "Face",
@@ -32,7 +32,7 @@ func TestNewMarker(t *testing.T) {
t.Fatal(err)
}
assert.Equal(t, "3h59wvth837b5vyiub35", f.RefUID)
assert.Equal(t, "3h59wvth837b5vyiub35", f.Ref)
assert.Equal(t, "meta", f.RefSrc)
assert.Equal(t, "image", f.MarkerSrc)
assert.Equal(t, "Face", f.MarkerType)