py-faster-rcnn icon indicating copy to clipboard operation
py-faster-rcnn copied to clipboard

TypeError: slice indices must be integers or None or have an __index__ method

Open fatiha92 opened this issue 6 years ago • 0 comments

i have this error:

Traceback (most recent call last): File "abcd_contour.py", line 32, in letter = im[y:y+h,x:x+w] TypeError: slice indices must be integers or None or have an index method

code:

#mask = np.zeros(im.shape,np.uint8) mean_val = cv2.mean(im) letter = im[y:y+h,x:x+w] print(mean_val)

Any help?? python 3.6 numpy 1.13.3

fatiha92 avatar May 29 '19 08:05 fatiha92