Thursday, September 3, 2015

Detect solid color images


Detect if the image has a solid background (most likely a logo) or if not (most likely a photograph)

If the input is JPG, it won't have a solid background. It might have a nearly solid background. You might detect this by flood-filling from (0,0) with a fuzz factor, and counting the proportion of pixels that have changed, or seeing if all border pixels have changed, or some other test.


Detect dominant colors

http://danielparker.com.au/2013/09/04/background-colour-detection-using-opencv-and-python/

http://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/
https://gist.github.com/shobhit/3951094

http://blog.zeevgilovitz.com/detecting-dominant-colours-in-python/


Connected components analysis

http://stackoverflow.com/questions/35854197/how-to-use-opencvs-connected-components-with-stats-in-python

No comments:

Post a Comment