this is entirely wrong, you cannot call train() for a single image,
also labels are ints, not strings
instead, you need to collect all training images into an array,
and make a numpy array of integer ids for the labels. then you can call
model.train(images, ids)
@sky may i ask, what you try to achieve with the face recognition ?
which problem should be solved ?