Code covered by the BSD License  

Highlights from
American Sign Language Detection using PCA and LDA

image thumbnail

American Sign Language Detection using PCA and LDA

by

 

26 Apr 2012 (Updated )

Provides scripts for testing the two algorithms as well as testing real time input.

ASlknn(cAlpha,nTrainingSamples,InImWeight,omega)
% American Sign Language Detection
% Group 13
% This function performs KNN classification
function Class = ASlknn(cAlpha,nTrainingSamples,InImWeight,omega)
Training = omega';%store features in training matrix
Group = zeros(size(cAlpha,2)*nTrainingSamples,1);%Store group details
ll = 1;
for ii = 1:size(cAlpha,2)
    for jj = 1:nTrainingSamples
        Group(ll) = ii;
        ll = ll + 1;
    end
end

%KNN-Eucilidean
Class = knnclassify(InImWeight, Training, Group, nTrainingSamples, 'euclidean','random');
%Perform knn classification with Euclidean norm as basis

Contact us