public class AiliaPoseEstimator
extends java.lang.Object
Constructor and Description |
---|
AiliaPoseEstimator() |
Modifier and Type | Method and Description |
---|---|
static void |
Compute(long handle,
byte[] src,
int srcStride,
int srcWidth,
int srcHeight,
int srcFormat)
Performs human pose estimation and human face landmarks extraction.
|
static long |
Create(long netHandle,
int algorithm)
Creates a estimator instance.
|
static void |
Destroy(long handle)
Destroys the estimator instance.
|
static int |
GetObjectCount(long handle)
Gets the number of detection results.
|
static AiliaPoseEstimatorObjectFace |
GetObjectFace(long handle,
int objIndex,
int version)
Gets the results of the human face landmarks extraction.
|
static AiliaPoseEstimatorObjectPose |
GetObjectPose(long handle,
int objIndex,
int version)
Gets the results of the human pose estimation.
|
static AiliaPoseEstimatorObjectUpPose |
GetObjectUpPose(long handle,
int objIndex,
int version)
Gets the results of the human up pose estimation.
|
static void |
SetThreshold(long handle,
float threshold)
Set the detection threshold.
|
public static long Create(long netHandle, int algorithm) throws AiliaException
netHandle
- A network instance handlealgorithm
- AiliaPoseEstimatorAlgorithm
AiliaException
- Exceptionpublic static void Destroy(long handle)
handle
- An estimator instance handlepublic static void SetThreshold(long handle, float threshold) throws AiliaException
handle
- An estimator instance handlethreshold
- The detection threshold (for example, 0.1f) (The smaller it is, the easier the detection will be and the more detected objects found.)AiliaException
- Exceptionpublic static void Compute(long handle, byte[] src, int srcStride, int srcWidth, int srcHeight, int srcFormat) throws AiliaException
handle
- An estimator instance handlesrc
- Image data (32 bpp)srcStride
- The number of bytes in 1 linesrcWidth
- Image widthsrcHeight
- Image heightsrcFormat
- Image format (AiliaImageFormat
)AiliaException
- Exceptionpublic static int GetObjectCount(long handle) throws AiliaException
handle
- An estimator instance handleAiliaException
- Exceptionpublic static AiliaPoseEstimatorObjectPose GetObjectPose(long handle, int objIndex, int version) throws AiliaException
handle
- An estimator instance handleobjIndex
- Object indexversion
- AiliaPoseEstimatorObjectPose.version
AiliaException
- Exceptionpublic static AiliaPoseEstimatorObjectFace GetObjectFace(long handle, int objIndex, int version) throws AiliaException
handle
- An estimator instance handleobjIndex
- Object indexversion
- AiliaPoseEstimatorObjectFace.version
AiliaException
- Exceptionpublic static AiliaPoseEstimatorObjectUpPose GetObjectUpPose(long handle, int objIndex, int version) throws AiliaException
handle
- An estimator instance handleobjIndex
- Object indexversion
- AiliaPoseEstimatorObjectUpPose.version
AiliaException
- Exception