public class AiliaPoseEstimatorModel
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
static int |
ALGORITHM_ACCULUS_FACE
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.ACCULUS_FACE |
static int |
ALGORITHM_ACCULUS_HAND
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.ACCULUS_HAND |
static int |
ALGORITHM_ACCULUS_POSE
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.ACCULUS_POSE |
static int |
ALGORITHM_ACCULUS_UPPOSE
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.ACCULUS_UPPOSE |
static int |
ALGORITHM_ACCULUS_UPPOSE_FPGA
Deprecated.
|
static int |
ALGORITHM_LW_HUMAN_POSE
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.LW_HUMAN_POSE |
static int |
ALGORITHM_OPEN_POSE
Deprecated.
Please use
AiliaPoseEstimatorAlgorithm.OPEN_POSE |
static int |
ALGORITHM_OPEN_POSE_SINGLE_SCALE
Deprecated.
|
Constructor and Description |
---|
AiliaPoseEstimatorModel(long netHandle,
AiliaPoseEstimatorAlgorithm algorithm)
Creates a estimator instance.
|
AiliaPoseEstimatorModel(long netHandle,
int algorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Destroys the estimator instance.
|
void |
compute(byte[] src,
int srcStride,
int srcWidth,
int srcHeight,
AiliaImageFormat srcFormat)
Performs human pose estimation and human face landmarks extraction.
|
int |
getObjectCount()
Gets the number of detection results.
|
AiliaPoseEstimatorObjectFace |
getObjectFace(int objIndex)
Gets the results of the human face landmarks extraction.
|
AiliaPoseEstimatorObjectPose |
getObjectPose(int objIndex)
Gets the results of the human pose estimation.
|
AiliaPoseEstimatorObjectUpPose |
getObjectUpPose(int objIndex)
Gets the results of the human up pose estimation.
|
void |
setThreshold(float threshold)
Set the detection threshold.
|
@Deprecated public static final int ALGORITHM_ACCULUS_POSE
AiliaPoseEstimatorAlgorithm.ACCULUS_POSE
@Deprecated public static final int ALGORITHM_ACCULUS_FACE
AiliaPoseEstimatorAlgorithm.ACCULUS_FACE
@Deprecated public static final int ALGORITHM_ACCULUS_UPPOSE
AiliaPoseEstimatorAlgorithm.ACCULUS_UPPOSE
@Deprecated public static final int ALGORITHM_ACCULUS_UPPOSE_FPGA
AiliaPoseEstimatorAlgorithm.ACCULUS_UPPOSE_FPGA
@Deprecated public static final int ALGORITHM_ACCULUS_HAND
AiliaPoseEstimatorAlgorithm.ACCULUS_HAND
@Deprecated public static final int ALGORITHM_OPEN_POSE
AiliaPoseEstimatorAlgorithm.OPEN_POSE
@Deprecated public static final int ALGORITHM_LW_HUMAN_POSE
AiliaPoseEstimatorAlgorithm.LW_HUMAN_POSE
@Deprecated public static final int ALGORITHM_OPEN_POSE_SINGLE_SCALE
AiliaPoseEstimatorAlgorithm.OPEN_POSE_SINGLE_SCALE
public AiliaPoseEstimatorModel(long netHandle, AiliaPoseEstimatorAlgorithm algorithm) throws AiliaException
netHandle
- A network instance handlealgorithm
- AiliaPoseEstimatorAlgorithm
AiliaException
- ExceptionAiliaPoseEstimator.Create(long, int)
@Deprecated public AiliaPoseEstimatorModel(long netHandle, int algorithm) throws AiliaException
AiliaPoseEstimatorModel(long, AiliaPoseEstimatorAlgorithm)
AiliaException
public void close()
close
in interface java.lang.AutoCloseable
AiliaFeatureExtractor.Destroy(long)
public void setThreshold(float threshold) throws AiliaException
threshold
- The detection threshold (for example, 0.1f) (The smaller it is, the easier the detection will be and the more detected objects found.)AiliaException
- ExceptionAiliaPoseEstimator.SetThreshold(long, float)
public void compute(byte[] src, int srcStride, int srcWidth, int srcHeight, AiliaImageFormat srcFormat) throws AiliaException
src
- Image data (32 bpp)srcStride
- The number of bytes in 1 linesrcWidth
- Image widthsrcHeight
- Image heightsrcFormat
- Image format (AiliaImageFormat
)AiliaException
- ExceptionAiliaPoseEstimator.Compute(long, byte[], int, int, int, int)
public int getObjectCount() throws AiliaException
AiliaException
- ExceptionAiliaPoseEstimator.GetObjectCount(long)
public AiliaPoseEstimatorObjectPose getObjectPose(int objIndex) throws AiliaException
objIndex
- Object indexAiliaException
- ExceptionAiliaPoseEstimator.GetObjectPose(long, int, int)
public AiliaPoseEstimatorObjectFace getObjectFace(int objIndex) throws AiliaException
objIndex
- Object indexAiliaException
- ExceptionAiliaPoseEstimator.GetObjectFace(long, int, int)
public AiliaPoseEstimatorObjectUpPose getObjectUpPose(int objIndex) throws AiliaException
objIndex
- Object indexAiliaException
- ExceptionAiliaPoseEstimator.GetObjectUpPose(long, int, int)