开发者

camera focus distance test

I'm developing an Android app that requires 2.3 Gingerbread. There's a functionality to get the subject distance in the camera, but on my phone it returns 开发者_运维问答0.

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getFocusDistances(float[])

Can someone with Gingerbread test this app in the attachment? It launches the camera and when you press the middle button on your phone, it prints out the subject distances. On my phone I get [auto,0,0,0]. Can anyone pls post what they get on their phone?

For the source code please see this question Camera focus distances

Here's the attachment http://forum.xda-developers.com/attachment.php?attachmentid=645665&d=1309825196


The source-code you reference works, but this measuring technique seems to be very anaccurate. I think the camera hardware in most smartphones is unsuitable for this task.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜