Skip to content

yhsmiley/bytetrack_realtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ByteTrack

Introduction

A realtime adaptation of ByteTrack.

Dependencies

  • Python
  • Numpy, pip install numpy

Install

  • clone this repo & install bytetrack-realtime as a python package using pip or as an editable package if you like (-e flag)
cd bytetrack_realtime && pip3 install .

Run

Refer to an example here to use ScaledYOLOv4 detector with ByteTrack. You can also use any other detectors as long as the input format to the tracker is the same.

Example usage:

from bytetrack_realtime.byte_tracker import ByteTracker
tracker = ByteTracker(track_thresh=0.6, track_buffer=30, match_thresh=0.9)
bbs = object_detector.detect(frame)
tracks = tracker.update(detections=bbs)
for track in tracks:
   track_id = track.track_id
   ltrb = track.ltrb
   score = track.score
   det_class = track.det_class

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages