Ask Your Question

tetamusha's profile - activity

2016-01-29 22:37:37 -0600 answered a question Opencv LBPHFaceRecognizer Train data in Python

I don't understand what you mean by "see" the train data. The images array is a list of grayscale images of the numpy.ndarray type, which you can get by reading an image file using cv2.imread(image_path, cv2.IMREAD_GRAYSCALE), for example. For each image in the first array, there has to be a corresponding label in the labels array. Each label must be of type int and the labels array must be a one-dimensional numpy.ndarray of int types.

Those are the artifacts OpenCV implementation of LBPH uses. If you need to understand how the algorithm works, I suggest you look in the literature for the original article.