Skip to content

Commit 1b8caf1

Browse files
committed
doc
1 parent e74ee0a commit 1b8caf1

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

mlapiconfig.ini

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,29 @@ model_sequence=object,face,alpr
7676
# was detected by ZM. Default no
7777
#only_triggered_zm_zones=no
7878

79-
80-
# If specified, will limit detected object size to this amount of
81-
# the total image size passed. Can help avoiding weird detections
82-
# You can specify as % or px. Default is px
83-
# Remember the image is resized to 416x416 internally. better
84-
# to keep in %
85-
max_detection_size=70%
79+
# if yes, last detection will be stored for monitors
80+
# and bounding boxes that match, along with labels
81+
# will be discarded for new detections. This may be helpful
82+
# in getting rid of static objects that get detected
83+
# due to some motion.
84+
match_past_detections=no
85+
86+
# The max difference in area between the objects if match_past_detection is on
87+
# can also be specified in px like 300px. Default is 5%. Basically, bounding boxes of the same
88+
# object can slightly differ ever so slightly between detection. Contributor @neillbell put in this PR
89+
# to calculate the difference in areas and based on his tests, 5% worked well. YMMV. Change it if needed.
90+
# Note: You can specify label/object specific max_diff_areas as well. If present, they override this value
91+
# example:
92+
# person_past_det_max_diff_area=5%
93+
# car_past_det_max_diff_area=5000px
94+
past_det_max_diff_area=5%
95+
96+
# this is the maximum size a detected object can have. You can specify it in px or % just like past_det_max_diff_area
97+
# This is pretty useful to eliminate bogus detection. In my case, depending on shadows and other lighting conditions,
98+
# I sometimes see "car" or "person" detected that covers most of my driveway view. That is practically impossible
99+
# and therefore I set mine to 70% because I know any valid detected objected cannot be larger than that area
100+
101+
max_detection_size=90%
86102

87103
# config for object
88104
[object]

0 commit comments

Comments
 (0)