如何在MATLAB 64位中使用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);
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’。
main (第7行)出错pos = fdlibmex(ss);
发布于 2013-05-02 04:34:50
试试这个FEX file吧....
发布于 2013-05-02 04:36:08
您应该将此函数'fdlibmex‘放在主脚本之外的工作目录中。或者,您可以只使用addpath命令将此函数的路径添加到您的matlab工作区。
addpath('folder/file.m')显然,您可以提供一个JPG图像作为输入,因此
I = imread('my_image.jpg');
pos = fdlibmex(I);https://stackoverflow.com/questions/16325831
复制相似问题