之前在网上找到一个人脸识别的demo(http://blog.csdn.net/light_lj/article/details/26703959),可是一直有错误,改了很久最终的两个错误如下:
1、
Undefined function or variable 'W'.
Error in classify (line 18)
xNewFace = xNewFace*W; % 经过pca变换降维
Error in GUIRecgFaceImage (line 3)
nClass = classify(filepath);
Error while evaluating uicontrol Callback
改正方法:
改正方法: