main
luanhailiang 2023-09-26 19:07:59 +08:00
parent e1c0e16619
commit 226cccbcf6
2 changed files with 3 additions and 3 deletions

2
app.py
View File

@ -102,7 +102,7 @@ def worker(id,source,region=None,stream=False):
print("Error opening video stream....")
break
continue
result = model.track(frame,show=False,stream=False,persist=True,device=int(id)%4,tracker='botsort.yaml')
result = model.track(frame,device=int(id)%4,tracker='botsort.yaml')
use += " track:"+str((time.time()*1000) - bgn)
del(ret)
del(frame)

View File

@ -6,13 +6,13 @@ track_high_thresh: 0.5 # threshold for the first association
track_low_thresh: 0.1 # threshold for the second association
new_track_thresh: 0.6 # threshold for init new track if the detection does not match any tracks
track_buffer: 30 # buffer to calculate the time when to remove tracks
match_thresh: 0.8 # threshold for matching tracks
match_thresh: 0.3 # threshold for matching tracks
# min_box_area: 10 # threshold for min box areas(for tracker evaluation, not used for now)
# mot20: False # for tracker evaluation(not used for now)
# BoT-SORT settings
gmc_method: sparseOptFlow # method of global motion compensation
# ReID model related thresh (not supported yet)
proximity_thresh: 0.5
proximity_thresh: 0.2
appearance_thresh: 0.25
with_reid: False