2018-03-17 12:43:31 -0600 | commented answer | Find an image by nearest color? Hello again @LBerger and @eshirima ! I successfully ran all my images through a K-Means implementation from the sklearn |
2018-03-15 02:22:23 -0600 | received badge | ● Student (source) |
2018-03-14 13:13:40 -0600 | commented answer | Find an image by nearest color? @LBerger: I wasn't aware of the device fingerprinting going on. It must be part of the generic WordPress install. I'll f |
2018-03-14 11:57:55 -0600 | marked best answer | Find an image by nearest color? Hi OpenCV’ers! I’ve got a project in mind and need some expert input. I have a collection of about 1100 abstract images (desktop wallpaper tiles) that I want to be searchable by predominant color. I’ve already found Python code to help me use the OpenCV libraries to do k-means clustering and extract the top 3 (for example) colors in each image. From that, I can get the three colors as RGB values and the percentage of each. I plan to stuff all that data into a database for searching. Ideally, I want the program user to select a color (using a standard color-picker dialog box), and then query the database for the top X images with the “closest matching” predominant color. The problem is that I don’t know how to store and search this data effectively. That’s where I need your help. The math involved here is miles over my head. From doing some reading (Wikipedia), I have a hunch that storing and searching HSV values makes more sense than RGB values. I can’t fully explain why, except that it seems easier to find “more or less blue-ish” using HSV. Is anyone willing to help me untangle this? I thought this project would be straightforward, until I started digging into image analysis. This led me to k-means clustering, which led me here. Thanks in advance. |
2018-03-14 11:57:55 -0600 | received badge | ● Scholar (source) |
2018-03-14 11:57:12 -0600 | commented answer | Find an image by nearest color? Can I also use the distance calculation you described to determine the level of "contrast" between the top 3 colors in t |
2018-03-14 11:49:38 -0600 | commented answer | Find an image by nearest color? Thank you. It seems you understand what I'm trying to do. My database will be SQLite, so I can easily pack the database |
2018-03-14 09:20:11 -0600 | asked a question | Find an image by nearest color? Find an image by nearest color? Hi OpenCV’ers! I’ve got a project in mind and need some expert input. I have a collect |