how to extract color features from an image in python. threshold (img_np,