Sometimes user ID is wrong

I try to get the userID in OnNewUserEvent.
But sometimes userID is 2 when frame.NumUsers is 1.
Why is it?

I solved this issue.

The userID is a reference to the tracked object - each time it detects a new user it increments the id

  • in theory it can go up quite high - though the sdk used to have a limit around 24 if I recall.

As such the userID and NumUsers have no direct relationship to each.


Thank you for your reply.

I got it.