我在我的项目中搜索了 matlab 的人脸检测。我找到了一个: http: //people.kyb.tuebingen.mpg.de/kienzle/fdlib/fdlib.htm
我下载了源代码,但它没有用,我从matlab得到了那个错误:
???'uint8' 类型的输入参数的未定义函数或方法'fdmex'。
==> tinytest 在 10 秒时出错 = fdmex(x', threshold);
主要脚本是:
x = imread('geeks.jpg');
% decision threshold.
% change this to a smaller value, if too many false detections occur.
% change it to a larger value, if faces are not recognized.
% a reasonable range is -10 ... 10.
threshold = 0;
imagesc(x); hold on; colormap gray;
s = fdmex(x', threshold);
for i=1:size(s,1)
h = rectangle('Position',[s(i,1)-s(i,3)/2,s(i,2)-s(i,3)/2,s(i,3),s(i,3)], ...
'EdgeColor', [1,0,0], 'linewidth', 2);
end
axis equal;
axis off
你能找到错误吗?