public class CGEFaceTracker
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CGEFaceTracker.FaceResult |
|
static class |
CGEFaceTracker.FaceResultSimple |
| Modifier and Type | Field | Description |
|---|---|---|
protected CGEFaceTracker.FaceResult |
mFaceResult |
|
protected long |
mNativeAddress |
|
protected static boolean |
sIsTrackerSetup |
| Modifier and Type | Method | Description |
|---|---|---|
static CGEFaceTracker |
createFaceTracker() |
|
boolean |
detectFaceWithBGRABuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow) |
|
boolean |
detectFaceWithBGRBuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow) |
|
boolean |
detectFaceWithGrayBuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow) |
|
CGEFaceTracker.FaceResultSimple |
detectFaceWithSimpleResult(android.graphics.Bitmap bmp,
boolean drawFeature) |
|
protected void |
finalize() |
|
CGEFaceTracker.FaceResult |
getFaceResult() |
|
static boolean |
isTrackerSetup() |
|
protected long |
nativeCreateFaceTracker() |
|
protected boolean |
nativeDetectFaceWithBuffer(long addr,
java.nio.ByteBuffer buffer,
int w,
int h,
int channel,
int bytesPerRow,
java.nio.FloatBuffer outputBuffer) |
|
protected float[] |
nativeDetectFaceWithSimpleResult(long addr,
android.graphics.Bitmap bmp,
boolean drawFeature) |
|
protected void |
nativeRelease(long addr) |
|
void |
release() |
protected static boolean sIsTrackerSetup
protected long mNativeAddress
protected CGEFaceTracker.FaceResult mFaceResult
public static boolean isTrackerSetup()
public static CGEFaceTracker createFaceTracker()
public void release()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic CGEFaceTracker.FaceResultSimple detectFaceWithSimpleResult(android.graphics.Bitmap bmp, boolean drawFeature)
public CGEFaceTracker.FaceResult getFaceResult()
public boolean detectFaceWithGrayBuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow)
public boolean detectFaceWithBGRABuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow)
public boolean detectFaceWithBGRBuffer(java.nio.ByteBuffer buffer,
int width,
int height,
int bytesPerRow)
protected long nativeCreateFaceTracker()
protected void nativeRelease(long addr)
protected float[] nativeDetectFaceWithSimpleResult(long addr,
android.graphics.Bitmap bmp,
boolean drawFeature)
protected boolean nativeDetectFaceWithBuffer(long addr,
java.nio.ByteBuffer buffer,
int w,
int h,
int channel,
int bytesPerRow,
java.nio.FloatBuffer outputBuffer)