Exemplo n.º 1
0
        public static FaceSearchController CreateNewController(IFrameStream source, 
            IOperation<Frame> frameProcessor,
            IConvertor<Frame, Portrait> convertor,
            IOperation<Portrait> portraitProcessor)
        {
            var controller = new FaceSearchController(source, frameProcessor, convertor, portraitProcessor);

            return controller;
        }
        public static FaceSearchController CreateNewController(IFrameStream source,
                                                               IOperation <Frame> frameProcessor,
                                                               IConvertor <Frame, Portrait> convertor,
                                                               IOperation <Portrait> portraitProcessor)
        {
            var controller = new FaceSearchController(source, frameProcessor, convertor, portraitProcessor);

            return(controller);
        }
Exemplo n.º 3
0
        public static FaceSearchController CreateNewController(IFrameStream source)
        {
            PortraitFinder finder = new PortraitFinder();

            MotionDetector motionDetector = new MotionDetector();
            motionDetector.MotionFrameCaptured += finder.HandleMotionFrame;

            Damany.Util.PersistentWorker retriever = CreateDriver(source, motionDetector);

            var controller = new FaceSearchController()
            {
                Worker = retriever,
                PortraitFinder = finder,
                MotionDetector = motionDetector
            };

            return controller;
        }
        public static FaceSearchController CreateNewController(IFrameStream source)
        {
            PortraitFinder finder = new PortraitFinder();

            MotionDetector motionDetector = new MotionDetector();

            motionDetector.MotionFrameCaptured += finder.HandleMotionFrame;

            Damany.Util.PersistentWorker retriever = CreateDriver(source, motionDetector);

            var controller = new FaceSearchController()
            {
                Worker         = retriever,
                PortraitFinder = finder,
                MotionDetector = motionDetector
            };

            return(controller);
        }