The invention belongs to the field of computer vision and machine learning, in particular to a crowd counting method based on submodule technology and semi supervised learning. The invention mainly solves the problem that sample counting is scarce in the training model process. For the high frequency continuous crowd monitoring image, firstly, each frame image preprocessing, and extract the texture feature of area and population; set the image sample, select the optimal sample extraction algorithm using a small amount of submodule samples, then the human annotation; finally use semi supervised regression algorithm for training model, enhance the performance of the model without the use of a large number of labeled samples. Compared with the random sampling and clustering based sample selection method, the invention can significantly reduce the number of training samples and improve the prediction performance of the model.
【技术实现步骤摘要】
基于子模技术和半监督学习的人群计数方法
本专利技术属于计算机视觉、机器学习、及智能交通
,具体涉及基于图像和视频的人群计数方法。
技术介绍
基于视频图像的人群计数问题是计算机视觉和机器学习领域研究的问题之一。当给定某场景人群图像,要求根据计算机视觉或机器学习算法输出行人数量。目前该领域已经有不少前人工作,其主要方法可以分为两大类:基于行人检测的方法、基于图像特征的回归方法。以下是这两类方法的一些参考文献:[1]A.B.Chan,Z.J.Liang,andN.Vasconcelos.Privacypre-servingcrowdmonitoring:Countingpeoplewithoutpeoplemodelsortracking.InConferenceonComputerVisionandPatternRecognition,pages1–7,2008.[2]B.ChanandN.Vasconcelos.Countingpeoplewithlow-levelfeaturesandbayesianregression.IEEETransactionsonImageProcessing,21(4):2160–2177,2012.[3]K.Chen,C.C.Loy,S.Gong,andT.Xiang.Featuremin-ingforlocalisedcrowdcounting.InBritishMachineVisionConference,2012.[4]C.C.Loy,S.Gong,andT.Xiang.Fromsemi-supervisedt ...
【技术保护点】
基于子模技术和半监督学习的人群计数方法,其特征在于具体步骤为:(a)输入预先提取的图像特征,原图像为连续的高频人群视频图像,且未标记确切人数;该样本集合为:V={x
【技术特征摘要】
1.基于子模技术和半监督学习的人群计数方法,其特征在于具体步骤为:(a)输入预先提取的图像特征,原图像为连续的高频人群视频图像,且未标记确切人数;该样本集合为:V={x1,x2,x3,…,xn}向量xi是单帧图像的所有特征,n是所有图像样本的数量;所有样本特征都已进行归一化;(b)计算样本集合V的时间空间相似度,构建k-近邻图,每个图像样本只与最相似的图像连接;再根据该图创建相似矩阵W,矩阵中的每个元素Wij对应于图像样本xi,xj的相似度,对于每个样本,只有对应的k个最相似的样本值不为0;(c)结合时间空间相似度矩阵,使用谱聚类将人群特征集合V聚类,得到K个簇{G1,G2,…,GK};(d)使用子模样本选择算法,从V中选择样本子集S,该集合能充分代表原样本集合,且冗余信息量达到最小,最优子集S满足以下两项:(1)代表性:该项衡量子集S与全集V的相似性:(2)差异性:该项衡量子集S中的样本再原集合中的分散性;其中,mk(S)代表子集S中包含的第k个簇中的样本数:(e)对子集S中的样本进行标注,标定该集合中图像的实际人数;(f)使用所有人群图像,包括标注和未标注的图像,训练回归模型。2.根据权利要求1所述的人群计数方法,其特征在于,所述的时间空间相似度矩阵W的构建步骤为:(a)计算V中所有样本的空间相似度:若样本xj是样本xi的k-近邻,则样本在空间上的相似度或距离表示为:否则(b)计算V中所有样本的时间相似度:若样本xj和xi在帧数上相差不超过t,则样本在时间上的相似度或距离被表示为:否则其中ti表示样本xi的图像序号;(c)任意两个样本的相似度表示为空间相似度和时间相似...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。