English 中文(简体)
在图像中检测对象
原标题:Detecting objects in an image

这样这个可能有点棘手,我更想找方向而不是一个具体答案。 基本上我需要在 VB. net 应用程序中做一些物体探测。 我想知道照片中是否有一辆车。 它是一个静止的图片,算法不需要疯狂的快或者什么的, 但我基本上尝试在图片中检测汽车或者没有汽车。 想法是, 一个更大的应用程序, 其中一个功能会处理一个停车场, 并试图知道每个停车空间里是否有汽车。 我基本上会有一个单独的程序, 将一个更大的图像切成 单个空间的区, 然后这个程序会循环到每个空间里, 每个空间里都会检测汽车或者没有汽车。

我对边缘的探测也稍有了解, 但我只是不确定这是否真的有效, 汽车似乎有很多边缘, 就像我所希望的一样, 基本上需要汽车本身的轮廓来检测这都是一个物体。

问题回答

您可以使用背景减法。 这将涉及到将空的停车场图像作为背景, 然后比较该图像与随后任何图像之间的变化。 如果您正在查看汽车停车位, 那么您会想要将图像分割成区块( 停车场空间), 并按区进行背景减色 。 但是由于日光下移时汽车停机灯的灯光不断变化, 您将会遇到背景图像会因阴影、 亮度、 etc 而变化的问题 。 处理这个问题的方法是通过框架比较来进行框架比较, 如果它改变一定的阈值, 那么很可能是一辆汽车停靠了, 而不是太阳移动了, 因为汽车在很短的时间内会带来比灯光效果更大的变化 。

您可以在下雪时填满所有的斑点。 您可以检查此链接 < a href=" http://examples.sprocv.org/ en/latest/examples/parking.html" rel="nofollow" > http://examples.sprocv.org/en/latest/examples/parking.html (it s in python, but could help) 或购买比比较图像更可靠的实际停车场探测系统。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签