Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found an answer here link

b,g,r = cv2.split(img[x,y])

or

b,g,r,a=cv2.split(img[x,y])

Since there's a warning about using split here link

numpy array has been mentioned as a good alternative

if img[98,68][1]==255 :

0=Blue, 1=Green and 2=Red