ifzhang / ByteTrack

[ECCV 2022] ByteTrack: Multi-Object Tracking by Associating Every Detection Box
MIT License
4.69k stars 890 forks source link

tools/demo_track.py line:198 vertical = tlwh[2] / tlwh[3] > args.aspect_ratio_thresh #279

Open Kerry678231 opened 1 year ago

Kerry678231 commented 1 year ago

tools/demo_track.py line:198 vertical = tlwh[2] / tlwh[3] > args.aspect_ratio_thresh i read above code,a little doubt; if w/h > aspect_ratio_thresh, it can be horizontal, not vertical; am I understanding correctly?

horizontal = tlwh[2] / tlwh[3] > args.aspect_ratio_thresh if tlwh[2] * tlwh[3] > args.min_box_area and not horizontal:

vertical = tlwh[3] / tlwh[2] > args.aspect_ratio_thresh if tlwh[2] * tlwh[3] > args.min_box_area and vertical: