MLKitPoseDetectionCommon 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
@枚举 PoseDetectorMode
姿势检测器模式。
声明
Swift
struct PoseDetectorMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
声明
Swift
typealias PoseDetectionCallback = ([MLKPose]?, Error?) -> Void
参数
poses
|
在给定图像中检测到的姿势数组,如果出现错误,则返回 nil 。如果拒绝
则会返回空数组。
|
error
|
|
-
声明
Swift
struct PoseLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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"]]