mirror of
https://github.com/esimov/pigo.git
synced 2025-11-02 20:24:02 +08:00
Adapted the examples to the new method invokation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user