Example Model
The following figure shows the Tracking Cars Using Optical Flow model:
Tracking Cars Using Optical Flow Results
The model uses an optical flow estimation technique to estimate the motion vectors in each frame of the video sequence. By thresholding and performing morphological closing on the motion vectors, the model produces binary feature images. The model locates the cars in each binary feature image using the Blob Analysis block. Then it uses the Draw Shapes block to draw a green rectangle around the cars that pass beneath the white line. The counter in the upper left corner of the Results window tracks the number of cars in the region of interest.
Available Example Versions
Windows only: viptrafficof_win.mdlviptrafficof_win.mdl
Platform independent: viptrafficof_all.mdlviptrafficof_all.mdl
Windows-only example models might contain compressed multimedia files or To Video Display blocks, both of which are only supported on Windows platforms. The To Video Display block supports code generation, and its performance is optimized for Windows. 转载地址: http://www.mathworks.cn/cn/help/vision/examples/tracking-cars-using-optical-flow.html
本文介绍了一种使用光学流估算技术追踪视频中车辆的方法。通过阈值处理和形态学闭合操作,该技术能够生成二进制特征图像,并利用Blob分析定位车辆。最终,通过绘制矩形框标记出通过特定区域的车辆。
390

被折叠的 条评论
为什么被折叠?



