我正在尝试使用EmguCV进行面部识别.我想知道我是否可以使用EigenObjectRecognizer执行此任务?有人可以解释我如何使用它吗?因为如果没有不匹配的照片,它也会返回一个值.这是一个例子:
Image[] trainingImages = new Image [5]; trainingImages[0] = new Image ("brad.jpg"); trainingImages[1] = new Image ("david.jpg"); trainingImages[2] = new Image ("foof.jpg"); trainingImages[3] = new Image ("irfan.jpg"); trainingImages[4] = new Image ("joel.jpg"); String[] labels = new String[] { "Brad", "David", "Foof", "Irfan" , "Joel"} MCvTermCriteria termCrit = new MCvTermCriteria(16, 0.001); EigenObjectRecognizer recognizer = new EigenObjectRecognizer( trainingImages, labels, 5000, ref termCrit); Image testImage = new Image ("brad_test.jpg"); String label = recognizer.Recognize(testImage); Console.Write(label);
它返回"brad".但是如果我在testimage中更改照片它也会返回一些名字甚至Brad.Is对于使用这种方法进行人脸识别是否有用?或者有更好的方法吗?