1 | initial version |
probably, findNonZero() might help, like:
red_channel = img[:,:,0]
points = cv2.findNonZero(red_channel) # x,y
2 | No.2 Revision |
probably, findNonZero() might help, like:
red_channel = img[:,:,0]
points = cv2.findNonZero(red_channel) # x,y
x,y order