News for hackers. Stuff that matters.
Re:How to build a simple image and primary-colour similarity... by spdustin on Friday January 02, 2015 @10:21AM (#8826997)
Why not a quick check of the upper-left pixel color, and if that's similar to one of the identified "popular" colors, remove it? I'd suspect most of the source material would be photographed professionally on a uniform background color.

I chose upper-left simply because these sorts of photos would likely would be framed in a way that the background is visible in the upper margins, while possibly cropping the object at the bottom of the frame.

Re:How to build a simple image and primary-colour similarity... by teh on Friday January 02, 2015 @11:35AM (#8827350)
That's a good suggestion! Especially having a "sanity check" against a popular colour which should increase robustness when new images arrive. Robustness is such a tricky subject, especially when the loss, i.e. the cost of returning a wrong image is fairly high. For fashion items the occasional odd colour is OK but accidentally returning naked people can be devastating for a product.

I want to stress that this code is massively simplified to avoid obscuring the main plot. There's so much we skipped: the code in the blog post actually computes pretty terrible results compared to an even moderately tuned pipeline :)

Re:How to build a simple image and primary-colour similarity... by phkahler on Friday January 02, 2015 @12:38PM (#8827625)
>> There's so much we skipped: the code in the blog post actually computes pretty terrible results compared to an even moderately tuned pipeline :)

That's fine. I am a day away from starting an image processing app and was thinking of Python and some libraries. This blog confirms that idea and gives the right amount of "starting point" for my effort. My requirements are very different so showing a more specific solution while still interesting is of less universal value. Perhaps a part-II with more application specific methods would be good.

Re:How to build a simple image and primary-colour similarity... by lnanek2 on Friday January 02, 2015 @01:41PM (#8827905)
Doesn't seem logical to me. What if you have a white coat, with black trim, with white background. Wouldn't your solution incorrectly remove white from the results?
Re:How to build a simple image and primary-colour similarity... by spdustin on Saturday January 03, 2015 @12:14PM (#8831250)
Exceptions to every rule.

I would submit that most professionally photographed fashion items would endeavor to include sufficient contrast between the background and the item being photographed.