I am trying to match a given face with a database of faces using lbph face recognition algorithm i have read all the related questions but could not find a way to set or calculate appropriate threshold value to get the result weather face is matched or not matched.