Tuesday, 3 September 2013

search an image by color palette using javascript

search an image by color palette using javascript

I am coding, in html5 and javascript, something like an image search
engine (just like Google Image), and I was wondering what's the best way
to search an image by a color palette.
For example I type a name and then select the red color and the output
would be all the images with that name that has a ton o the color red.
I was suggested to calculate a histogram for each color in hsv space. But
I don't understand how to do that, and I think if I try to calculate an
histogram for a bunch of images, pixel by pixel, for something like 12
colors would take a lot of time.
It must exist some better and faster way to do this.
Thanks in advance.

No comments:

Post a Comment