How to achieve real-time human silhouette and movement detection?

1 次查看(过去 30 天)
I started with background subtraction between a static background and another image with a foreground object(hand) that were captured from webcam. I couldn't get good results. I have attached the code i used and images below.

回答(3 个)

Image Analyst
Image Analyst 2016-1-23
You can avoid the loop by saying
binaryImage = Out > 3; % Or some number that works.
Then use bwareaopen() or bwareafilt() to get rid of small blobs.
  3 个评论

请先登录,再进行评论。


Image Analyst
Image Analyst 2016-1-24
See my attached code.
If you want a smoother background, like to not have the movement of the drapes shadow be connected to the arm, you can use activecontour(). I've also attached a demo for that so you should be off to a good start.
Note: This may not be the best approach - the foreground detector in the Computer Vision System Toolbox may work better.
  3 个评论
shine day
shine day 2017-5-12
hi! Image Analyst. could you give me your email? I would like to ask you about image background subtraction. Best regards!

请先登录,再进行评论。


Dima Lisin
Dima Lisin 2016-1-25
You can use vision.ForegroundDetector in the Computer Vision System Toolbox.

类别

Help CenterFile Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by