librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Frame rate is very slow in dlib face detection

Open subbuweb opened this issue 7 years ago • 8 comments

  • 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 :)


Required Info
Camera Model {D435 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (10)
Kernel Version (Linux Only) ( 4.14.13)
Platform PC
SDK Version { 2.30 }
Language {C#/C++ }
Segment {Face Anti spoof }

Issue Description

i trying with dlib face detection example. it's working but frame rate is very slow.. how to resolve. also i need c# equivalent code for face anti spoof detection.

subbuweb avatar Nov 28 '19 07:11 subbuweb

Face detection tends to be processing intensive. It may help to add hardware acceleration to your project with an Intel Neural Compute Stick 2 USB device alongside your RealSense camera.

https://store.intelrealsense.com/buy-intel-neural-compute-stick-2.html

An example of the results achievable with the stick can be seen in the YouTube video in the link below.

https://youtube.com/watch?v=wF3JD3jyGaA

Hopefully a member of the Intel RealSense staff on this forum can provide advice on your anti spoof question. In the meantime, you may find the following advice on anti-spoofing interesting:

https://github.com/IntelRealSense/librealsense/issues/2133#issuecomment-407519929

MartyG-RealSense avatar Nov 28 '19 22:11 MartyG-RealSense

Please provide sample code for face anti spoof (liveness) detection in c#. we have using intel realsense D435 camera

subbuweb avatar Nov 29 '19 07:11 subbuweb

please give me some solutions..

subbuweb avatar Dec 09 '19 12:12 subbuweb

If you absolutely need to use C# in your anti spoofing solution, the best solution I could find right now was a commercial solution called Cyberlink FaceMe which supports integration into the user's products via C#.

https://www.cyberlink.com/stat/technology/enu/tech_face.jsp

Please scroll down to near to the bottom of the page to find the section headed 'Secure Anti-Spoofing', which has an accompanying demonstration video.

MartyG-RealSense avatar Dec 09 '19 13:12 MartyG-RealSense


@MartyG-RealSense Thanks very much for the share! @subbuweb Did you get chance to try and any other questions about this? Looking forward to your update. Thanks!


@subbuweb Any update from your side? Thanks!


@subbuweb Could you please update? If we don’t hear from you in 7 days, this issue will be closed. Thanks!


@subbuweb Sorry we didn't hear from you for weeks. Will close the ticket at this point. Please feel free to create another ticket if you still have issue or questions. Thanks!