Changes:

1.Changes  cv2.KMEANS_RANDOM_CENTERS to cv2.KMEANS_PP_CENTERS which uses kmeans++ Algorithm, helps in choosing more     appropriate centers.
2.Divided objs into two parts and separately run kmeans on both.