Call Close in test and example

For better self-documentation.
This commit is contained in:
Kagami Hiiragi
2018-08-12 16:43:35 +03:00
parent 7aae0e5221
commit 45d735efbb
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ func Example_basic() {
if err != nil {
log.Fatalf("Can't init face recognizer: %v", err)
}
// Free the resources when you're finished.
defer rec.Close()
// Test image with 10 faces.
testImagePristin := filepath.Join(dataDir, "pristin.jpg")