Closed RajkiranVeldur closed 5 years ago
The sample code is provided for reference, you are encouraged to modify it to your needs.
Hey @dorodnic, can you please explain whats the calculation behind find_depth_from?
@maloel - could you please comment?
Hmm the code states:
/*
Calculates the average depth for a range of two-dimentional points in face, such that:
point(n) = face.part(n)
and puts the result in *p_average_depth.
Points for which no depth is available (is 0) are ignored and not factored into the average.
Returns true if an average is available (at least one point has depth); false otherwise.
*/
Given 5 points, for example, for which only 3 have depth (the other 2 fall on depth=0), the average depth from those 3 points will be returned.
So if those 5 points are locations of landmarks for the nose, find_depth_from will return the average depth for the nose.
@RajkiranVeldur I did have a version of the code working with only 5 points. You'll need to use a different model (the source code has a pointer to it, I think) and, of course, update the heuristics, drawing, etc. that expect 68 points right now.
@maloel can you please share the code if you have one? It will help me save a lot of time. I appreciate your support. Thank you.
@RajkiranVeldur sorry, I no longer have it. :(
Oh! Okay. No worries. Will try from my end. Thank you.
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Can we try running the face anti-spoofing (rs-face-dlib) with 5 landmarks instead of 68?
As I'm researching on the concepts of Spoof detection using intel Realsense, I would like to know if we can run the same code (rs-face-dlib) with lesser landmarks, instead of more landmarks? Thanks you.