I have a pixel from an OpenCV image with the RGB format in [r,g,b]. I would like to run a test so that if i find a color darker than [150,150,150] i stop a for loop.
This is what I have so far:
def test():
for l in range(y, y+h):
for d in range(x, x+w):
print(image[l,d][0])
if image[l,d] <= [150,150,150]:
return;
image[l,d] = [0,0,0]
Doesn't work though. Any ideas?