如何在Matlab64位中使用Voila Jones算法?
如何在Matlab64位中使用Voila Jones算法如何在Matlab64位中使用Voila Jones算法?,matlab,Matlab,如何在Matlab64位中使用Voila Jones算法 close all clear all clc aa = imread('p2.jpg'); ss = rgb2gray(aa); pos = fdlibmex(ss); strt(1,1)=pos(1)-(pos(3)/2); strt(1,2)=pos(2)-(pos(3)/2); face(1) = strt(1,1); face(2) = strt(1,2); face(3) = pos(3); face(4) = pos(3
close all
clear all
clc
aa = imread('p2.jpg');
ss = rgb2gray(aa);
pos = fdlibmex(ss);
strt(1,1)=pos(1)-(pos(3)/2);
strt(1,2)=pos(2)-(pos(3)/2);
face(1) = strt(1,1);
face(2) = strt(1,2);
face(3) = pos(3);
face(4) = pos(3);
Rectangle = [face(1) face(2); face(1)+ face(3) face(2); face(1) + face(3) face(2) + face(4); face(1) face(2) + face(4); face(1) face(2)];
figure(1);
imshow (aa);
truesize;
hold on;
plot (Rectangle(:,1), Rectangle(:,2), 'g');
hold off;
类型为“uint8”的输入参数的未定义函数“fdlibmex”
主线错误(第7行)
pos=fdlibmex(ss) 试试这个….除了主脚本之外,您应该将这个函数“fdlibmex”放在您的工作目录中。或者,您可以使用addpath命令将此函数的路径添加到matlab工作区
addpath('folder/file.m')
显然,您可以将JPG图像作为输入
I = imread('my_image.jpg');
pos = fdlibmex(I);
你能给我解释一下它是怎么工作的吗?我看了这个例子,但无法理解