pixel

Detection of certain pixels of a grayscale image

走远了吗. 提交于 2020-12-13 07:03:36
问题 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

Detection of certain pixels of a grayscale image

为君一笑 提交于 2020-12-13 07:03:26
问题 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

Check if image is all white pixels with OpenCV

断了今生、忘了曾经 提交于 2020-07-22 02:51:38
问题 I am working on a script with OpenCV (Python) to split up an image into different sections in order to run OCR on each section on it later. I've got the script splitting up the source image into all the boxes I need, but it also comes along with a number of plain white images as well. I'm curious if there's a way to check if an image is only white pixels or not with OpenCV. I'm very new to this library, so any information on this would be helpful. Thanks! 回答1: Method #1: np.mean Calculate the

Trying to match pixel colour then click [C#]

左心房为你撑大大i 提交于 2020-07-09 19:15:10
问题 I need help getting my program to match the "stored" colour with the current one in the same location then click the mouse if it's the same. The grabbing of the colour works great so far in my code just unsure how to match a colour and a point, etc. Also a start/stop button for the loop would be nice. My code so far: using System; using System.Drawing; using System.Runtime.InteropServices; using System.Threading.Tasks; using System.Windows.Forms; namespace Pixel_detection_test_3 { public