MATLAB: My vision.For​egroundDet​ector is not working for detecting the moving objects.what should i do

computer visionComputer Vision Toolbox

I am working on object tracking using kalman filter.for detecting the moving object first i am using vision.ForegroundDetector. But its not working.What should i do.

Best Answer

[AREA,CENTROID,BBOX] = step(H,BW) returns the area, centroid and the bounding box of the blobs when the AreaOutputPort, CentroidOutputPort and BoundingBoxOutputPort properties are set to true.
You have set all three of those ports to be true so the first output is going to be Area but you are treating that area as if it were a bounding box.
Related Question