问题描述
我在使用 Matlab 编码器时遇到问题。
function F = FaceDetection(n1,n2)
the_image = imread(n1);
[width,height] = size(the_image);
if width > 320
the_image = imresize(the_image,[320,NaN]);
end
face_detector = vision.CascadeObjectDetector();
location_of_the_face = step(face_detector,the_image);
I2 = imcrop(the_image,location_of_the_face);
I3 = rgb2gray(I2);
F = I3;
end
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)