Our first exploration of machine learning techniques will start with what is probably the simplest approach, namely, nearest neighbor classification. We will also present the local binary pattern (LBP) feature, which is a popular representation encoding the textural patterns and contours of an image in a contrasting and unique way.
Our illustrative example will concern the face recognition problem. This is a very challenging problem that has been the object of numerous researches over the past 20 years. The basic solution we present here is one of the face recognition methods that is implemented in OpenCV. You will quickly realize that this solution is not very robust and works only under very favorable conditions. Nevertheless, this approach constitutes an excellent introduction to machine learning and to...