public void ApplyDefaults(AutotuneCheckLevel checkLevel) { switch (checkLevel) { case AutotuneCheckLevel.Low: eyesROIMaxVariationWidth = 75; EyeROIMaxVariationWidth = 30; EyeROIMaxVariationHeight = 30; PupilMaxVariationArea = 100; PupilMaxVariationCentroid = 15; PupilMaxVariationDistance = 15; eyesMaxAttempts = 1; EyeMaxAttempts = 1; PupilMaxAttempts = 1; GlintMaxAttempts = 1; eyesMaxFrameCount = 10; EyeMaxFrameCount = 25; PupilMaxFrameCount = 35; GlintMaxFrameCount = 35; break; case AutotuneCheckLevel.Medium: eyesROIMaxVariationWidth = 50; EyeROIMaxVariationWidth = 20; EyeROIMaxVariationHeight = 20; PupilMaxVariationArea = 75; PupilMaxVariationCentroid = 7; PupilMaxVariationDistance = 10; eyesMaxAttempts = 2; EyeMaxAttempts = 2; PupilMaxAttempts = 2; GlintMaxAttempts = 2; eyesMaxFrameCount = 25; EyeMaxFrameCount = 50; PupilMaxFrameCount = 50; GlintMaxFrameCount = 50; break; case AutotuneCheckLevel.Hight: eyesROIMaxVariationWidth = 30; EyeROIMaxVariationWidth = 10; EyeROIMaxVariationHeight = 10; PupilMaxVariationArea = 50; PupilMaxVariationCentroid = 3; PupilMaxVariationDistance = 5; eyesMaxAttempts = 3; EyeMaxAttempts = 3; PupilMaxAttempts = 3; GlintMaxAttempts = 3; eyesMaxFrameCount = 50; EyeMaxFrameCount = 100; PupilMaxFrameCount = 100; GlintMaxFrameCount = 100; break; } }
public void ApplyDefaults(AutotuneCheckLevel checkLevel) { switch (checkLevel) { case AutotuneCheckLevel.Low: eyesROIMaxVariationWidth = 75; EyeROIMaxVariationWidth = 30; EyeROIMaxVariationHeight = 30; PupilMaxVariationArea = 100; PupilMaxVariationCentroid = 15; PupilMaxVariationDistance = 15; eyesMaxAttempts = 1; EyeMaxAttempts = 1; PupilMaxAttempts = 1; GlintMaxAttempts = 1; eyesMaxFrameCount = 10; EyeMaxFrameCount = 25; PupilMaxFrameCount = 35; GlintMaxFrameCount = 35; break; case AutotuneCheckLevel.Medium: eyesROIMaxVariationWidth = 50; EyeROIMaxVariationWidth = 20; EyeROIMaxVariationHeight = 20; PupilMaxVariationArea = 75; PupilMaxVariationCentroid = 7; PupilMaxVariationDistance = 10; eyesMaxAttempts = 2; EyeMaxAttempts = 2; PupilMaxAttempts = 2; GlintMaxAttempts = 2; eyesMaxFrameCount = 25; EyeMaxFrameCount = 50; PupilMaxFrameCount = 50; GlintMaxFrameCount = 50; break; case AutotuneCheckLevel.Hight: eyesROIMaxVariationWidth = 30; EyeROIMaxVariationWidth = 10; EyeROIMaxVariationHeight = 10; PupilMaxVariationArea = 50; PupilMaxVariationCentroid = 3; PupilMaxVariationDistance = 5; eyesMaxAttempts = 3; EyeMaxAttempts = 3; PupilMaxAttempts = 3; GlintMaxAttempts = 3; eyesMaxFrameCount = 50; EyeMaxFrameCount = 100; PupilMaxFrameCount = 100; GlintMaxFrameCount = 100; break; } }