Human body extraction with haar cascades from static background (opencv.js)
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?
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.
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.