BackgroundsubtractorMOG2
VideoCapturecap = new VideoCapture(); cap.Open(0); BackgroundSubtractorMOG2 pMOG =BackgroundSubtractorMOG2.Create(); pMOG.shadowThreshold=0.6; // Exception thrown here while(true) { Mat readframe = new Mat(); cap.Read(readframe); if(!readframe.Empty()) { frame = readframe.Clone(); frameresult = fc.violationcheck(frame, pMOG); } else { frameresult = readframegray; } }
setShadowThreshold
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)