Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

probably, findNonZero() might help, like:

red_channel = img[:,:,0]
points = cv2.findNonZero(red_channel) # x,y

probably, findNonZero() might help, like:

red_channel = img[:,:,0]
points = cv2.findNonZero(red_channel) # x,y
x,y order