Fix example

GoDoc displays it wrong currently.
This commit is contained in:
Kagami Hiiragi
2018-07-31 13:06:45 +03:00
parent 45c2b3ae98
commit b4526d004a

View File

@@ -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 <https://github.com/Kagami/go-face-testdata> 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 <https://github.com/Kagami/go-face-testdata> 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)