【问题标题】:face recognition using eigen faces使用特征面进行人脸识别
【发布时间】:2015-06-02 09:10:03
【问题描述】:

我是编程新手,如果怀疑是愚蠢的,请原谅我.. 我在matlab中学习的一个程序中使用了这个函数。 函数 [X y 宽度高度名称] = read_images(path).. 我对在 func read_image 中提供什么路径有点困惑 这个函数后面的代码是

folder = list_files(path);
    X = [];
    y = [];
    names = {};
    n = 1;
    for i=1:length(folder)
        subject = folder{i};
        images = list_files([path, filesep, subject]);
        if(length(images) == 0)
            continue;
        end
        added = 0;
        names{n} = subject;
        for j=1:length(images)
            filename = [path, filesep, subject, filesep, images{j}];

再次说明“文件夹”的含义,我的意思是我必须提供的内容。请帮助我。

【问题讨论】:

    标签: matlab face-recognition eigenvector


    【解决方案1】:
    folder = list_files(path); % get all files from a given path
        images = list_files([path, filesep, subject]);
    

    filesep 将 2 个目录路径和主题分开。创建了两个矩阵,第一个是路径,第二个是主题,忽略文件或空文件夹。

    【讨论】:

    • 这个怎么样..参数字段中要给出什么路径? function [X y width height names] = read_images(path)
    • 尝试给出保存图像的路径,例如'C:\Program Files\MATLAB\'
    猜你喜欢
    • 2019-10-06
    • 2015-03-25
    • 2018-01-07
    • 2018-11-09
    • 1970-01-01
    • 2021-07-27
    • 2014-04-15
    • 2021-03-12
    • 2014-01-20
    相关资源
    最近更新 更多