# setMouthOpenThreshold method

void setMouthOpenThreshold(

1. int mouthOpenThreshold

)

Sets the mouth opening threshold. If the mouth opening score is above this value, the mouth of detected face is definitely open. Hint: Default value is 35.

param mouthOpenThreshold Mouth opening threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setMouthOpenThreshold(int mouthOpenThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetMouthOpenThreshold(_pHandle.value, mouthOpenThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }