bodyHeight
TypeScriptget bodyHeight(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationlet bodyHeight: Measurement<UnitLength>The estimated human body height.
struct · iOS 18.0+ · SDK 27.1
struct HumanBodyPose3DObservationAn observation that provides the three-dimensional body points the request recognizes.
get bodyHeight(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationlet bodyHeight: Measurement<UnitLength>The estimated human body height.
get confidence(): numberSwift declarationlet confidence: FloatThe level of confidence normalized to `[0, 1]` where `1` is most confident. The only exception is results coming from `CoreMLRequest`, where confidence values are forwarded as is from relevant CoreML models
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
pointInImage(jointName: HumanBodyPose3DObservation_JointName): NormalizedPointSwift declarationfunc pointInImage(for jointName: HumanBodyPose3DObservation.JointName) -> NormalizedPointReturns a 2D point for the joint name you specify, relative to the input image. - Parameters: - jointName: The name of the human body joint. - Returns: A projection of the 3D position onto the original 2D image in normalized, lower left origin coordinates.
parentJointName(jointName: HumanBodyPose3DObservation_JointName): HumanBodyPose3DObservation_JointNameSwift declarationfunc parentJointName(for jointName: HumanBodyPose3DObservation.JointName) -> HumanBodyPose3DObservation.JointNameReturns the parent joint of the joint name you specify.
get cameraOriginMatrix(): SDKHandleSwift declarationlet cameraOriginMatrix: simd_float4x4A transform from the skeleton hip to the camera.
get availableJointNames(): Array<HumanBodyPose3DObservation_JointName>Swift declarationvar availableJointNames: [HumanBodyPose3DObservation.JointName] { get }The names of the available joints in the observation.
cameraRelativePosition(jointName: HumanBodyPose3DObservation_JointName): SDKHandleSwift declarationfunc cameraRelativePosition(for jointName: HumanBodyPose3DObservation.JointName) -> simd_float4x4Returns a position relative to the camera for the body joint you specify. - Parameters: - jointName: The name of the human body joint. - Returns: The joint position, in meters.
get availableJointsGroupNames(): Array<HumanBodyPose3DObservation_JointsGroupName>Swift declarationvar availableJointsGroupNames: [HumanBodyPose3DObservation.JointsGroupName] { get }The names of the available joint groupings in the observation.
get heightEstimationTechnique(): HumanBodyPose3DObservation_EstimationTechniqueSwift declarationlet heightEstimationTechnique: HumanBodyPose3DObservation.EstimationTechniqueThe technique the framework uses to estimate body height.
get originatingRequestDescriptor(): (RequestDescriptor) | nullSwift declarationlet originatingRequestDescriptor: RequestDescriptor?The descriptor of the request that produced the observation.
get uuid(): stringSwift declarationlet uuid: UUIDThe unique identifier for the observation.
joint(jointName: HumanBodyPose3DObservation_JointName): (Joint3D) | nullSwift declarationfunc joint(for jointName: HumanBodyPose3DObservation.JointName) -> Joint3D?Retrieves a joint for a given joint name.
allJoints(groupName?: (HumanBodyPose3DObservation_JointsGroupName) | null): NativeMap<HumanBodyPose3DObservation_JointName, Joint3D>Swift declarationfunc allJoints(in groupName: HumanBodyPose3DObservation.JointsGroupName? = nil) -> [HumanBodyPose3DObservation.JointName : Joint3D]Retrieves a dictionary of joints for a joint group.
get timeRange(): (_CoreMedia_CMTimeRange) | nullSwift declarationlet timeRange: CMTimeRange?The time range of the reported observation. When evaluating a sequence of image buffers, use this property to determine each observation’s start time and duration.
static init(observation: VNHumanBodyPose3DObservation): HumanBodyPose3DObservationSwift declarationinit(_ observation: VNHumanBodyPose3DObservation)No declarations were skipped in this snapshot.