Recently I found very interesting thing - google image search implementes searching by colour - you select the colour and get images that match it. Results are VERY relevant. The same thing is done on the shutterstock.com (http://www.shutterst...color=%23ff54df)
The question is - how this is done? What is the approach for this?
I think this is a very useful tool for price comparison websites (I'm working at one of them currently), so I'd like to know how to do this.
Page 1 of 1
Serch images by color
#1
Posted 11 September 2009 - 03:28 AM

My Blog: http://programmersnotes.info/ - tips, design patterns, client and server-side coding, yii articles and simply my experience.
Follow me on twitter: http://twitter.com/KonstantinMirin
Add me to your friends on facebook: http://www.facebook....hp?id=784832902
#2
Posted 11 September 2009 - 06:03 AM
I think some kind of color reduction filter is applied. Then palette is extracted from an image and saved to DB. Also it seems that they are saving amount of pixels filled with a colors from a palette.
Then you have values like this:
image1
#fff 123
#000 299
#f0c 233
and can compare images based on it.
Then you have values like this:
image1
#fff 123
#000 299
#f0c 233
and can compare images based on it.
#3
Posted 11 September 2009 - 11:15 AM
Good idea. But I think there should also be some jind of "approximate" search. e.g. user selects #ff05AD and image contains 80% of #ff05AE which is actually nearly the same colour...
Any more info or articles on this topic?
Any more info or articles on this topic?

My Blog: http://programmersnotes.info/ - tips, design patterns, client and server-side coding, yii articles and simply my experience.
Follow me on twitter: http://twitter.com/KonstantinMirin
Add me to your friends on facebook: http://www.facebook....hp?id=784832902
#4
Posted 12 September 2009 - 12:32 PM
Of course you should use quantization first for both image searched and the parameter color you are searching for. It's described in various captcha breaking techniques.
Share this topic:
Page 1 of 1

Help













