/// <summary> /// Set threshold parameter at runtime. [public use] /// </summary> /// <param name="o">New parameter</param> public void SetVideoThreshold(int o) { if (HasNativeHandle()) { ARUWP.aruwpSetVideoThreshold(o); threshold = ARUWP.aruwpGetVideoThreshold(); if (threshold != o) { Debug.Log(TAG + ": Unable to set video threshold to " + o); } } else { Debug.Log(TAG + ": SetVideoThreshold() unsupported status"); } }
public void setVideoThreshold(int o) { if (state == State.DETECTION_RUNNING) { ARUWP.aruwpSetVideoThreshold(o); threshold = ARUWP.aruwpGetVideoThreshold(); if (threshold != o) { Debug.Log(TAG + ": Unable to set video threshold to " + o); } } else { threshold = o; } }