Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's exactly, what the error says: you have to resize both your train and test images.

so, before appending your trainimages:

        # Add to training data
        face = cv2.imread(path, 0)  ## you should check..
        face_resize = cv2.resize(face, (im_width, im_height))
        images.append(face_resize)