예제 #1
0
        public void MoveToMotionFrames( FaceProcessingWrapper.MotionDetectionResult frameResult )
        {
            var f = RetrieveFrame(frameResult.FrameGuid);
            if (f != null)
            {
                if (this.motionFrames == null)
                {
                    this.motionFrames = new List<Frame>();
                }

                f.MotionRectangles.Add(frameResult.MotionRect);
                motionFrames.Add(f);
            }
        }
예제 #2
0
        private bool ProcessNewFrame(Frame frame, out FaceProcessingWrapper.MotionDetectionResult detectionResult)
        {
            detectionResult = new FaceProcessingWrapper.MotionDetectionResult();

            return this.DetectMethod(frame, detectionResult);
        }
예제 #3
0
 private void ProcessOldFrame(FaceProcessingWrapper.MotionDetectionResult result)
 {
     if (IsStaticFrame(result.MotionRect))
     {
         this.manager.DisposeFrame(result.FrameGuid);
     }
     else
     {
         this.manager.MoveToMotionFrames(result);
     }
 }