OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 3920|回复: 2

opencv 人脸识别

[复制链接]
发表于 2019-4-23 18:38:56 | 显示全部楼层 |阅读模式
opencv3.3.1 + VS2017
1、       //Ptr<BasicFaceRecognizer> model = createEigenFaceRecognizer();     
        Ptr<BasicFaceRecognizer> model = EigenFaceRecognizer::create();
        model->train(images, labels);  //训练模型

        //model->save("E:\\CP\\C\\VisualStudio\\opencv\\ORL_PCAModel.xml");
        //string file_path = "E:/ORL_PCAModel.xml";
        //model->load<EigenFaceRecognizer>("E:\\ORL_PCAModel.xml");
        //model->read(storage);
        //model->load<BasicFaceRecognizer>("E:\\ORL_PCAModel.xml");
       
        //recognization face
        int predictedLabel = model->predict(testSample);
        cout << "actual label:" << testLabel << "   " << "predict label:" << predictedLabel << endl;
能够用model->save(),却不能model->load(),哪位大佬能够给个分析???

回复

使用道具 举报

发表于 2019-6-4 15:52:56 | 显示全部楼层
111111111111
回复 支持 反对

使用道具 举报

发表于 2019-6-6 18:22:17 | 显示全部楼层
还以为是发表,原来是提问
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-26 14:56 , Processed in 0.008231 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表