bamwani / car-counting-and-speed-estimation-yolo-sort-python

This project imlements the following tasks in the project: 1. Vehicle counting, 2. Lane detection. 3.Lane change detection and 4.speed estimation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Original video file

valeriylo opened this issue · comments

Can you upload your original video file because I used the one from youtube and converted it to .avi and now there is weird error

[INFO] loading YOLO from disk... [INFO] 3668 total frames in video [INFO] single frame took 0.3317 seconds [INFO] estimated total time to finish: 1216.7966 Traceback (most recent call last): File "main.py", line 265, in <module> tracks = tracker.update(dets) File "/home//venv/speed/car-counting-and-speed-estimation-yolo-sort-python/code_and_output/sort.py", line 207, in update matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks) File "/home/venv/speed/car-counting-and-speed-estimation-yolo-sort-python/code_and_output/sort.py", line 146, in associate_detections_to_trackers if(d not in matched_indices[:,0]): TypeError: tuple indices must be integers or slices, not tuple

P.S. what IFs should I remove (line numbers) to detect only on first location

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.