Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a way to identify the number of detected bodies #24

Open
grrrwaaa opened this issue Oct 2, 2015 · 0 comments
Open

Expose a way to identify the number of detected bodies #24

grrrwaaa opened this issue Oct 2, 2015 · 0 comments

Comments

@grrrwaaa
Copy link

grrrwaaa commented Oct 2, 2015

According to the MSDN docs:

"The BodyIndexFrame Class represents a frame that is computed based on the depth image. This image tells you which depth or infrared pixels belong to tracked people and which belong to the background. The pixel values in this frame are 8-bit unsigned integers, where 0-5 map directly to the BodyData index in the BodyFrame Class. Values greater than the value obtained from BodyFrameSource.BodyCount Property indicate that the pixel is part of the background, not associated with a tracked body. This frame is useful for green screening applications..."
https://msdn.microsoft.com/en-us/library/dn782033.aspx

There doesn't seem to be a way to access this BodyFrameSource.BodyCount from the KCB2 API. BodyFrame::getBodies().size() always returns 6, for example, regardless whether any bodies are visible. Is there another way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant