Simple Android App - uses FaceDetector API

| | Comments (0) | TrackBacks (0)
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:

0 TrackBacks

Listed below are links to blogs that reference this entry: Simple Android App - uses FaceDetector API.

TrackBack URL for this entry: http://us.ms-square.com/cgi/mt/mt-tb.cgi/75

Leave a comment


画像の中に見える文字を入力してください。

About this Entry

This page contains a single entry by Manabu published on February 14, 2009 2:57 PM.

来週前半にSTBが届くらしい。。。 was the previous entry in this blog.

Yahooのマグカップをゲット! is the next entry in this blog.

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