Software Archive
Read-only legacy content

QueryUserID

Brennon_W_
Beginner
540 Views

Hi,

According to these docs:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/queryuserid_recognitiondata_pxcfacedata.html

An unrecognised user, should return -1.

I am getting an incremental UserID count from the same face being queried.

How is that possible?

 

Cheers

0 Kudos
4 Replies
Brennon_W_
Beginner
540 Views

Answering my own question here for anyone else.

The registration mode will determine how users are added to the database.

REGISTRATION_MODE_ON_DEMAND is what should be used to have control over when new users are added.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?recognitionregistrationmode_recognitionconfiguration_pxcfaceconfiguration.html

 

Cheers

0 Kudos
Brennon_W_
Beginner
540 Views

Actually, scratch that - this appears to be just a bug?

Regardless of the setting, new registrations just occur automatically.

0 Kudos
Brennon_W_
Beginner
540 Views

Ok.


This issue probably falls under the category of logical bug, because of the member function naming convention used in the SDK.


Because the designers of the SDK have used a pattern whereby Interface instances are returned through method queries, both "PXCMFaceData.Face" and "PXCMFaceData.DetectionData" types (sharing the same Interface type of PXCMFaceData) support the member function named of QueryUserID.

PXCMFaceData.Face.QueryUserID actually returns a FaceIdentifier, which is not documented at all.

PXCMFaceData.DetectionData.QueryUserID return correctly the UserID.

Intel: The descriptive name of the member function is nothing to do with the result. This should be corrected.

 

0 Kudos
Xusheng_L_Intel
Employee
540 Views

It was documented @https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/queryuserid_face_pxcfacedata.html, thanks!

0 Kudos
Reply