如何在图像/视频中找到物体知道其真实物理尺寸? [英] How do I find an object in image/video knowing its real physical dimension?

查看:522
本文介绍了如何在图像/视频中找到物体知道其真实物理尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图像样本,想要检测图像/视频中已经预先知道该对象的真实物理尺寸的对象。我有一个图像样本(它的飞机门),并希望找到在飞机门知道它的物理尺寸的窗口(让我们说它有内半径为20厘米,外半径为23厘米)和它的真实世界位置在门(例如它到门框的最小距离是15厘米)。我也可以知道之前我的相机分辨率。任何matlab代码或OpenCV C ++可以自动与图像处理?
这里是我的图片示例

I have a sample of images and would like to detect the object among others in the image/video already knowing in advance the real physical dimensions of that object. I have one of the image sample (its airplane door) and would like to find the window in the airplane door knowing its physical dimensions(let we say it has inner radius of 20cm and out radius of 23cm) and its real world position in the door (for example its minimal distance to the door frame is 15cm) .Also I can know prior my camera resolution. Any matlab code or OpenCV C++ that can do that automatically with image processing? Here is my image sample

具有圆形徽标的更复杂的图像。

And more complex image with round logos.

我运行第二个复杂图像的代码,但没有得到相同的结果。这里是图像结果。

I run the code for second complex image and do not get the same results. Here is the image result.

推荐答案

我不会太担心几何和校准,而是通过其自身的特性找到窗口。

I wouldn't worry too much about the exact geometry and calibration and rather find the window by its own characteristics.

二进制化工作相对较好,无论是整个图像还是感兴趣的大区域。

Binarization works relatively well, be it on the whole image or in a large region of interest.

然后,您可以根据其近似面积和/或圆形度选择最可能的blob。

Then you can select the most likely blob based on it approximate area and/or circularity.

这篇关于如何在图像/视频中找到物体知道其真实物理尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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