Machine Learning for Hackers的作者之一的Drew Conway最近做了一个有趣的玩意。

把Time杂志的封面数据收集起来,做了一个可视化的脸部颜色分类工具“Shades of TIME”。

大致的流程是这样

The process for generating the Shades of TIME required the following steps:

  1. Using OpenCV to detect and extract the faces appearing in the magazine covers
  2. Using the Python Image Library to implement the Peer, at al. (2003) skin tone classifier to find the dominant skin tone in each face
  3. Designing a data visualization and exploration tool using d3.js

 

Demo地址 http://labs.drewconway.com/time/

这个例子还蛮有趣的可以把弄下来自己玩一下

https://github.com/drewconway/shades_of_time

Python+Web+OpenCV的一个结合

Posted on 2012-06-19 15:55  定宇逻辑  阅读(140)  评论(0编辑  收藏  举报