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

C++ Face Recognition demo #3685

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ivan-vikhrev
Copy link

C++ version of face recognition demo, unlike python version it has support of antispoof model.
Demo requires c++17 standard for compilation, cause it utilizes std::filesystem for creating an initial gallery of faces. If it is a problem, the implementation could be changed.

@ivan-vikhrev
Copy link
Author

cc @akorobeinikov

@Wovchena
Copy link
Collaborator

Wovchena commented Feb 2, 2023

I haven't looked into it yet.
We still use C++11. You may find this helpful

DirReader(const std::string& input, bool loop, size_t initialImageId, size_t readLengthLimit)

demos/face_recognition_demo/cpp/main.cpp Outdated Show resolved Hide resolved
demos/face_recognition_demo/cpp/main.cpp Outdated Show resolved Hide resolved
demos/face_recognition_demo/cpp/main.cpp Outdated Show resolved Hide resolved
demos/face_recognition_demo/cpp/main.cpp Show resolved Hide resolved
#

file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python version draws landmarks. Is it intentional not to draw them here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just thought it wasn't needed. Add rendering them?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if you don't mind :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

demos/face_recognition_demo/cpp/models.lst Show resolved Hide resolved
demos/face_recognition_demo/cpp/main.cpp Outdated Show resolved Hide resolved
@Wovchena
Copy link
Collaborator

Please fix build/intel64/Release/face_recognition_demo tests. I will fix the rest

@ivan-vikhrev
Copy link
Author

Please fix build/intel64/Release/face_recognition_demo tests. I will fix the rest

Done

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

Successfully merging this pull request may close these issues.

2 participants