kcg2015 / Vehicle-Detection-and-Tracking

Computer vision based vehicle detection and tracking using Tensorflow Object Detection API and Kalman-filtering
537 stars 193 forks source link

Getting an error when executing main.py with videos #12

Closed anzy0621 closed 5 years ago

anzy0621 commented 5 years ago

Hello, Thank you for this amazing tutorial! I really appreciate it! I was trying to execute your code with videos and I'm getting this particular error In line 43 of main.py in assign_detections_to_trackers IOU_mat[t,d] = box_iou2(trk,det) NameError: name 'box_iou2' is not defined

kcg2015 commented 5 years ago

Hi, @anzy0621 Please change line 13 to from helper import * or line 42 to IOU_mat[t, d] =helper.box_iou2(trk, det) to see if the code would run. Let me know.

Best,

Kyle

zhangyuan1997 commented 5 years ago

Hi, @anzy0621 Please change line 13 to from helper import * or line 42 to IOU_mat[t, d] =helper.box_iou2(trk, det) to see if the code would run. Let me know.

Best,

Kyle

I also meet this problem and i have solved it by your method. Thanks a lot.

anzy0621 commented 5 years ago

It worked, thank you!