Items with no label
3335 Discussions

Face Recognition

rwahy
Beginner
1,318 Views

when removing face id in the database, the source code below deletes the entire registered face id. how to just delete on id that want to delete only? thanks

private void DeleteDatabaseFile()

{

if (File.Exists(DatabaseFilename))

{

File.Delete(DatabaseFilename);

dbState = "Deleted";

}

else

{

dbState = "Not Found";

}

}

0 Kudos
1 Reply
MartyG
Honored Contributor III
219 Views

Do you mean that you want to remove a single ID and not delete the entire database file? If so, removing an ID from the face database is called 'unregistering'. The instruction in the old '2016 R2' and '2016 R3' SDKs to do this is called 'UnregisterUserByID'.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?unregisteruserbyid_recognitionmoduledata_pxcfacedata.html Intel® RealSense™ SDK 2016 R3 Documentation

The sample face recognition program linked to below has an unregister feature, so you could look at the program's code to see how it unregisters.

https://software.intel.com/en-us/articles/code-sample-facial-recognition-using-intel-realsense-sdk Archived - Code Sample: Facial Recognition Using Intel® RealSense™ SDK | Intel® Software

0 Kudos
Reply