AI-generated Key Takeaways
-
This document provides globally available type definitions for Pose Detection.
-
Included are definitions for PoseDetectorMode, PoseDetectionCallback, and PoseLandmarkType.
-
PoseDetectorMode defines the modes for the pose detector.
-
PoseDetectionCallback is a block that provides the results of pose detection, including an array of poses or an error.
-
PoseLandmarkType defines the type of a pose landmark.
Type Definitions
The following type definitions are available globally.
-
@enum PoseDetectorMode Pose detector modes.
Declaration
Swift
struct PoseDetectorMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
A block containing the pose detection results.
Declaration
Swift
typealias PoseDetectionCallback = ([MLKPose]?, Error?) -> Void
Parameters
poses
The array of poses detected in the given image or
nil
if there was an error. If no poses are detected, then an empty array will be returned.error
The error or
nil
. -
Defines a pose landmark type.
Declaration
Swift
struct PoseLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable