Date: 2019-08-09 | projects | blinder | art |
what is it?
Blinder explores the relationship between eyes and the human perception of art. It uses machine learning and creative frameworks to understand and manipulate images.
why was it built?
I saw a whole fine art gallery displaying a collection of photos with the eyes crossed out. I was like, I can do that. So I did that.
how was it built?
The general control flow goes like this:
- Initiate script
- If image not given, grab a random image from Unsplash
opencvto find the faces, then eyes in the image
- Draw on image based on selected DrawMode
An image in debug mode:
- Python - I'm joining a new team at FB that uses a lot of Python so I decided to use Python for this project to knock some of the rust off. Turns out this was a pretty good decision as Python's got a very mature community of libraries for just about anything.
- Unsplash - I just love this service. Unlimited, free, high-quality, use-for-anything images with a simple api that works. If you've got a project that needs images, use it. It's great.
- Why do the names look so weird e.g.
Each name is a unique key consisting of the timestamp it was created, the username of the artist that took the picture, and the unique id of the image on Unsplash. This name is used as a key for Blinder's identification and manipulation pipeline so I found it satisfying to preserve.
- The project is supposed to draw on the eyes of the subjects but a lot of times it's not on their eyes. Is this intentional?
Lol no, it's supposed to draw on their eyes, but the model I'm using doesn't seem that good. This is good and bad. Good because it adds in some extra randomness that can lead to happy little accidents. Bad cause sometimes it's drawing in just random places that don't make sense / look good. May find a better model at some point.