People: Increase face score threshold for high-res images #22
This commit is contained in:
parent
e29e9977a9
commit
72c50ef2aa
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue