到“兴趣点”的距离在iphone自动焦点 [英] Distance to "point of interest" in iphone auto focus

查看:191
本文介绍了到“兴趣点”的距离在iphone自动焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iphone中,我想计算从相机到主题的距离。



我想知道iphone相机的主动自动对焦非常感谢。



ps如果你认为这是不可能的plz让我知道;)

解决方案

据我所知, - 请参阅此处了解您可以做什么和不能做什么的更多信息。



我确定您可以在焦点上取得更多资讯。 / distance使用私人API调用 - 但除非你不担心进入App Store,这不是一个选择。



这并不意味着没有另一种方式。在此处看起来像一个很好的讨论主题:使用OpenCV的距离(您可以编译openCV for iOS!)


In iphone, I want to calculate the distance from the camera to the subject.

I was wondering maybe iphone camera's "Active Auto Focus" provide me the distance to the subject (point of interest)??

many thanks in advance.

p.s. guys if you think it is not possible plz let me know ;)

解决方案

As far as I'm aware, it's not possible - see here for more info on what you can and can't do. You can tell when the camera is autofocusing, but nothing more.

I'm sure there is probably some more info you can get on focus/distance using a private API call - but unless you're not worried about getting on the App Store, it's not really an option.

That doesn't mean there's not another way though. Looks like a good discussion on the topic here: Distance using OpenCV (you can compile openCV for iOS!)

这篇关于到“兴趣点”的距离在iphone自动焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆