Pose Tracking
API Interface of the iOS Framework
Define holistic pose model variable
private var holisticPoseModel: HolisticPoseModel?Configure and Instantiate the model with HolisticPoseModelBuilder
@interface HolisticPoseModelBuilder : NSObject
- (instancetype _Nonnull)init;
/**
* \brief Sets the complexity of the used pose landmark model.
*
* \param complexity New pose landmark model complexity.
* Higher model complexity corresponds to higher accuracy of
* the landmarks, but also increases inference latency.
* Default to \a PoseModelComplexity_Normal.
*
* \returns Pointer to the \a HolisticPoseModelBuilder.
*/
- (HolisticPoseModelBuilder* _Nonnull)setPoseModelComplexity:(PoseModelComplexity)complexity;
/**
* \brief Enables pose landmarks smoothing to reduce jitter between consequent
* input frames.
*
* \param enable If set to \a true, the solution filters pose landmarks across
* different input images to reduce jitter. Default to \a true.
*
* \returns Pointer to the \a HolisticPoseModelBuilder.
*/
- (HolisticPoseModelBuilder* _Nonnull)enablePoseLandmarksSmoothing:(bool)enable;
/**
* \brief Enables face landmarks refinement.
*
* \param enable If set to \a true, the solution refines face landmarks
* coordinates around the eyes and lips, and output additional
* landmarks around the irises.
* Default to \a false.
*
* \returns Pointer to the \a HolisticPoseModelBuilder.
*/
- (HolisticPoseModelBuilder* _Nonnull)enableFaceLandmarksRefinement:(bool)enable;
/**
* \brief Creates a new instance of \a HolisticPoseModel.
*
* \param error Object containing error information if model instantiation fails.
*
* \returns Pointer to the new instance of \a HolisticPoseModel if instantiation
* is successful, \a nil otherwise.
*
* \note Model instantiation is a blocking call which can take some time, therefore
* this should be done on a separate serial dispatch queue.
* That won't block the main queue which keeps the UI responsive.
*/
- (HolisticPoseModel* _Nullable)build:(NSError* _Nullable* _Nonnull)error;
@endExample:
Schedule the task with HolisticPoseModel.detect method when the model is instantiated
HolisticPoseModel returns its results through the HolisticPoseDelegate
Example:
Each HolisticPose instance is represented with the following class
Last updated