Detection of certain pixels of a grayscale image
问题 I have this code that allows you to detect pixels of a vertain value. Right now I'm detecting pixels over a certain value (27). My idea would be to still detect them but to detect another pixel values (I want to detec pixels from 65 to 75, another interval of pixels). How can I do this? As you may see, T'm detecting grayscale images, so I have this same value for red, green and blue. Any idea to improve this program in order to work faster would be really appreciated. Sucha as using os.walk