0

我想从 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
4

1 回答 1

0

JointType错误地引用了枚举。有关可能的枚举值的列表,请参阅 MSDN 上的JointType Enumeration 文档

JointType.KneeLeft,不是“左膝”。

于 2013-06-11T16:33:54.420 回答