j基于matlab的SVM支持向量机人脸识别仿真,采用PCA降维,包含人脸图像数据库。
for iExpressionPerPerson= 1:nExpressionPerPerson
nSplPerClass(iExpressionPerPerson) = sum( (trainLabel == iExpressionPerPerson) );
end
multiSVMStruct = multiSVMTrain(TrainData, nSplPerClass, nExpressionPerPerson);
save SVM_model.mat multiSVMStruct A0 B0
display('..............................');
display('训练结束。');