|
MeiCam SDK For Android
3.6.0
|
Human detection handle. More...
Classes | |
| class | DetectionConfig |
| Human detection configuration. For valid detection configuration flags, please refer to [HUMAN_DETECTION_DETECTION_CONFIG]. More... | |
| class | FaceData2D |
| 2D face data. More... | |
| class | FaceData3D |
| 3D face data. More... | |
| class | FaceFeature |
| Face feature detected. More... | |
| class | HumanFeature |
| Human feature detected, which holds features for each person. More... | |
Public Member Functions | |
| void | setDetectionIntegerParam (int param, int value) |
| Set integer parameter value. More... | |
| void | setDetectionFloatParam (int param, float value) |
| Set float parameter value. More... | |
| void | setDetectionBooleanParam (int param, boolean value) |
| Set boolean parameter value. More... | |
| HumanFeature | detect (byte[] imageBuffer, int pixelFormat, int imageWidth, int imageHeight, int imageStride, int orientation, DetectionConfig config) |
| Detect human features. More... | |
Static Public Attributes | |
Human detection feature config, used in handle creation. | |
| static final long | HUMAN_DETECTION_FEATURE_FACE_LANDMARK = 0x00000001 |
| Landmarks on human face. More... | |
| static final long | HUMAN_DETECTION_FEATURE_FACE_ACTION = 0x00000002 |
| Actions of human face. More... | |
| static final long | HUMAN_DETECTION_FEATURE_AVATAR_EXPRESSION = 0x00000004 |
| Avatar Expressions of human face. More... | |
| static final long | HUMAN_DETECTION_FEATURE_VIDEO_MODE = 0x00000008 |
| Video detection mode. More... | |
| static final long | HUMAN_DETECTION_FEATURE_IMAGE_MODE = 0x00000010 |
| Image detection mode. More... | |
| static final long | HUMAN_DETECTION_FEATURE_SEMI_IMAGE_MODE = 0x00008000 |
| Semi-image detection mode. More... | |
| static final long | HUMAN_DETECTION_FEATURE_MULTI_THREAD = 0x00000020 |
| Multi thread detection. More... | |
| static final long | HUMAN_DETECTION_FEATURE_SINGLE_THREAD = 0x00000040 |
| Single thread detection. More... | |
| static final long | HUMAN_DETECTION_FEATURE_EXTRA = 0x00000080 |
Human detection integer param. | |
| static final int | HUMAN_DETECTION_FACE_COUNT = 0 |
| Max face detection count. More... | |
| static final int | HUMAN_DETECTION_FREQUENCY = 1 |
Human detection float param. | |
| static final int | HUMAN_DETECTION_CAMERA_FOVY = 0 |
| Camera fovy. More... | |
| static final int | HUMAN_DETECTION_LANDMARKS_SMOOTH_THRESH = 1 |
| Landmarks smooth thresh. More... | |
| static final int | HUMAN_DETECTION_PE_RIGID_SMOOTH_THRESH = 2 |
| Rigid transform smooth thresh. More... | |
| static final int | HUMAN_DETECTION_SNAP_MOUTH_THRESH = 3 |
| Snap mouth thresh. More... | |
| static final int | HUMAN_DETECTION_MIN_RATIO = 4 |
Human detection boolean param. | |
| static final int | HUMAN_DETECTION_LANDMARKS_SMOOTH = 0 |
| Enable landmarks smooth. More... | |
| static final int | HUMAN_DETECTION_PE_RIGID_SMOOTH = 1 |
| Enable rigid transform smooth. More... | |
| static final int | HUMAN_DETECTION_PE_RIGID_TRANSFORM = 2 |
| Do rigid transform only. More... | |
| static final int | HUMAN_DETECTION_SNAP_MOUTH = 3 |
| Snap mouth. More... | |
| static final int | HUMAN_DETECTION_RESET_TRACKING = 4 |
Human detection video frame pixel format. | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_NV21 = 0 |
| YUV 4:2:0 12bpp (2 channels, one channel is a continuous luminance channel, and the other channel is a VU component interlaced) More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_NV12 = 1 |
| YUV 4:2:0 12bpp (2 channels, one channel is a continuous luminance channel, and the other channel is a UV component interlaced) More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_YUV420 = 2 |
| YUV 4:2:0 12bpp (3 channels, one luminance channel, the other two are U component and V component channels. All channels are continuous) More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_RGBA8 = 3 |
| RGBA 32bpp. More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_BGRA8 = 4 |
| BGRA 32bpp. More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_RGB8 = 5 |
| RGB 24bpp. More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_BGR8 = 6 |
| BGR 24bpp. More... | |
| static final int | HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT_GRAY8 = 7 |
Human detection config used when detecting. | |
| static final long | HUMAN_DETECTION_FACE_FEATURE_2D = 0x00000001 |
| Face landmarks detection. More... | |
| static final long | HUMAN_DETECTION_FACE_FEATURE_3D = 0x00000002 |
| Face pose estimation. More... | |
| static final long | HUMAN_DETECTION_FACE_FEATURE_FULL = 0x00000003 |
| All face feature. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_EYE_BLINK = 0x00000001 |
| Eye blink. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_LIPS_PART = 0x00000002 |
| Lips part. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_YAW = 0x00000004 |
| Shake head. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_PITCH = 0x00000008 |
| Nod. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_BROW_JUMP = 0x00000010 |
| Raise brow. More... | |
| static final long | HUMAN_DETECTION_FACE_ACTION_FULL = 0x0000001F |
| All face actions. More... | |
| static final long | HUMAN_DETECTION_AVATAR_EXPRESSION = 0x00000001 |
Protected Member Functions | |
| void | setHandleInterface (long handleInterface) |
| long | getHandleInterface () |
Human detection handle.
|
inline |
Detect human features.
| imageBuffer | Buffer where image is stored. |
| pixelFormat | Pixel format, please refer to [HUMAN_DETECTION_VIDEO_FRAME_PIXEL_FORMAT]. |
| imageWidth | Image width. |
| imageHeight | Image height. |
| imageStride | Image stride in bytes. |
| orientation | Head orientation, the angle the image needs to be rotated clockwise to make sure the head is upward. |
| config | Features needs to be detected, please refer to [HUMAN_DETECTION_DETECTION_CONFIG]. |
|
inlineprotected |
|
inline |
Set boolean parameter value.
| param | Parameter needs to be set, please refer to [HUMAN_DETECTION_BOOLEAN_PARAM]. |
| value | Value set to the param. |
|
inline |
Set float parameter value.
| param | Parameter needs to be set, please refer to [HUMAN_DETECTION_FLOAT_PARAM]. |
| value | Value set to the param. |
|
inline |
Set integer parameter value.
| param | Parameter needs to be set, please refer to [HUMAN_DETECTION_INTEGER_PARAM]. |
| value | Value set to the param. |
|
inlineprotected |
|
static |
Avatar expression
|
static |
Camera fovy.
|
static |
Raise brow.
|
static |
Eye blink.
|
static |
All face actions.
|
static |
Lips part.
|
static |
Nod.
|
static |
Shake head.
|
static |
Max face detection count.
|
static |
Face landmarks detection.
|
static |
Face pose estimation.
|
static |
All face feature.
|
static |
Avatar Expressions of human face.
|
static |
Extra features of human face
|
static |
Actions of human face.
|
static |
Landmarks on human face.
|
static |
Image detection mode.
|
static |
Multi thread detection.
|
static |
Semi-image detection mode.
|
static |
Single thread detection.
|
static |
Video detection mode.
|
static |
Detection frequency
|
static |
Enable landmarks smooth.
|
static |
Landmarks smooth thresh.
|
static |
Min face ratio
|
static |
Enable rigid transform smooth.
|
static |
Rigid transform smooth thresh.
|
static |
Do rigid transform only.
|
static |
Reset tracking
|
static |
Snap mouth.
|
static |
Snap mouth thresh.
|
static |
BGR 24bpp.
|
static |
BGRA 32bpp.
|
static |
GRAY 8bpp
|
static |
YUV 4:2:0 12bpp (2 channels, one channel is a continuous luminance channel, and the other channel is a UV component interlaced)
|
static |
YUV 4:2:0 12bpp (2 channels, one channel is a continuous luminance channel, and the other channel is a VU component interlaced)
|
static |
RGB 24bpp.
|
static |
RGBA 32bpp.
|
static |
YUV 4:2:0 12bpp (3 channels, one luminance channel, the other two are U component and V component channels. All channels are continuous)
1.8.17