خرید بک لینک

Vote count: 1

I am using SKLEARN.CLUSTER and KMEANS to identify most dominant color in image using clustering algorithm (KMEANS).

Below code is used for cluster and histogram, In "clt" there is no way to tag or display the "BLUE" or most dominant color name into an image.

cluster = KMeans(n_clusters = 7)
cluster.fit(image)
h = utils.centroid_histogram(cluster)
print(cluster.cluster_centers_, h)
bar = utils.plot_colors(h, cluster.cluster_centers_)

The result is attached with this question,

Now my Question is: I want to tag a color name (BLUE) to the specific image. Because the BLUE is dominant color.

How I tag this "blue" word into my image.enter image description here LIKE the below image, enter image description here

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 21 ارديبهشت 1395 ساعت: 18:55

صفحه بندی