Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example/search 运行失败,默认图片找不到人脸 #124

Open
sipercai opened this issue Jul 12, 2022 · 0 comments
Open

example/search 运行失败,默认图片找不到人脸 #124

sipercai opened this issue Jul 12, 2022 · 0 comments

Comments

@sipercai
Copy link

sipercai commented Jul 12, 2022

开启opencv = ON编译运行示例,在人脸识别模块./search中输出id = -1
输出详情
@localhost bin]$ ./search
[INFO] FaceDetector: Core size: 640x480
[INFO] FaceLandmarker: Number: 5
[INFO] FaceRecognizer: Feature size: 1024
Registering... 1.jpg
Registered id = -1
----open camera----

对应代码区域 34-47行左右
`std::vectorstd::string GalleryImageFilename = { "1.jpg"};

std::vector<int64_t> GalleryIndex( GalleryImageFilename.size() );
for( size_t i = 0; i < GalleryImageFilename.size(); ++i )
{
    //register face into facedatabase
    std::string &filename = GalleryImageFilename[i];
    int64_t &index = GalleryIndex[i];
	std::cerr << "Registering... " << filename << std::endl;
    seeta::cv::ImageData image = cv::imread( filename );
    auto id = engine.Register( image );
    index = id;
    std::cerr << "Registered id = " << id << std::endl;
}
std::map<int64_t, std::string> GalleryIndexMap;

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant