1
Fork 0

Decrease face threshold

This commit is contained in:
viktorstrate 2021-02-22 22:29:42 +01:00
parent eaad404f55
commit f3ccc60e26
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
3 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ func (fd *FaceDetector) DetectFaces(media *models.Media) error {
}
func (fd *FaceDetector) classifyDescriptor(descriptor face.Descriptor) int32 {
return int32(fd.rec.ClassifyThreshold(descriptor, 0.3))
return int32(fd.rec.ClassifyThreshold(descriptor, 0.2))
}
func (fd *FaceDetector) classifyFace(face *face.Face, media *models.Media, imagePath string) error {

View File

@ -303,7 +303,7 @@ func getMediaType(path string) (*MediaType, error) {
func isPathMedia(mediaPath string, cache *AlbumScannerCache) bool {
mediaType, err := cache.GetMediaType(mediaPath)
if err != nil {
ScannerError("%s (%s)", err, mediaPath)
ScannerError("isPathMedia (%s): %s", mediaPath, err)
return false
}

View File

@ -184,7 +184,7 @@ func directoryContainsPhotos(rootPath string, cache *AlbumScannerCache) bool {
dirContent, err := ioutil.ReadDir(dirPath)
if err != nil {
ScannerError("Could not read directory: %s\n", err.Error())
ScannerError("Could not read directory (%s): %s\n", dirPath, err.Error())
return false
}