Skip to content

Miultiple detections of same object #1

@AdhithyanSivakumar

Description

@AdhithyanSivakumar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions