Skip to content

OverflowError: cannot convert float infinity to integer #1

@albertyou2

Description

@albertyou2

hi @Grad-CSE2016

when I was ruining this command 'python TrackingPeople.py' with my .mp4 file,an error occured:
/home/sojoyoo/pedestrian_Grad-CSE2016/sort.py:68: RuntimeWarning: divide by zero encountered in divide
h = x[2]/w
Traceback (most recent call last):
File "TrackingPeople.py", line 66, in
x1,y1,x2,y2,n=int(tracker[0]),int(tracker[1]),int(tracker[2]),int(tracker[3]),int(tracker[4]),;
OverflowError: cannot convert float infinity to integer

I'm using python 2.7,opencv 3.1.0.And i run 'python TrackingPeople.py' directly with out any preproccess.
Am ' i missing sth?

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