示例#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);
            }
        }
        private bool ProcessNewFrame(Frame frame, out FaceProcessingWrapper.MotionDetectionResult detectionResult)
        {
            detectionResult = new FaceProcessingWrapper.MotionDetectionResult();

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