From fec195333cf4d52963dfc48b0ba1fdecb0e929fe Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 23 Feb 2022 13:26:53 +0100 Subject: [PATCH] Config: Improve faces options flag documentation #2062 --- internal/config/flags.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/config/flags.go b/internal/config/flags.go index 56be9b13e..6c188615d 100644 --- a/internal/config/flags.go +++ b/internal/config/flags.go @@ -486,49 +486,49 @@ var GlobalFlags = []cli.Flag{ }, cli.IntFlag{ Name: "face-size", - Usage: "minimum face size in `PIXELS`", + Usage: "minimum face size in `PIXELS` (20-10000)", Value: face.SizeThreshold, EnvVar: "PHOTOPRISM_FACE_SIZE", }, cli.Float64Flag{ Name: "face-score", - Usage: "minimum face `QUALITY` score", + Usage: "minimum face `QUALITY` score (1-100)", Value: face.ScoreThreshold, EnvVar: "PHOTOPRISM_FACE_SCORE", }, cli.IntFlag{ Name: "face-overlap", - Usage: "face area overlap threshold in `PERCENT`", + Usage: "face area overlap threshold in `PERCENT` (1-100)", Value: face.OverlapThreshold, EnvVar: "PHOTOPRISM_FACE_OVERLAP", }, cli.IntFlag{ Name: "face-cluster-size", - Usage: "minimum size of automatically clustered faces in `PIXELS`", + Usage: "minimum size of automatically clustered faces in `PIXELS` (20-10000)", Value: face.ClusterSizeThreshold, EnvVar: "PHOTOPRISM_FACE_CLUSTER_SIZE", }, cli.IntFlag{ Name: "face-cluster-score", - Usage: "minimum `QUALITY` score of automatically clustered faces", + Usage: "minimum `QUALITY` score of automatically clustered faces (1-100)", Value: face.ClusterScoreThreshold, EnvVar: "PHOTOPRISM_FACE_CLUSTER_SCORE", }, cli.IntFlag{ Name: "face-cluster-core", - Usage: "`NUMBER` of faces forming a cluster core", + Usage: "`NUMBER` of faces forming a cluster core (1-100)", Value: face.ClusterCore, EnvVar: "PHOTOPRISM_FACE_CLUSTER_CORE", }, cli.Float64Flag{ Name: "face-cluster-dist", - Usage: "similarity `DISTANCE` of faces forming a cluster core", + Usage: "similarity `DISTANCE` of faces forming a cluster core (0.1-1.5)", Value: face.ClusterDist, EnvVar: "PHOTOPRISM_FACE_CLUSTER_DIST", }, cli.Float64Flag{ Name: "face-match-dist", - Usage: "similarity `OFFSET` for matching faces with existing clusters", + Usage: "similarity `OFFSET` for matching faces with existing clusters (0.1-1.5)", Value: face.MatchDist, EnvVar: "PHOTOPRISM_FACE_MATCH_DIST", },