The process is pretty simple — I want to take an image as input, and compare every pixel in the image against a specified color. Then return the percentage of pixels that match the color.
I’m sure this is very simple to implement, I just need some kind of guidance as to which library to use, whether there are any tutorials on image processing by pixels. I haven’t really found anything and would love any help.
Also, if this is easier in another language, I wouldn’t mind using that either. I’m just most proficient with Java
This is doable with the standard Java
BufferedImageclass.getHeight()andgetWidth()do what you’d expect allowing full scanning.ImageIOis a convenience class for usingImageReaders (and writers).