我想从 Kinect 跟踪关节位置(LeftKnee)。问题是我reference to a non-shared member requires an object reference
参与Skeleton.Joints
其中。任何人都可以帮助我吗?
Private Sub SensorSkeletonFrameReady(ByVal sender As Object, ByVal e As SkeletonFrameReadyEventArgs)
Dim skeletons(-1) As Skeleton
Using skeletonFrame As SkeletonFrame = e.OpenSkeletonFrame()
If skeletonFrame IsNot Nothing Then
skeletons = New Skeleton(skeletonFrame.SkeletonArrayLength - 1) {}
skeletonFrame.CopySkeletonDataTo(skeletons)
Dim j As Joint = Skeleton.Joints(JointType.LeftKnee)
End If
End Using