Image Segmentation using K-Means To run the code: $ python segment.py -i path/to/image -n 4 where n is the number of segments (clusters) For more info on the code: Image Segmentation Using K-Mean