예제 #1
0
 public void StartAutoMotionDetection(int imageSequenceNumber, string storagePath, MotionDetectedHandler motionDetectionHandler)
 {
     if (_autoMotionThread != null)
     {
         throw new ApplicationException("_autoMotionThread");
     }
     if (motionDetectionHandler == null)
     {
         throw new ApplicationException("motionDetectionHandler");
     }
     _autoMotionStop = false;
     _autoMotionImageSequenceNumber = imageSequenceNumber;
     _autoMotionStoragePath         = storagePath;
     _autoMotionDetectionHandler    = motionDetectionHandler;
     _autoMotionThread = new Thread(AutoMotionDetectionThread);
     _autoMotionThread.Start();
 }
예제 #2
0
 public void StartAutoMotionDetection(int imageSequenceNumber, string storagePath, MotionDetectedHandler motionDetectionHandler)
 {
     if (_autoMotionThread != null) throw new ApplicationException("_autoMotionThread");
     if (motionDetectionHandler == null) throw new ApplicationException("motionDetectionHandler");
     _autoMotionStop = false;
     _autoMotionImageSequenceNumber = imageSequenceNumber;
     _autoMotionStoragePath = storagePath;
     _autoMotionDetectionHandler = motionDetectionHandler;
     _autoMotionThread = new Thread(AutoMotionDetectionThread);
     _autoMotionThread.Start();
 }