TypeError tuple indices must be integers or slices not tuple

0 votes
Traceback (most recent call last):
  File "main.py", line 180, in <module>
    tracks = tracker.update(dets)
  File "C:\Users\hp\PycharmProjects\vehicle-counting-using-python-yolo-master\sort.py", line 202, in update
    matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks)
  File "C:\Users\hp\PycharmProjects\vehicle-counting-using-python-yolo-master\sort.py", line 143, in associate_detections_to_trackers
    if(d not in matched_indices[:,0]):
TypeError: tuple indices must be integers or slices, not tuple

how should i need to progess
Aug 25, 2020 in Python by Peddabudi srikanth
• 120 points
2,425 views

Hi, @Peddabudl Srikanth,

The error means you’re doing index lookup on a tuple using another tuple. Please try to post your whole code to let us resolve your error faster. 

Check your code for stray commas.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
3 answers
0 votes
0 answers

TypeError: tuple indices must be integers or slices, not tuple

Im a begginer and im trying to ...READ MORE

Oct 18, 2020 in Python by peyman
• 120 points

edited Oct 19, 2020 by Gitika 257 views
0 votes
1 answer

i am getting this error "TypeError: tuple indices must be integers or slices, not Database"

Hi, @Shabaj, Regarding your query, I hope this ...READ MORE

answered Dec 10, 2020 in Python by Gitika
• 65,870 points
231 views
0 votes
1 answer

TypeError: list indices must be integers or slices, not str

Hi@akhtar, As we know that the index of ...READ MORE

answered Oct 14, 2020 in Python by MD
• 95,160 points
7,907 views
+1 vote
1 answer

Can anyone help me with this error: TypeError: list indices must be integers or slices, not str

Hi, @Varshap  It’s a TypeError, which tells us ...READ MORE

answered Nov 5, 2020 in Python by anonymous
• 65,870 points
1,028 views
0 votes
1 answer

Python error "TypeError: string indices must be integers, not str"

Hey @Dipti email_s.append(email_1["email_address"]) This is the list on ...READ MORE

answered Jul 5, 2019 in Python by Jinu
21,091 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,032 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,555 views