What's the expected performance of VNHumandBodyPoseObservation::recognizedPoint

Is it safe to assume once the observation has been generated, the points are cached in some structure internal to the observation?

Answered by OOPer in 693563022

Thanks for showing the link.

Is it safe to assume once the observation has been generated, the points are cached in some structure internal to the observation?

The problem is that it is not clear what you mean by cached.

You should better not expect anything unless it is explicitly documented.

But as far as I can see in the docs and in my experiences I have used other Vision features till now, VNHumanBodyPoseObservation is a class type, so the points held in an instance would be kept while the instance is alive.

In other words, you should not expect that the points would be updated even if you performed another VNDetectHumanBodyPoseRequest.

If you think this is not answering to your question, please explain what you mean by cached more precisely.

Where did you find VNHumandBodyPoseObservation ? I cannot find it anywhere in doc, nor on the web.

Accepted Answer

Thanks for showing the link.

Is it safe to assume once the observation has been generated, the points are cached in some structure internal to the observation?

The problem is that it is not clear what you mean by cached.

You should better not expect anything unless it is explicitly documented.

But as far as I can see in the docs and in my experiences I have used other Vision features till now, VNHumanBodyPoseObservation is a class type, so the points held in an instance would be kept while the instance is alive.

In other words, you should not expect that the points would be updated even if you performed another VNDetectHumanBodyPoseRequest.

If you think this is not answering to your question, please explain what you mean by cached more precisely.

Thanks OOPer for your timely response. Let me clarify further.

In other words, you should not expect that the points would be updated even if you performed another VNDetectHumanBodyPoseRequest.

This is not my expectation.

I have some code that may inspect a single observation multiple times. Due to some business constraints, it's possible we may query, for instance, for LeftHand more than once on a single observation. I am wondering if it's worth maintaining an external cache of queried points for a given observation, or if it's safe to assume the observation has such a structure internally. I suspect the latter is true and it seems like you agree.

What's the expected performance of VNHumandBodyPoseObservation::recognizedPoint
 
 
Q