The scripted in IPython Notebook provided a OpenCV2 based color detection and manupulation codes.
Say we would like to replace all WHITE pixels in the image to RED:
We are using the Euclidean Distance to select the most similar color from a pre-given color dictionary based on their RGB values.