1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| #ifndef FACEID2_0_FACEDETECT_H
| #define FACEID2_0_FACEDETECT_H
| #include <jni.h>
| #include <string>
|
| using namespace std;
|
| class FaceDetectHelper {
| private:
| static FaceDetectHelper * instance;
| FaceDetectHelper();
| bool init_sdk_success = false;
| public:
| static FaceDetectHelper* getInstance();
| bool initSdk(const char* modelPath);
| string detectRealFace(const char* modelPath, const char* rgbFileName, const char* grayFileName, int width, int height, const char* baseFeatureName,
| int shouldExtractFeature, bool useGrayCamera, int detectFaceCount);
| string detectRealFace2(JNIEnv *env, const char* modelPath, const char* rgbFileName, const char* grayFileName, int width, int height, const char* baseFeatureName,
| int shouldExtractFeature, bool useGrayCamera, int detectFaceCount, jbyteArray bgrArray );
| string detectRealFace4(JNIEnv *env, int channel, const char* modelPath, const char* rgbFileName, const char* grayFileName, int width, int height, const char* baseFeatureName,
| int shouldExtractFeature, bool useGrayCamera, int detectFaceCount, jbyteArray bgrArray );
| string detectRealFace3(jint channel, JNIEnv *env, const char* modelPath, int width, int height, const char* baseFeatureName,
| int shouldExtractFeature, bool useGrayCamera, int detectFaceCount, jbyteArray nv21Array );
| jbyteArray extractFeature(JNIEnv *env, const char *jpgFileName);
| string facePosition(JNIEnv *env, const char *jpgFileName);
| jbyteArray extractFeature(JNIEnv *env, jbyteArray bgrByteArray, int width, int height);
| };
|
|
| #endif //FACEID2_0_FACEDETECT_H
|
|