Machine Learning for Hackers的作者之一的Drew Conway最近做了一个有趣的玩意。
把Time杂志的封面数据收集起来,做了一个可视化的脸部颜色分类工具“Shades of TIME”。
大致的流程是这样
The process for generating the Shades of TIME required the following steps:
- Using OpenCV to detect and extract the faces appearing in the magazine covers
- Using the Python Image Library to implement the Peer, at al. (2003) skin tone classifier to find the dominant skin tone in each face
- 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的一个结合