Software Archive
Read-only legacy content
17061 Discussions

Get Event Face Recognition

Septiadi_R_
Beginner
1,084 Views

How to find an event when a person's face is detected in the database? (C#)

Example

if(?????????){

Messagebox....

}

0 Kudos
5 Replies
Bryan_B_Intel1
Employee
1,084 Views

Does this help?

                            // Retrieve the recognition data instance
                            recognitionData = face.QueryRecognition();
  
                            if (recognitionData.IsRegistered())
                            {
                                userId = Convert.ToString(recognitionData.QueryUserID());  

                            }

-Bryan

0 Kudos
Septiadi_R_
Beginner
1,084 Views

Bryan Brown (Intel) wrote:

Does this help?

                            // Retrieve the recognition data instance
                            recognitionData = face.QueryRecognition();
  
                            if (recognitionData.IsRegistered())
                            {
                                userId = Convert.ToString(recognitionData.QueryUserID());  

                            }

-Bryan

Thank you Bryan Brown..
how if I want to change userId from 1. because by default userId starting from 100?

0 Kudos
PKusm
New Contributor I
1,084 Views

There is no such method to change the user ID, however there always workaround solutions to that matter:
1. You can make your own database which map the Intel RealSense user ID (100-based number) to your customized user ID in your application. By using this approach, you can change the user ID into any characthers (num/alpha).
2. If you the first approach is overkill for you, then you can just put 1 more line before displaying user ID in the UI of your apps: myUserID = realSenseUserID - 99; So that, the displayed user ID will always start from 1.

Hope it helps,
Cheers

0 Kudos
gaston_b_
Beginner
1,084 Views

My question is that whenever I register a user it will always saves the user with userID = 100! 

Even when I am using the sample software it will always identify as userID = 100.

What am I missing?

0 Kudos
Lucas_M_2
Beginner
1,084 Views

I think it may have something to do with the Buffer.
Have you saved the buffer on your database as a Byte array and retrieved it?

0 Kudos
Reply