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

今週の月曜からいじりだした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
上の写真でハイライトされてるのが試しに開発中のアプリです。

About this Archive

This page is a archive of entries in the Android category from February 2009.

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