Keypoint

public class Keypoint<Skeleton> : NSObject, KeypointType where Skeleton : SkeletonType

Predicted keypoint containing part, score, and position identified.

  • Declaration

    Swift

    public let index: Int
  • Declaration

    Swift

    public let position: CGPoint
  • Declaration

    Swift

    public let score: Double
  • Declaration

    Swift

    public let part: Skeleton
  • Declaration

    Swift

    public required init(index: Int, position: CGPoint, score: Double, part: Skeleton)
  • Declaration

    Swift

    public override var description: String { get }
  • Creates keypoint from Point.

    Declaration

    Swift

    public func fromPosition(_ position: CGPoint) -> Self

    Parameters

    position

    Point

  • Declaration

    Swift

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

    Swift

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

    Swift

    public func normalized(by size: CGSize) -> Keypoint