Pose

@available(iOS 11.0, *)
public class Pose<Skeleton> : NSObject where Skeleton : SkeletonType

Detected pose with Keypoints and corresponding score.

  • Declaration

    Swift

    public static func == (lhs: Pose<Skeleton>, rhs: Pose<Skeleton>) -> Bool
  • List of keypoints on pose

    Declaration

    Swift

    public let keypoints: [Keypoint<Skeleton>]
  • Pose confidence score.

    Declaration

    Swift

    public let score: Double
  • Bounds of keypoint values.

    Declaration

    Swift

    public let bounds: CGSize
  • Declaration

    Swift

    public required init(keypoints: [Keypoint<Skeleton>], score: Double, bounds: CGSize)
  • Declaration

    Swift

    public override var description: String { get }
  • The bounding rectangle of the keypoints.

    Declaration

    Swift

    public var boundingRect: CGRect { get }
  • Scale pose coordinates to match target dimensions. Use when transforming coordinate spaces.

    Declaration

    Swift

    public func scaled(to targetDimensions: CGSize) -> Pose<Skeleton>

    Parameters

    targetDimensions

    Dimensions of coordinate space to scale keypoint positions to.

    Return Value

    Pose with scaled keypoints.

  • Declaration

    Swift

    public func getKeypoint(for part: Skeleton) -> Keypoint<Skeleton>?
  • Declaration

    Swift

    public func to3D() -> Pose3D<Skeleton>
  • Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool