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

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 comentario

You do not appear to be accounting for illumination differences. Possibly that would help.

Iniciar sesión para comentar.

Respuestas (3)

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 comentarios

i cant get u. Can u please tell me where to modify the code?. I'm new to this stuff
Can you make it easier to help you? Can you attach your separate images?
Avinash S
Avinash S el 24 de En. de 2016
Editada: Image Analyst el 24 de En. de 2016
Pic: Background
Pic: Current frame

Iniciar sesión para comentar.

Image Analyst
Image Analyst el 24 de En. de 2016
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 comentarios

Avinash S
Avinash S el 25 de En. de 2016
Editada: Avinash S el 25 de En. de 2016
thank u so much for your great effort. But I couldnt get best results using real time input stream from webcam. Now I came across this paper based on fuzzy logic which looks very good in extracting silhouette: _ Interval Type-2 Fuzzy Logic System for Human Silhouette Extraction in Dynamic Environments_ https://www.kau.edu.sa/Files/611/Researches/63095_34134.pdf
Is there an implementation for this? or can u help me implement this
Sorry, I can't. Besides, I don't even have the Fuzzy Logic Toolbox.
hi! Image Analyst. could you give me your email? I would like to ask you about image background subtraction. Best regards!

Iniciar sesión para comentar.

Dima Lisin
Dima Lisin el 25 de En. de 2016
You can use vision.ForegroundDetector in the Computer Vision System Toolbox.

Categorías

Más información sobre Computer Vision Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 23 de En. de 2016

Comentada:

el 12 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by