libsvm used to train samples and recognize the image