Ask Your Question

Fajre's profile - activity

2014-05-01 11:46:35 -0500 received badge  Supporter (source)
2014-05-01 11:46:27 -0500 commented answer Background Subraction Tutorial

I just visited these links i have done background subtraction.. And in that everything else than moving objects went in the background. The foreground only contains the moving objects which are white in color and background is black. Now is it possible that i apply some condition that draw a rect on pixels marked as 255??

2014-05-01 10:42:56 -0500 commented answer Error in Detecting Moving Object

Hye i've done background subtraction using Backgroundsubtractormog. In my video the moving objects are detected but now i want to track them and classify as either vehicle or people. What should i do next?

2014-04-30 14:31:11 -0500 commented question Background Subraction Tutorial

Thankyou i just changed video and tried the same code on that and it worked as intended. So my current video was wrong may be because of moving camera and this code needs a still camera to focus frames properly. Anyhow thanks once again.

2014-04-30 01:54:20 -0500 commented question Background Subraction Tutorial

Mat frame; //current frame Mat fgMaskMOG; //fg mask generated by MOG method Ptr<BackgroundSubtractor> pMOG; //MOG Background subtractor namedWindow("Frame"); namedWindow("FG Mask MOG"); pMOG = createBackgroundSubtractorMOG(); VideoCapture capture(videoFilename); pMOG->apply(frame, fgMaskMOG); imshow("Frame", frame); imshow("FG Mask MOG", fgMaskMOG);

2014-04-30 01:42:36 -0500 asked a question Background Subraction Tutorial

Hi i'm implementing the opencv background subtraction MOG and MOG2 technique.The problem i'm facing is this that the moving objects are detected along with some black and white portion of the background.In general or in tutorial the background is black and only moving objects should be detected. What have i missed?? I mean should i set some threshold as well??

Mat frame; //current frame 
Mat fgMaskMOG; //fg mask generated by MOG method
Ptr<BackgroundSubtractor> pMOG; //MOG Background subtractor 
namedWindow("Frame"); 
namedWindow("FG Mask MOG"); 
pMOG = createBackgroundSubtractorMOG(); 
VideoCapture capture(videoFilename); 
pMOG->apply(frame, fgMaskMOG); 
imshow("Frame", frame); 
imshow("FG Mask MOG", fgMaskMOG);