Mar-24-2019, 06:47 AM
You need to load an image into Python memory first. That could be done, e.g. using
So, if you have a png-file named
scikit-image
or Pillow
packages. So, if you have a png-file named
myfile.png
, you can get color at (0, 0) position as follows:from skimage import io img = io.imread("myfile.png") color_rgb = img[0, 0, :] print("Color of the (0, 0)-pixel is ", color_rgb)