You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: