使用 MATLAB 进行形状检测
我正在从事停车场系统项目。为此,我想检测汽车的存在。
谁能告诉我如何使用 MATLAB 完成此任务?
另外,检测汽车的算法是什么?
I am working on car parking system project. For that, I would like to detect the presence of a car.
Can anybody tell me how I can accomplish this using MATLAB?
Also, what is the algorithm for detecting a car?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
图像中物体检测的方法有很多种。您需要了解一些图像处理知识才能解决这个问题。我建议您阅读模板匹配或更一般地了解对象识别。特别是对于汽车检测,如果您知道它们会在某个角度(例如正面)被看到,我会尝试 Viola-Jones 检测,在 OpenCV 中实现为 基于haar的特征级联检测 。虽然 OpenCV 不是 matlab 库,但您可能可以在 matlab 的图像处理工具箱中找到执行类似工作的工具(或 OpenCV 的接口)
There's a whole world of methods for object detection in images. You need to learn a little bit about image processing to solve this problem. I suggest you read about template matching or more generally about Object recognition. Specifically for car detection, if you know they will be seen at a certain angle (head on, for example) i'd try Viola-Jones detection which is implemented in OpenCV as haar-based feature cascade detection. Although OpenCV is not a matlab library, you can probably find something in matlab's image processing toolboxes that does a similar job (or interface into OpenCV)
背景扣除将是一个简单的起点。
简而言之:
问题:
Background subtraction would be a simple place to start.
In a nutshell:
Problems:
除了使用“正常”图像之外,您是否考虑过使用 3D/立体成像?如果是的话,您可以打开一个全新的方法和智能技巧世界,根据物体与相机的距离来删除物体。然后,任何距相机有一定固定距离的物体(例如您的背景)都可以轻松移除,您只需处理图像的新部分(例如汽车)。
如果您对此感兴趣,我可以为您提供我开发的一种算法,用于检测牲畜圈中的动物,这是一个类似的概念。
Have you considered using 3D/stereoscopic imaging in addition to using 'normal' images? If yes you could open up a whole new world of methods and intelligent tricks to remove objects based upon their distance to the camera. Then, any object that is a certain, fixed distance from the camera (e.g. your background) is easily removable and you can just process the new parts of the image (e.g. cars).
If this interests you I can supply you with an algorithm I have developed to detect animals in a livestock pen, which is a similar concept.