Skip to main content

Posts

Showing posts with the label cats

Face detection for record sleeves

I have been digging a bit into image processing in the last few weeks using OpenCV. OpenCV is very powerful and comes with lots of built-in goodies, such as a face detector. So, I was thinking: what can I do with that? How easy is it to detect sleeves that have people's faces on it? As it turns out: trivial. I grabbed my copy of Practical Python and OpenCV and followed chapter 14. I then downloaded an image and fed it to my code: Not perfect as only three out of four faces get recognized, probably due to a limitation in the classifier but not bad at all for less than 50 lines of Python code. Another example: So, why is this useful? Let's make this a bit more concrete with another example. Some users collect sleeves with a certain theme. One possible theme could be cats. At least one user at Discogs has a list with sleeves that have cats on them . And, believe it or not, OpenCV also has a built-in cat classifier (for frontal cat faces only), so I used that on one...