# sacha chua living an awesome life

2357 subscribers

## Tracking and organizing my clothes: substituting mathematics for fashion sense

Inspired 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:

Short URL: http://sachachua.com/blog/p/22539
• http://mylenesereno.wordpress.com Mylene

Wow! This is fantastic! :) I totally love it! Fashion + Computer Geek = Totally Awesome! Haha

• Marcus

Awesome 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.

• http://sachachua.com Sacha Chua

The 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

I wanted to do this as a Java Midlet on my phone (6 years back) ! Never got around to start! Wish I had your energy!

• http://sachachua.com Sacha Chua

What you call energy, I call laziness. I got tired of trying to recognize patterns in text. ;)

• http://bhar1234.blogspot.com Bhargav V

Now that you have inspired me, I am going to do this as an Excel + VBA application!

## On This Day...

• 2012: Sketchnotes: ENT101: Lived It Lecture – Bruce Poon Tip (G Adventures) on Social Enterprise — Click on the image for a larger version of sketchnotes. This talk is part of the free MaRS Entrepreneurship 101 [...]
• 2012: Packing review: Things I used and didn’t use on my trip — I was in California for two weeks: three days at a conference, a 5-day impromptu road trip to Disneyland in [...]
• 2010: Quick catch-up — Too many things going on. Haven’t been able to sit down and properly write for almost a week, and probably [...]
• 2008: Sometimes you just have to do it — Last Wednesday, I was definitely not a happily sewing kitty. I was halfway through the blazer I was sewing, and [...]
• 2007: Categorizing Contacts — Categorizing your contacts may make it easier for you to purposefully deepen or expand your network. Here are some categories recommended [...]
• 2006: Good things: KMD2004 — Quote for the day: An unexamined life is not worth living. - Socrates I come from a technical background, and the almost-sociological analyses [...]
• 2006: October is crazy! — If I disappear from the surface of the earth or blog sporadically, it is because not only do I have a [...]
• 2006: The power of applause — Listening to the Entrepreneurship 101, I find myself struck by the silence of the rooms sometimes. Perhaps it’s Toastmasters training, but I [...]
• 2006: Lazyweb request: dependency grapher? — Would anyone happen to know of something that makes it easy to graph dependencies, preferably interactively? I’d like it to be [...]
• 2006: Misplaced index cards — The strangely solid kerplunk I noticed when I emptied my trash into the garbage chute may have been the sound of [...]
• 2005: Went to IBM — Interesting but non-bloggable insights. Wish I could find interesting, fundable and bloggable things to work on. I want to write about stuff…
• 2005: Cryptic crosswords — Trevor introduced me to the wonderful world of cryptic crosswords. Any crossword where clues like “Main attraction: second pitch” can result in [...]
• 2004: Lisp code for correct coding — (setq erc-encoding-coding-alist (quote (("#lisp" . utf-8) ("#nihongo" . iso-2022-jp) ("#truelambda" . [...]
• 2004: Kansai Free Software Conference — http://k-of.jp/ Upcoming event, and it’s in Osaka! ÃƒÂ©Ã‚Â–Ã‚Â¢ÃƒÂ¨Ã‚Â¥Ã‚Â¿ÃƒÂ£Ã‚Â‚Ã‚ÂªÃƒÂ£Ã‚ÂƒÃ‚Â¼ÃƒÂ£Ã‚ÂƒÃ‚Â—ÃƒÂ£Ã‚ÂƒÃ‚Â³ÃƒÂ£Ã‚Â‚Ã‚Â½ÃƒÂ£Ã‚ÂƒÃ‚Â¼ÃƒÂ£Ã‚Â‚Ã‚Â¹ 2004 2004ÃƒÂ¥Ã‚Â¹Ã‚Â´10ÃƒÂ¦Ã‚ÂœÃ‚Âˆ22ÃƒÂ¦Ã‚Â—Ã‚Â¥ÃƒÂ¯Ã‚Â¼Ã‚ÂˆÃƒÂ©Ã‚Â‡Ã‚Â‘ÃƒÂ¯Ã‚Â¼Ã‚Â‰ÃƒÂ£Ã‚Â€Ã‚Âœ10ÃƒÂ¦Ã‚ÂœÃ‚Âˆ23ÃƒÂ¦Ã‚Â—Ã‚Â¥ÃƒÂ¯Ã‚Â¼Ã‚ÂˆÃƒÂ¥Ã‚ÂœÃ‚ÂŸÃƒÂ¯Ã‚Â¼Ã‚Â‰ ÃƒÂ¥Ã‚Â¤Ã‚Â§ÃƒÂ©Ã‚Â˜Ã‚ÂªÃƒÂ§Ã‚Â”Ã‚Â£ÃƒÂ¦Ã‚Â¥Ã‚Â­ÃƒÂ¥Ã‚Â‰Ã‚ÂµÃƒÂ©Ã‚Â€Ã‚Â ÃƒÂ©Ã‚Â¤Ã‚Â¨ ÃƒÂ¥Ã‚Â¤Ã‚Â§ÃƒÂ©Ã‚Â˜Ã‚ÂªÃƒÂ¥Ã‚Â¸Ã‚Â‚ÃƒÂ¤Ã‚Â¸Ã‚Â­ÃƒÂ¥Ã‚Â¤Ã‚Â®ÃƒÂ¥Ã‚ÂŒÃ‚ÂºÃƒÂ¦Ã‚ÂœÃ‚Â¬ÃƒÂ§Ã‚Â”Ã‚Âº 1-4-5 Friday to Saturday. There’s a Debian BOF on 10ÃƒÂ¦Ã‚ÂœÃ‚Âˆ23ÃƒÂ¦Ã‚Â—Ã‚Â¥ 15:00 – 16:00. If I [...]
• 2004: Japanese post — I sent a card and a Bayanihan keychain to Ohashi Akira, the Debian developer who sponsors my packages. =) It was [...]
• 2003: learn.ph

Free sample!