d = dir('Cards/*.jpg');
numfiles = length(d);
%fprintf('%i', numfiles);
temp = numfiles;
index = round(rand(1) * temp);
%for index=1:numfiles+4,
str = ['Cards/IMG_' num2str(index+1413) '.jpg'];
[rank, suit] = OCR(str);
fprintf('%s\t%s %s\n', str, rank, suit);
%end
