Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Mar 28, 2023
1 parent 28afb0d commit 69f1d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion c/tracking/objectTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
" --tracking flag to enable default tracker (IOU)\n" \
" --tracker=TRACKER enable tracking with 'IOU' or 'KLT'\n" \
" --tracker-min-frames=N the number of re-identified frames for a track to be considered valid (default: 3)\n" \
" --tracker-lost-frames=N number of consecutive lost frames before a track is removed (default: 15)\n" \
" --tracker-drop-frames=N number of consecutive lost frames before a track is dropped (default: 15)\n" \
" --tracker-overlap=N how much IOU overlap is required for a bounding box to be matched (default: 0.5)\n\n" \

/**
Expand Down
6 changes: 3 additions & 3 deletions docs/detectnet-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ There are other tracker settings you can change with the following command-line
objectTracker arguments:
--tracking flag to enable default tracker (IOU)
--tracker-min-frames=N the number of re-identified frames for a track to be considered valid (default: 3)
--tracker-lost-frames=N number of consecutive lost frames before a track is removed (default: 15)
--tracker-drop-frames=N number of consecutive lost frames before a track is dropped (default: 15)
--tracker-overlap=N how much IOU overlap is required for a bounding box to be matched (default: 0.5)
```

Expand Down Expand Up @@ -91,11 +91,11 @@ detections = net.Detect(img)
for detection in detections:
if detection.TrackStatus >= 0: # actively tracking
print(f"object {detection.TrackID} at ({detection.Left}, {detection.Top}) has been tracked for {detection.TrackFrames} frames")
else: # if tracking was lost, this object will be removed the next frame
else: # if tracking was lost, this object will be dropped the next frame
print(f"object {detection.TrackID} at ({detection.Left}, {detection.Top}) has lost tracking")
```

If the track was lost (`TrackStatus=-1`), that object will no longer be included in the detections array on subsequent frames.
If the track was lost (`TrackStatus=-1`), that object will be dropped and no longer be included in the detections array on subsequent frames.

<p align="right">Next | <b><a href="segnet-console-2.md">Semantic Segmentation</a></b>
<br/>
Expand Down

0 comments on commit 69f1d86

Please sign in to comment.