【发布时间】:2017-03-31 10:40:36
【问题描述】:
我正在尝试检测视频中的汽车。背景减除后我们得到如下图像:
现在我用边界框包围汽车。
blobAnalysis = vision.BlobAnalysis('BoundingBoxOutputPort', true, ...
'AreaOutputPort', false, 'CentroidOutputPort', false, ...
'MinimumBlobArea', 150);
bbox = step(blobAnalysis, filteredForeground);
result = insertShape(frame, 'Rectangle', bbox, 'Color', 'green');
下一步是计算边界框的纵横比。我该怎么做?
托管代码的 matlab 网站的链接是: https://in.mathworks.com/help/vision/examples/detecting-cars-using-gaussian-mixture-models.html?prodcode=VP&language=en
【问题讨论】:
-
宽度除以高度......