class PoseDetector : NSObject
A detector for performing body-pose estimation.
Returns a pose detector with the given options.
class func poseDetector(options: MLKCommonPoseDetectorOptions) -> Self
Options for configuring the pose detector.
A pose detector configured with the given options.
Unavailable. Use the class methods.
Returns the pose results in the given image. The pose detection is performed synchronously on the calling thread.
It is advised to call this method off the main thread to avoid blocking the UI. As a result, an
NSExceptionis raised if this method is called on the main thread.
func results(in image: MLKitCompatibleImage) throws -> [MLKPose]
The image to get results in.
An optional error parameter populated when there is an error getting results.
The array of poses detected in the given image or
nilif there was an error. If no poses are detected, then an empty array will be returned.