February 2009 Archives

Obviously, the bigger the image, the easier to detect faces.
The API uses eyes as the "facial detection" and there is no other detail (face dimensions mouth location etc.).
Also faces that are taken from the side will not be detected. Sunglasses/glasses turns out to interfere with detection.
It seems to take the same amount of time regardless of how many faces you specify in the FaceDetector constructor.
I recommend the picture size smaller than 800x800 pixels coz it will take a lot of time to process the large image.

The following app runs the image processing code in a separate thread, and notifies the UI thread when the processing gets done, then calls invalidate() to redraw the canvas.
(画像解析のコードは別スレッドで走らせて、処理が終了したらUIスレッドに知らせてキャンバスを描き直しています。)
特に何でもないアプリですが、
もしコード見たい方がいたらアップしますので、コメントでお知らせください。

Demo Video:

幸か不幸か来週にモトローラからSTBが届いてしまうらしい(汗)。
というわけで、Android上でのアプリ開発はいったんストップかな。前回のエントリー以降いくつか機能を追加して音楽も再生できたりして結構いい感じまでいったのにな~。
なんでも、来週にはクラスの生徒へのサンプルとして公開されるそうです。

しかし、STBが届いてしまうと忙しくなってしまう。卒業研究がピンチだw。どうせならもっと暇だった1月前半に送って欲しかった(涙)今週末からOCAP Platformの勉強をしないといけない。。。

motorola.jpg
今週の月曜からいじりだしたAndroidですが、Eclipse上での開発環境が予想以上に充実していてなかなか素晴らしいです。特にEmulatorの出来がいいのではないでしょうか?音楽だけではなくビデオまでEmulatorで再生できて驚きました。

というわけで、今日時点でのアプリのスクリーンショットをちょっとご紹介!

gtplayer1.png LocalのSDカードにあるビデオをブラウズして再生したり、ネット上にあるファイルを再生できたりします。ただAPIの仕様上、プロトコルはhttpとrtspのみのサポートになります。しかもコンテンツはProgressive Streamableじゃないといけないといったコーデック以外の制約もあります。

gtplayer2.png
gtplayer3.png
ビデオリストの追加、編集、削除ができます。それぞれのビデオにはタイトル、コメント、URLなどの情報を入力できます。
gtplayer4.png上はWebServerにある007最新作のMovie Trailerを再生しているところ。
gtplayer5.pngタッチパネルを使った操作も可能で、動画をタッチするとPauseとかResumeとかできます。

さて、たった数日でここまで出来るAndroid Platformはなかなか魅力的ですね。Javaの知識がある程度ある方なら頑張り次第でかなりおもしろいアプリが作れるのではないでしょうか?
今学期は忙しいんであれですが、もし時間があればいろいろと情報交換していきたいですね。
今週の月曜日に大学の研究室からAndroid携帯(開発者向け)を入手しました。
普通の電話機としても使えるんですが、僕の場合は"試しにアプリを作りやがれ"という感じで渡されたので、早速SDKを使っていろいろとアプリを開発しています。ちなみに第一弾はVideoPlayerですかね、Linuxサーバー(TV Tuner Card付き)からのLiveTV Streamを再生できるようにしなければならないんですよね~。

AndroidG1.JPG
上の写真でハイライトされてるのが試しに開発中のアプリです。
1週間ほど前の話ですが、Paul Smithの靴を購入してしまいました。159ドル。。。
セール品とはいえ、それなりのお値段。でも履き心地が結構良くて買ってよかったと思っています。
日本では大人気のPaul Smithですが、アメリカではデパートにちょっと置いてあるだけです。

paulsmith.JPG

About this Archive

This page is an archive of entries from February 2009 listed from newest to oldest.

December 2008 is the previous archive.

April 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.