IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

[Question] human or photo detection #12915

Closed rifai-github closed 5 months ago

rifai-github commented 6 months ago

I have an Intel RealSense D455 device. I want to detect whether what is in front of the camera is a human or a piece of photo paper. I want to take advantage of the depth sensor on the D455. Can it? I use the Unity engine.

I've searched several forums but haven't found any insight into my problem.

Thank You


Required Info
Camera Model D455
Firmware Version 5.16.0.1
Operating System & Version Windows 11
Platform PC
SDK Version v2.55.1
Language Unity
Segment others

Issue Description

MartyG-RealSense commented 6 months ago

Hi @rifai-github The RealSense SDK provides a C++ anti-spoofing example that uses the Dlib facial landmark recognition library.

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/dlib/face

If your project requires Unity though then you will need a Unity or C# based solution. You could investigate the possibility of using the Dlib FaceLandmark Detector asset on the Unity Asset Store.

https://assetstore.unity.com/packages/tools/integration/dlib-facelandmark-detector-64314

There is also a commercial solution called Cyberlink FaceMe which supports integration into the user's projects via C#.

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

MartyG-RealSense commented 5 months ago

Hi @rifai-github Do you require further assistance with this case, please? Thanks!

MartyG-RealSense commented 5 months ago

Case closed due to no further comments received.

rifai-github commented 5 months ago

sorry for just replying to the message. Thank you for your help, this works for me and is very helpful. Thank You @MartyG-RealSense

MartyG-RealSense commented 5 months ago

It's no trouble at all, @rifai-github - I'm pleased to hear that you achieved a solution. Thanks very much for the update!