Original Image
I’m using Python 3 + SciKit-Image (Image Library)
Brew Installing Python 3
I selected this Library to use because it's one of the most active developed around + well documented API for Python.
scikit-image is an image processing library that implements algorithms and utilities for use in research, education and industry applications. It is released under the liberal Modified BSD open source license, provides a well-documented API in the Python programming language, and is developed by an active, international team of collaborators.
Just a quick note, make sure to install all these libraries before installing the SciKit-Image
To install SciKit, use this command
pip3 install -U scikit-image
or access here http://scikit-image.org/download.html
After installing the SciKit-Image Library, let’s start to play around with the image.
import skimage.io as io
from skimage.color import rgb2gray
#Open the Original Image
img = io.imread('assassins-creed-original.jpg')
#Apply the Grayscale Filter to the Image
img_grayscale = rgb2gray(img)
#Save the new Grayscale Image
io.imsave('assassins-creed-grayscale.jpg',img_grayscale)
Result Image
Thank you all for the support :D
Additional Notes
Other Resources:
Github: https://github.com/eliasrodrigues/image-python
Python:
If you’re on a Mac (using homebrew): “brew install python3”
If you’re on a Linux(ex: Ubuntu) : “apt-get install python3”
If you’re on Windows : “https://www.python.org/downloads/”