中文说明:程序首先调用vision.opticalflow计算交通视频中的光流场,在对光流场的幅值进行阈值分割获得二值图,其赋值大的位置证明有车流量;接着进行形态学处理,滤波,腐蚀和关闭。最后通过面积比例判断是否有汽车。
English Description:
Program first calls the vision.opticalflow calculation of optical flow in traffic video, optical flow field amplitude threshold access to binary images, assigning it a value, traffic proves that; then morphological processing, filtering and corrosion on and off. Finally, area ratio to determine whether a vehicle.