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

5 ビュー (過去 30 日間)
Avinash S
Avinash S 2016 年 1 月 23 日
コメント済み: Walter Roberson 2017 年 5 月 12 日
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.
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 5 月 12 日
You do not appear to be accounting for illumination differences. Possibly that would help.

サインインしてコメントする。

回答 (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 月 23 日
Can you make it easier to help you? Can you attach your separate images?
Avinash S
Avinash S 2016 年 1 月 24 日
編集済み: Image Analyst 2016 年 1 月 24 日
Pic: Background
Pic: Current frame

サインインしてコメントする。


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 件のコメント
Image Analyst
Image Analyst 2016 年 1 月 25 日
Sorry, I can't. Besides, I don't even have the Fuzzy Logic Toolbox.
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 Center および File ExchangeComputer Vision Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by