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 CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by