Human body extraction with haar cascades from static background (opencv.js)

asked 2018-02-11 08:01:27 -0600

my-lord gravatar image

I have used "moving foreground from static background with colors" (opencv.js) method for extracting human bodies in a video stream.

When it comes to detect moving bodies this algorithm work well but if the body does not move, this algorithm does not work.

I decide to use haar cascades to solve this problem. How can I do foreground (human body) extraction with human body haar cascades?

edit retag flag offensive close merge delete

Comments

The cascade will simply give you a bounding box of the location, and not for 100% of the cases, since no detector is failproof. Once you have the rectangle, you can use it to make a mask, similar to the background subtraction, but it will be way rougher then using BGS algorithms.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-02-12 09:05:48 -0600 )edit

Thank you.How can i create a object mask in OPENCV.js?(Do you mean rectengular image mask or object mask?) I can create rectengular mask in C++ but I can't find cv::Mat::zeros and Rect on Opencv.js.

my-lord gravatar imagemy-lord ( 2018-02-12 09:32:53 -0600 )edit