English 中文(简体)
2. 发现距离照相机距离已知大小物体
原标题:Finding distance from camera to object of known size

我正试图用开放式手法撰写节目,以计算从网络运动到一个白面的距离。 我认为,这同样应该非常容易,但出于任何原因,我 m一空。 提前提供帮助。

最佳回答

You can use triangle similarity to calibrate the camera angle and find the distance.
You know your ball s size: D units (e.g. cm). Place it at a known distance Z, say 1 meter = 100cm, in front of the camera and measure its apparent width in pixels. Call this width d.
The focal length of the camera f (which is slightly different from camera to camera) is then f=d*Z/D.

当你看到该球再次照相机时,其表面宽度为<条码>d pixels,然后按三角相近,你知道<条码>f/d =Z www.un.org/chinese/ga/president

问题回答

To my mind you will need a camera model = a calibration model if you want to measure distance or other things (int the real-world). The pinhole camera model is simple, linear and gives good results (but won t correct distortions, (whether they are radial or tangential).

如果你不使用,那么你就能够赞扬差异深刻的地图(例如,如果你使用定型观点),但是它相对比较,没有给你绝对的衡量,只是背后的东西和另一个目标前面的东西。

因此,我想答案是:你需要做些什么校准,或许你可以要求用户接近照相机,直到所有影像机都完全填满球,并且事先知道气球测量,你就能够计算距离。

Julien,





相关问题
ASP.NET Application Webcam Capture

Ok, so I have seen a ton of stuff on capturing an image from a web cam but I want to capture video. I want to be able to control quality, length and size of file that will be transferred. It is part ...

Fast conversion from YUY2 to RGB24

I m writing a program, that will do some transformations with image from a webcam in real-time. As almost all other webcams, my noname gives data in YUY2 format (as written in bmiHeader.biCompression)....

Accessing external library (jmf) within jar file

We used an external library, specifically jmf.jar (Java Media Framework), for our java application which relies on images captured from the webcam. However, when we tried to package the application ...

Processing byte pixels with SSE/SSE2 intrinsics in C

I am programming, for cross-platform C, a library to do various things to webcam images. All operations are per-pixel and highly parallelizable - for example applying bit masks, multiplying color ...

Using webcam s button in my own program

My webcam has a button, with which you take a photo of current frame when using it s original software what came with it when I bought it. Is there any way to use that button to take photos in my ...

webcam calling in xna

i am new in xna i want to use my webcam and make webcam image as a background texture for 3D models is there a function that calls webcam thanks for suggestions

Streaming a webcam from Silverlight 4 (Beta)

The new webcam stuff in Silverlight 4 is darned cool. By exposing it as a brush, it allows scenarios that are way beyond anything that Flash has. At the same time, accessing the webcam locally seems ...

How to programmatically disable the auto-focus of a webcam?

I am trying to do computer vision using a webcam (the model is Hercules Dualpix). I know it is not the ideal camera to use, but I have no choice here. The problem is the auto-focus makes it hard/...

热门标签