Apace-time silhouettes of Human motion in video
1 回表示 (過去 30 日間)
古いコメントを表示
Hello.
I want to classify human motion.
Does anyone know how to get space-time silhouettes in Human motion video?
I want to change the original video to images and then make it to CSV file.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276499/image.jpeg)
I found this code from https://stackoverflow.com/questions/33931290/how-to-extract-foreground-image-in-matlab
How to get several background subtraction images?
%// read the video:
reader = VideoReader('daria_walk.avi');
vid = {};
while hasFrame(reader)
vid{end+1} = im2single(readFrame(reader));
end
%// simple background estimation using mean:
bg = mean( cat(4, vid{:}), 4 );
%// estimate foreground as deviation from estimated background:
fIdx = 43; %// do it for frame 43
fg = sum( abs( vid{fIdx} - bg ), 3 ) > 0.25;
0 件のコメント
回答 (1 件)
Bhargavi Maganuru
2020 年 4 月 29 日
Hi,
You can go through the following links, they might help for you
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!