/// <summary> /// Sets the filter level for detecting hand key points. /// </summary> /// <param name="filterLevel">The filter level to set for detecting keypoints.</param> public static bool SetKeyPointsFilterLevel(MLHandTracking.KeyPointFilterLevel filterLevel) { bool success = false; #if PLATFORM_LUMIN KeyPointFilterLevel = filterLevel; success = MLHandTracking.KeyPoseManager.SetKeyPointsFilterLevel(KeyPointFilterLevel); if (!success) { Debug.LogErrorFormat("Error: MLHandTrackingStarterKit.SetKeyPointsFilterLevel failed because MLHandTracking.KeyPoseManager.SetKeyPointsFilterLevel failed."); } #endif return(success); }
/// <summary> /// Sets the key points filter level. /// </summary> /// <param name="filterLevel">The desired filter level.</param> /// <returns>true if the filter level was successfully applied and false otherwise.</returns> public bool SetKeyPointsFilterLevel(MLHandTracking.KeyPointFilterLevel filterLevel) { this.config.KeyPointsFilterLevel = filterLevel; return(this.ApplyConfig()); }