One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

Pose

struct · iOS 16.0+ · SDK 27.1

struct Pose

A pose that contains joint keypoints from a person, a hand, or a combination.

Members (4)

method · iOS 16.0+

boundingBoxArea

TypeScript
boundingBoxArea(confidenceThreshold?: number): number
Swift declaration
func boundingBoxArea(confidenceThreshold: Float = 0.2) -> Float

Computes the bounding box area of the pose. - Parameters: - confidenceThreshold: a threshold confidence between 0 to 1 for the keypoints to be considered valid to compute the bounding box area. The default value is 0.2.

get · iOS 16.0+

keypoints

TypeScript
get keypoints(): NativeMap<JointKey, JointPoint>
Swift declaration
var keypoints: [JointKey : JointPoint]

A dictionary of all keypoints in the pose

set · iOS 16.0+

keypoints

TypeScript
set keypoints(value: NativeMap<JointKey, JointPoint>)
Swift declaration
var keypoints: [JointKey : JointPoint]

A dictionary of all keypoints in the pose

init · iOS 16.0+

init

TypeScript
static init(observation: _Vision_VNRecognizedPointsObservation): Pose
Swift declaration
init(_ observation: VNRecognizedPointsObservation) throws

Creates a pose from a body or hand pose observation. - Parameters: - observation: Recognized points observation that comes from either a body pose or hand pose request.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →