Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The parameter of bbox width and length #33

Open
Keke-Long opened this issue Apr 21, 2023 · 1 comment
Open

The parameter of bbox width and length #33

Keke-Long opened this issue Apr 21, 2023 · 1 comment

Comments

@Keke-Long
Copy link

Keke-Long commented Apr 21, 2023

it seems the 224 lane of detect_and_track.py should be:
txt_str += " %f %f" % (np.abs(track.bbox_history[-1][0] - track.bbox_history[-1][2]) / im0.shape[1], np.abs(track.bbox_history[-1][1] - track.bbox_history[-1][3]) / im0.shape[0])

the first value divided by im0.shape[1].
im0.shape[1] is the width of the picture and track.bbox_history[-1][0] is the x of object.

@Ayaki22
Copy link

Ayaki22 commented Nov 8, 2023

@Keke-Long I'm experiencing a similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants