RRPoseDetection

Objective-C

@interface RRPoseDetection : NSObject

Swift

class RRPoseDetection : NSObject

A class providing pose detection functionality for humans. This class supports two different algorithms to detect human poses.

  • Initializer

    Declaration

    Objective-C

    - (nonnull instancetype)init:(nonnull NSString *)path
                         andType:(RRPoseDetectionType)type;

    Swift

    init(_ path: String, andType type: RRPoseDetectionType)

    Parameters

    path

    Path to the needed model file. Make sure to provide the correct model file depending on the desired type

    type

    The pose detection algorithm type.

  • Run pose detection on an image

    Declaration

    Objective-C

    - (nonnull NSArray<RRPoseDetectionJoint *> *)detectJoints:
        (nonnull RRImage *)image;

    Swift

    func detectJoints(_ image: RRImage) -> [RRPoseDetectionJoint]

    Parameters

    image

    The image to detect the pose of a human visible in the image.

    Return Value

    An array including the detected joints.