Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public static CvRect[] LocateFaces(this IplImage img, FaceSearchWrapper.FaceSearch searcher)
 {
     return(LocateFaces(img, searcher, new CvRect(0, 0, 0, 0)));
 }