This commit is contained in:
Josh Hawkins 2025-01-31 13:51:11 -06:00
parent 9623bda393
commit 8ef88f7e73
2 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ False positives can also be reduced by filtering a detection based on its shape.
### Object Area ### Object Area
`min_area` and `max_area` filter on the area of an objects bounding box in pixels and can be used to reduce false positives that are outside the range of expected sizes. For example when a leaf is detected as a dog or when a large tree is detected as a person, these can be reduced by adding a `min_area` / `max_area` filter. `min_area` and `max_area` filter on the area of an objects bounding box and can be used to reduce false positives that are outside the range of expected sizes. For example when a leaf is detected as a dog or when a large tree is detected as a person, these can be reduced by adding a `min_area` / `max_area` filter. These values can either be in pixels or as a percentage of the frame (where 0.01 represents 1% of the frame and 0.99 represents 99% of the frame).
### Object Proportions ### Object Proportions

View File

@ -310,9 +310,11 @@ objects:
# Optional: filters to reduce false positives for specific object types # Optional: filters to reduce false positives for specific object types
filters: filters:
person: person:
# Optional: minimum width*height of the bounding box for the detected object (default: 0) # Optional: minimum size of the bounding box for the detected object (default: 0).
# Can be specified as an integer for width*height in pixels or as a decimal representing the percentage of the frame (0.0001 to 0.99).
min_area: 5000 min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000) # Optional: maximum size of the bounding box for the detected object (default: 24000000).
# Can be specified as an integer for width*height in pixels or as a decimal representing the percentage of the frame (0.0001 to 0.99).
max_area: 100000 max_area: 100000
# Optional: minimum width/height of the bounding box for the detected object (default: 0) # Optional: minimum width/height of the bounding box for the detected object (default: 0)
min_ratio: 0.5 min_ratio: 0.5