当前位置:网站首页>[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
2022-04-23 20:08:00 【Matlab research studio】
1 brief introduction
In order to solve the problem of target tracking loss caused by scale change in video frame target tracking , A processing method of adaptive tracking window is proposed , The difference between the estimated position of the next frame and the target position of the current frame is used as the detection amount , Adaptively adjust the tracking window , Achieve effective detection and tracking of targets . Experimental results show that : This method can effectively reduce the probability of target loss , Prevent false tracking of targets , Adapt to target scale changes .
2 Part of the code
% extracts the center (cc,cr) and radius of the largest blob
function [stats,N,flag,foremm]=extract(Imwork,Imback,index)%,fig1,fig2,fig3,fig15,index)
cc = 0;
cr = 0;
flag = 0;
[MR,MC,Dim] = size(Imback);
%Imwork(:,:,1),Imwork(:,:,2),Imwork(:,:,3), They are the images RGB value ,
% The purpose of the program is to extract two pictures R,G,B The difference between the three channels is greater than 10 Part of ( Two valued )
% subtract background & select pixels with a big difference
fore = zeros(MR,MC);
fore = imabsdiff(Imwork,Imback);
% To binarize , Remove image noise
Im2=im2bw(fore,80/255);
% Expand the image
foremm = bwmorph(Im2,'dilate',4); %2 time
% select largest object
labeled = bwlabel(foremm,4); % Label the connected part of the binary image .
stats = regionprops(labeled,['basic']); % obtain label Graphic properties of % Use string 'basic', Property :'Area','Centroid' and 'BoundingBox' Will be calculated
[N,W] = size(stats);
if N < 1
return
end
% do bubble sort (large to small) on regions in case there are more than 1
id = zeros(N); % N Is the number of detected targets
for i = 1 : N
id(i) = i;
end
for i = 1 : N-1
for j = i+1 : N
if stats(i).Area < stats(j).Area
tmp = stats(i);
stats(i) = stats(j);
stats(j) = tmp;
tmp = id(i);
id(i) = id(j);
id(j) = tmp;
end
end
end
% make sure that there is at least 1 big region
if stats(1).Area < 100
return
end
%selected = (labeled==id(1));
flag = 1;
return
3 Simulation results
4 reference
[1] Li Yanyan , Tian Ruijuan , Zhang Xianxian . A combination method based on frame difference Kalman Filtering moving target tracking method [J]. Ordnance automation , 2019, 38(4):4.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .
版权声明
本文为[Matlab research studio]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232006078273.html
边栏推荐
- Go modules daily use
- MySQL数据库 - 单表查询(三)
- 基于pytorch搭建GoogleNet神经网络用于花类识别
- [text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
- Audio editing generation software
- 如何在BNB链上创建BEP-20通证
- Design of warehouse management database system
- Hot reload debugging
- Building googlenet neural network based on pytorch for flower recognition
- How about Bohai futures. Is it safe to open futures accounts?
猜你喜欢
Shanda Wangan shooting range experimental platform project - personal record (V)
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Class loading process of JVM
Openharmony open source developer growth plan, looking for new open source forces that change the world!
指针数组与数组指针的区分
如何在BNB链上创建BEP-20通证
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
Distinction between pointer array and array pointer
Scrum Patterns之理解各种团队模式
随机推荐
goroutine
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
Lpc1768 optimization comparison of delay time and different levels
Kibana reports an error server is not ready yet. Possible causes
Class loading process of JVM
NC basic usage 1
Golang timer
filebeat、logstash配置安装
数据库查询 - 选课系统
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
nc基础用法4
C学习完结
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
Grafana 分享带可变参数的链接
Main differences between go and PHP
腾讯邱东洋:深度模型推理加速的术与道
Unity创建超写实三维场景的一般步骤
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数