Iterate on a picture and get the rgb value of each pixel

i find it:

color = cap[y,x]
b,g,r = color[0],color[1],color[2]