MLKitPoseDetectionCommon Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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
|
|
-
Defines a pose landmark type.
Declaration
Swift
struct PoseLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThis document provides globally available type definitions for Pose Detection.\u003c/p\u003e\n"],["\u003cp\u003eIncluded are definitions for PoseDetectorMode, PoseDetectionCallback, and PoseLandmarkType.\u003c/p\u003e\n"],["\u003cp\u003ePoseDetectorMode defines the modes for the pose detector.\u003c/p\u003e\n"],["\u003cp\u003ePoseDetectionCallback is a block that provides the results of pose detection, including an array of poses or an error.\u003c/p\u003e\n"],["\u003cp\u003ePoseLandmarkType defines the type of a pose landmark.\u003c/p\u003e\n"]]],[],null,["# MLKitPoseDetectionCommon Framework Reference\n\nType Definitions\n================\n\nThe following type definitions are available globally.\n- `\n ``\n ``\n `\n\n ### [PoseDetectorMode](#/c:MLKCommonPoseDetectorOptions.h@T@MLKPoseDetectorMode)\n\n `\n ` \n @enum PoseDetectorMode\n Pose detector modes. \n\n #### Declaration\n\n Swift \n\n struct PoseDetectorMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable\n\n- `\n ``\n ``\n `\n\n ### [PoseDetectionCallback](#/c:MLKPoseDetector.h@T@MLKPoseDetectionCallback)\n\n `\n ` \n A block containing the pose detection results. \n\n #### Declaration\n\n Swift \n\n typealias PoseDetectionCallback = ([MLKPose]?, Error?) -\u003e Void\n\n #### Parameters\n\n |---------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*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. |\n | ` `*error*` ` | The error or `nil`. |\n\n- `\n ``\n ``\n `\n\n ### [PoseLandmarkType](#/c:MLKPoseLandmark.h@T@MLKPoseLandmarkType)\n\n `\n ` \n Defines a pose landmark type. \n\n #### Declaration\n\n Swift \n\n struct PoseLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable"]]