dimanche 17 janvier 2021

check if value equal to a given values

I'm trying to check if one of the pixel values exist in the image, tried it a lot with zero result

if value or value2 or value3 or value4 == (248, 64, 64)or(250, 64, 64)or(83, 159, 254)or(255,255,255):
    print(value),print(value2),print(value3),print(value4)

it gives me this output:

(0, 33, 66)
(167, 126, 101)
(152, 178, 82)
(239, 174, 67)

Aucun commentaire:

Enregistrer un commentaire