cricket-umpire-assistance icon indicating copy to clipboard operation
cricket-umpire-assistance copied to clipboard

IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

Open aydenbottos opened this issue 5 years ago • 1 comments

Traceback (most recent call last): File "ballTracking.py", line 416, in found = findRadius(img_ball, current_ballPos[0], current_ballPos[1], frame_no) File "ballTracking.py", line 84, in findRadius avg_color_ball += blurredFrame[frame_center_y+dy][frame_center_x+dx] IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

I converted the script to Python 3. This error persists on other videos too.

aydenbottos avatar Oct 29 '19 10:10 aydenbottos

I also tried on Python 2 and it didn't work either.

aydenbottos avatar Oct 30 '19 21:10 aydenbottos