Pose Estimation

Capability Introduction

Key skeletal features of a human body, precise detection

This API detects 14 key features of human bodies in images, and feeds back coordinate information of such features, including information of key skeletal features such as head, neck, left and right shoulders, as well as left and right elbows.
Scenarios

Behavior recognition, posture capture

This API can be used to accurately detect key skeletal features of a human body and is applicable to scenarios based on human posture capture, such as behavior recognition and human tracking.

Exercise and fitness

Provides exercise guidances by comparing the the estimated motions based on skeletal feature detection with standard exercise motion.

Intelligent security

Determines whether a person in the surveillance area has any abnormal behavior based on skeletal feature detection, so as to issue warnings and take security measures promptly.

Description

Request
Copy

VisionImage image = VisionImage.fromBitmap(dstbmp);
ArrayList<BodySkeletons> mBodySkeletons = new ArrayList<>();
int resultCode = mDetector.detect(image, mBodySkeletons, null);

Response
Copy

json:{
"resultCode":0,
"PoseEstimationResult":"[
{\"id\":0,\"skeletons\":[{\"x\":507,\"y\":109},{\"x\":459,\"y\":203},{\"x\":399,\"y\":218},{\"x\":350,\"y\":312},{\"x\":326,\"y\":343},{\"x\":507,\"y\":250},{\"x\":568,\"y\":265},{\"x\":616,\"y\":250},{\"x\":362,\"y\":437},{\"x\":338,\"y\":625},{\"x\":229,\"y\":875},{\"x\":435,\"y\":453},{\"x\":532,\"y\":734},{\"x\":507,\"y\":750}]},
{\"id\":1,\"skeletons\":[{\"x\":580,\"y\":578},{\"x\":616,\"y\":640},{\"x\":592,\"y\":671},{\"x\":544,\"y\":718},{\"x\":0,\"y\":0},{\"x\":653,\"y\":625},{\"x\":713,\"y\":546},{\"x\":0,\"y\":0},{\"x\":737,\"y\":781},{\"x\":713,\"y\":937},{\"x\":0,\"y\":0},{\"x\":749,\"y\":765},{\"x\":713,\"y\":937},{\"x\":0,\"y\":0}]},
{\"id\":2,\"skeletons\":[{\"x\":60,\"y\":171},{\"x\":60,\"y\":218},{\"x\":0,\"y\":0},{\"x\":0,\"y\":0},{\"x\":0,\"y\":0},{\"x\":169,\"y\":203},{\"x\":205,\"y\":187},{\"x\":229,\"y\":156},{\"x\":72,\"y\":500},{\"x\":60,\"y\":703},{\"x\":12,\"y\":890},{\"x\":157,\"y\":500},{\"x\":217,\"y\":671},{\"x\":145,\"y\":875}]}]"}

Start development here with Huawei

Service introduction

Service overview, application scenarios, and functions
Learn more

Access preparation

Preparation for access, such as registration, authentication, and agreement signing
Learn more

Sample code

Demonstration of sample code
Learn more

API description

Interface parameter definition, description, restrictions, and constraints
Learn more
FAQ
1Can I call the faceCompare() method without calling the prepare() method of the API?

Yes, you can. The engine is started by default in the faceCompare() method. If the engine has already been started, it will not restart.

2Which mobile phone models does this API support?

Currently, the API only supports mobile phones equipped with Kirin 970/980 chips.

3Does this API compute on-device or in-cloud?

The API computes on-device, and can be used normally without network connection.