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

Miultiple detections of same object #1

Open
AdhithyanSivakumar opened this issue Mar 28, 2023 · 0 comments
Open

Miultiple detections of same object #1

AdhithyanSivakumar opened this issue Mar 28, 2023 · 0 comments

Comments

@AdhithyanSivakumar
Copy link
Collaborator

When I used a test image, the person got detected 3 times, so while calculating distance, it is not possible to make sure of their class k = len(boxes)

i=0
dist = []

for i in range(0, k):
if (class_id[i]!=class_id[i+1]):
dist_btw = (boxes[i][0]-boxes[i+1][0])**2 +(boxes[i][1]-boxes[i+1][1])**2
dist.append(dist_btw)
else:
continue
i=i+1

but while using this part I get invalid index to scalar error

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

1 participant