You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have assigned ID of the users in an scattered manner where we assigned more than 65535 to about 5K of users. Now we cannot create any more users as the limit has reached.
We are thinking about a solution to keep the fingerprint of existing users and somehow change their IDs to start from 1 and assigned continuous IDs.
To do that, would you please let us know if any of the followings are possible?
Update the ID of a user
Copy the user with the fingerprint data to a new user with the desired ID and then delete the old one. Deleting and creating a new user without the fingerprint is possible already.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
You can def save_user_template(self, user, fingers=[]):
"""
save user and template
:param user: user
:param fingers: list of finger. (The maximum index 0-9)
"""
#temp_id is template id def enroll_user(self, uid=0, temp_id=0, user_id=''):
"""
start enroll user
:param uid: uid
:param temp_id: template id
For cleaning old user records you can use delete_user after #218
Enroll should work up to I(which is approximately 4 million)
command_string = pack('<Ib', int(user_id), temp_id)
If you are talking about template_id, that's another story, template_id supports up to a byte only, so keep it clean.
Given these solutions, if there are no further questions or issues, I suggest closing this issue as the provided approach seems sufficient to handle the user ID management and fingerprint data.
Closes #210
We have assigned ID of the users in an scattered manner where we assigned more than 65535 to about 5K of users. Now we cannot create any more users as the limit has reached.
We are thinking about a solution to keep the fingerprint of existing users and somehow change their IDs to start from 1 and assigned continuous IDs.
To do that, would you please let us know if any of the followings are possible?
Thanks in advance.
The text was updated successfully, but these errors were encountered: