コード例 #1
0
 /// <summary>
 /// Steps to perform after each detection finished
 /// 1. Count detection if successful
 /// 2. Stop the detection stopwatch
 /// </summary>
 /// <param name="isBallLocationFound">Detection result</param>
 public void Finalize(bool isBallLocationFound)
 {
     _dateTime.Stop();
     //Stopwatch
     _spentOnDetectionInSecond += _dateTime.Elapsed;
     if (isBallLocationFound)
     {
         _successDetectionFrame++;
     }
 }