Adapted the examples to the new method invokation

This commit is contained in:
esimov
2019-10-14 12:23:23 +03:00
parent 3bcbd8862e
commit 47ba906ecd
3 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ func FindFaces(pixels []uint8) uintptr {
Scale: float32(results[i].Scale) * 0.4,
Perturbs: 50,
}
det := puplocClassifier.RunDetector(*puploc, *imageParams, 0.0)
det := puplocClassifier.RunDetector(*puploc, *imageParams, 0.0, false)
if det.Row > 0 && det.Col > 0 {
dets[i] = append(dets[i], det.Row, det.Col, int(det.Scale), int(results[i].Q), 0)
}
@@ -51,7 +51,7 @@ func FindFaces(pixels []uint8) uintptr {
Perturbs: 50,
}
det = puplocClassifier.RunDetector(*puploc, *imageParams, 0.0)
det = puplocClassifier.RunDetector(*puploc, *imageParams, 0.0, false)
if det.Row > 0 && det.Col > 0 {
dets[i] = append(dets[i], det.Row, det.Col, int(det.Scale), int(results[i].Q), 0)
}