The purpose is to detect pixels in the region ( Only black and white ), The problem now is that the following program seems to print results only when the area is black or white , But what I want is to print the result as long as one pixel in the region is detected to be white or black
Novice Xiaobai , Do you have a big brother to help , thank you !
There is something wrong with your judgment , Should use the
if a==(255,255,255):
break
else:
for b in ...
if b==(255,255,255):
break