Checking opencv version,Tolerance

1.Checking version of opencv and applying kmeans accordingly.
2.Decreased Tolerance level in kmeans from 0.8 to 0.0001 for better accuracy.