diff --git a/example_test.go b/example_test.go index 8837b1c..61b2ec3 100644 --- a/example_test.go +++ b/example_test.go @@ -8,13 +8,14 @@ import ( "github.com/Kagami/go-face" ) +// Path to directory with models and test images. Here it's assumed it +// points to the clone. +const dataDir = "testdata" + // This example shows the basic usage of the package: create an // recognizer, recognize faces, classify them using few known ones. func Example_basic() { - // Path to directory with models and test images. Here it's assumed it - // points to the clone. - dataDir := "testdata" - // Now init the recognizer. + // Init the recognizer. rec, err := face.NewRecognizer(dataDir) if err != nil { log.Fatalf("Can't init face recognizer: %v", err)