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

Error while executing code.

chetan1836 opened this issue · comments

When I run the code I'm getting this error.
Traceback (most recent call last): File "F:/MyProjects/TensorFlow/car-counting-and-speed-estimation-yolo-sort-python/code_and_output/main.py", line 265, in <module> tracks = tracker.update(dets)

File "F:\MyProjects\TensorFlow\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 "F:\MyProjects\TensorFlow\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

Any solutions.

The “TypeError: list indices must be integers, not tuple” error occurs when you specify a tuple as an index value at the end of a list. To solve this problem, make sure that any lists in a list of lists are separated using commas.

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.

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.