MultiPoseMatcher

public class MultiPoseMatcher<Skeleton> where Skeleton : SkeletonType
  • List of currently identified poses.

    Declaration

    Swift

    private(set) public var identifiedPoses: [Int : (pose: Pose<Skeleton>, id: Int, lastIdentifiedAt: Date)]
  • List of poses to match new pose list to.

    Declaration

    Swift

    public var poses: [Pose<Skeleton>] { get }
  • IOU Threshold required for a pose to be considered a match

    Declaration

    Swift

    public let iouThreshold: Float
  • Time interval to lookback when matching poses. Any poses not matched that are older than this value will be removed.

    Declaration

    Swift

    public let lookback: TimeInterval
  • Declaration

    Swift

    public init(iouThreshold: Float, lookback: TimeInterval = 2.0)
  • Declaration

    Swift

    private(set) public var poseCount: Int
  • Match list of poses

    Declaration

    Swift

    public func match(poses: [Pose<Skeleton>]) -> [IdentifiedPose<Skeleton>?]
  • Update poses with new poses,

    Declaration

    Swift

    public func update(
      with newPoses: [Pose<Skeleton>],
      having matches: [IdentifiedPose<Skeleton>?]? = nil
    ) -> [IdentifiedPose<Skeleton>]