People: Increase face score threshold for high-res images #22

This commit is contained in:
Michael Mayer 2021-06-01 18:57:41 +02:00
parent e29e9977a9
commit 72c50ef2aa

View file

@ -143,6 +143,10 @@ func (fd *Detector) Detect(fileName string) (faces []pigo.Detection, params pigo
Dim: cols, Dim: cols,
} }
if rows > 800 || cols > 800 {
fd.scoreThreshold += 9.0
}
params = pigo.CascadeParams{ params = pigo.CascadeParams{
MinSize: fd.minSize, MinSize: fd.minSize,
MaxSize: fd.maxSize, MaxSize: fd.maxSize,