public ConfigHostProvider(
     //MotionDetectWrapper.MotionDetector detector,
     FaceSearchWrapper.FaceSearch searcher
     )
 {
     //this.motionDetector = detector;
     this.faceSearcher = searcher;
 }
        public static CvRect[] LocateFaces(this IplImage img, FaceSearchWrapper.FaceSearch searcher, CvRect rectToLookin)
        {
            var frame = new Common.Frame(img);
            frame.MotionRectangles.Add(rectToLookin);
            var faces = searcher.SearchFace(frame.GetImage());

            var faceRects = from f in faces
                            select f.Bounds;

            return faceRects.ToArray();
        }
        public ServiceProvider(
            //MotionDetectWrapper.MotionDetector motionDetector,
            FaceSearchWrapper.FaceSearch faceSearcher,
            Damany.Component.ICamera camera)
        {
            //             if (motionDetector == null)
            //                 throw new ArgumentNullException("motionDetector", "motionDetector is null.");
            if (faceSearcher == null)
                throw new ArgumentNullException("faceSearcher", "faceSearcher is null.");
            if (camera == null)
                throw new ArgumentNullException("camera", "camera is null.");

            //this.motionDetector = motionDetector;
            this.faceSearcher = faceSearcher;
            this.camera = camera;
        }
 public static CvRect[] LocateFaces(this IplImage img, FaceSearchWrapper.FaceSearch searcher)
 {
     return LocateFaces(img, searcher, new CvRect(0,0,0,0));
 }