2011-02-23
■instagramにアップされている顔写真を蒐集するtumblr「instagram faces」を作った
概要
instagramにアップされ、popular入りした写真から顔写真だけをピックアップして紹介するtumblr「instagram faces」を作りました。
http://instagramfaces.tumblr.com/
目的
かわいい女のコの写真見たくないですか?僕は見たいです。
スクリーンショット
猫とか混じってて泣きそうです。たまにフツーの風景画も混じっていたりします。
処理概要
バックエンドはGoogle App Engine(Python)です。
cron処理で数分おきにinstagramにアクセスし、popularの写真一覧を取得。取得した画像URLを次の顔認識queueに渡します。
顔認識queueでは、detectFace();という顔認識APIを使用し、画像内に顔があるかどうかをチェック。APIで取得できる「信頼度」というパラメータをしきい値として、ある値を超えたら「顔がある」と判断、画像URL等の情報を次のtumblr投稿queueに渡します。
tumblr投稿queueはその名のとおりtumblrに投稿を行います。tumblr APIあたりを参考にしました。tumblrへの投稿簡単すぎて楽しいですね。
作成時間は4時間くらいです。
というわけで
皆様instagram facesをfollowしてreblogなどすればいいと思います。僕はかわいい女のコを探してニヤニヤします。
トラックバック - http://d.hatena.ne.jp/ashitano244/20110223/1298466191
リンク元
- 4157 http://pipes.yahoo.com/pipes/pipe.info?_id=7ed2910a6358c42a7305fae463b19704
- 102 http://homepage1.nifty.com/maname/index.html
- 84 http://matomestagram.com
- 76 http://homepage1.nifty.com/maname/
- 76 http://www.tumblr.com/dashboard
- 66 http://b.hatena.ne.jp/hotentry/diary
- 59 http://twitter.com/
- 47 http://pipes.yahoo.com/pipes/pipe.info?_id=faa858a20082ef6d25ad27557e37e011
- 44 http://b.hatena.ne.jp/
- 23 http://hatebu24h.ashitano.in/
