如何测量从相机的对象的距离或脸 [英] How to measure distance of an object or face from camera

查看:308
本文介绍了如何测量从相机的对象的距离或脸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,实际上检测的对象或面,并测量到该对象或脸相机的距离的应用程序。我完成脸部检测区域,现在有没有什么方法来衡量从那里摄像头位于点检测面之间的距离。

I am working on an application which actually detects the objects or faces and measures the distance from camera to that object or face. I complete the face detection area, now is there any way to measure the distance between detected face from the point where camera is located.

请提供任何链接或来源$ C ​​$ C我寻觅了很多,但一切都是徒劳的。

Please Provide any link or source code I have searched a lot but all in vain.

推荐答案

基本上,通过跟踪用户的眼睛之间的距离,以及如何改变作为脸部是从摄像机的距离的相当准确的想法更近或更远从可以得到照相机

Essentially, by tracking the distance between the user's eyes, and how this changes as the face is closer or further from the camera, a fairly accurate idea of the distance from the camera can be obtained.

Android有一个内置的脸检测类将处理决定那里的脸,甚至眼睛计算为分离你。

Android has a built in face detector class that will handle determining where the face is, and even calculate eye separation for you.

一个人这样做对他的论文,并张贴在的 github上以及一些漂亮的图片,概述它做什么,一个演示视频和他写的文章的链接。

A guy did this for his thesis, and posted the code on github along with some nice images outlining what it does, a demo video and a link to the paper he wrote.

这篇关于如何测量从相机的对象的距离或脸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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