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; }
/// <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; } }