Tracking and organizing my clothes: substituting mathematics for fashion sense
Posted: - Modified: | analysis, clothing, geek, organization, photography, quantified, railsInspired by my sister’s photo-assisted organization of her shoes, I decided to tackle my wardrobe. Taking an inventory would make it easier to simplify, replace, or supplement my clothes. Analyzing colour would help me substitute mathematics for a sense of style. Combining the images with the clothes log I’ve been keeping would make it easier to see patterns and maybe do some interesting visualizations. Geek time!
I took pictures of all my clothes against a convenient white wall. I corrected the images using Bibble 5 Pro and renamed the files to match my clothes-tracking database, creating new records as needed. AutoHotkey and Colorette made the task of choosing representative colours much less tedious than it would’ve been otherwise. After I created a spreadsheet of IDs, representative colours, and tags, I imported the data into my Rails-based personal dashboard, programming in new functionality along the way. (Emacs keyboard macros + Rails console = quick and easy data munging.) I used Acts as Taggable On for additional structure.
It turns out that the math for complementary and triadic colour schemes is easy when you convert RGB to HSL (hue, saturation, lightness). I used the Color gem for my RGB-HSL conversions, then calculated the complementary and triadic colours by adding or subtracting degrees as needed (180 for complementary, +/- 120 for triadic).
Here’s what the detailed view looks like now:
And the clothing log:
Clothing summary, sorted by frequency (30 days of data as of writing)
Thoughts:
- White balance and exposure are a little off in some shots. I tweaked some representative colours to account for that. It would be neat to get that all sorted out, and maybe drop out the background too. It’s fine the way it is. =)
- Matches are suggested based on tags, and are not yet sorted by colour. Sorting by colour or some kind of relevance factor would be extra cool.
- Sorting by hue can be tricky. Maybe there’s a better way to do this…
- My colour combinations don’t quite agree with other color scheme calculators I’ve tried. They’re in the right neighbourhood, at least. Rounding errors?
- I’ll keep an eye out for accessories that match triadic colours for the clothes I most frequently wear.
- Quick stats: 28 casual tops, 15 skirts, 12 office-type tops, 8 pairs of pants, 5 pairs of slacks – yes, there’s definitely room to trim. It would be interesting to visualize this further. Graph theory can help me figure out if there are clothing combinations that will help me simplify my wardrobe, and it might be fun to plot colours and perhaps usage. Hmm…
Other resources:
9 comments
Mylene
2011-10-03T16:47:04ZWow! This is fantastic! :) I totally love it! Fashion + Computer Geek = Totally Awesome! Haha
Marcus
2011-10-08T01:15:12ZAwesome idea. I would not need to depend on the bad taste of my neighborhood anymore. I cannot distinguish several shades of green, assistance as yours would be awesome and (more important) geeky :-)
I'd advice you to place a white object (sheet of paper) on the side of your clothes. It will enable software to white balance by defining the brightest object as white.
Cropping the background: Does your camera support manual aperture? You could blur the background when taking the picture. Using GIMPs auto selection tool (magic wand) would be fine if the background is solid and homogeneous shade.
Sacha Chua
2011-10-08T03:55:59ZThe wall is white (or reasonably so), so I used that to whitebalance most of my pictures. Because there isn't much distance between the clothes and the background, it's hard to keep the clothes in focus, blur the background, and not risk blurring parts of the clothes as well (shallow depth of field)... If I were going to take pictures of everything again, I'd probably try to see if I can find some kind of stand so that I can move the clothes out a little bit from the background, then light the background with a flash. =)
Bhargav V
2011-10-11T19:11:28ZI wanted to do this as a Java Midlet on my phone (6 years back) ! Never got around to start! Wish I had your energy!
Sacha Chua
2011-10-16T18:20:34ZWhat you call energy, I call laziness. I got tired of trying to recognize patterns in text. ;)
Bhargav V
2011-10-11T19:15:19ZNow that you have inspired me, I am going to do this as an Excel + VBA application!
bshyong
2013-12-01T18:11:51ZThis is awesome! Is it open source?
sachac
2013-12-01T18:20:14ZYup! See the quantifiedawesome.com footer for a link to the source. =)
Asa
2020-06-08T05:56:57Zomg, I cannot ever express how amazing, unique and otherwise super-cool this blog is! Discovered you on hackernews and I just can't read enogh of it ^^