Пример #1
0
 public DetectedDoor(Rectangle boundingBox, Size imageSize, DetectionConfidence confidence, double relativeAngle, double relativeDistance, DetectMethod detectionMethod)
 {
     this.BoundingBox       = boundingBox;
     this.OriginalImageSize = imageSize;
     this.Confidence        = confidence;
     this.RelativeAngle     = relativeAngle;
     this.RelativeDistance  = relativeDistance;
     this.Method            = detectionMethod;
 }
Пример #2
0
        /// <summary>
        /// sets the SMSR method and detecting method
        /// </summary>
        /// <param name="detectMethod"></param>
        private void SetSMSR(DetectMethod detectMethod)
        {
            switch (detectMethod)
            {
            case DetectMethod.LEFT:
                MS9740.GPIBwr("ANA SMSR,LEFT");
                break;

            case DetectMethod.RIGHT:
                MS9740.GPIBwr("ANA SMSR,RIGHT");
                break;

            case DetectMethod._2NDPEAK:
                MS9740.GPIBwr("ANA SMSR,2NDPEAK");
                break;
            }
        }