3fef085f729ff3c2b5856bee75b759e2ad22b2c2..79e9891452ca13f5a556cabd5c4b200aa7f666cd
2021-01-05 zhangzengfei
update lib face so
79e989 对比 | 目录
2021-01-05 zhangzengfei
update build.gradle use aliyun
5183a5 对比 | 目录
6个文件已修改
49 ■■■■ 已修改文件
app/src/main/assets/libTHDetect_ko.so 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/include/THFaceImage_i.h 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/include/THFeature_i.h 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/jniLibs/armeabi-v7a/libTHFaceImage.so 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/jniLibs/armeabi-v7a/libTHFeature.so 补丁 | 查看 | 原始文档 | blame | 历史
build.gradle 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/assets/libTHDetect_ko.so
Binary files differ
app/src/main/include/THFaceImage_i.h
@@ -157,7 +157,7 @@
    This function only can be called one time at program exit.
*/
THFACEIMAGE_API int        THFI_Create_Ex(short nChannelNum, int omp_thread_num=2);
THFACEIMAGE_API int        THFI_Create_Ex(short nChannelNum, int omp_thread_num=1);
/*
The THFI_Create_Ex function will initialize the algorithm engine module with openmp thread num
@@ -224,4 +224,16 @@
    1.image data buffer(pImage)    size must be nWidth*(bpp/8)*nHeight.
*/
THFACEIMAGE_API int        THFI_Create_Allin(short nChannelNum,int cpu_mode=0,int omp_thread_num=1,int using_gpu=0);
/*
描述:初始化人脸检测模块,建议在应用程序初始化时调用一次
参数:
    nChannelNum[intput],算法通道数,一个线程使用一个通道
    cpu_mode[input],CPU使用模式:0-大小核,1-仅小核,2-仅大核
    omp_thread_num[input],并行计算时的线程数,建议小于实际启用的CPU核心数
    using_gpu[input],启用GPU计算:0-不启用GPU计算,1-启用GPU计算。CPU版本库中该参数忽略,只有在GPU版本库才有效
返回值:
    大于0为成功初始化的通道数,小于等于0为加载模型失败
*/
#endif
app/src/main/include/THFeature_i.h
@@ -30,7 +30,7 @@
/*
 The EF_SetDir function will set face feature environment directory,it must be called before EF_Init
 Parameters:
    modelDir[input],存放 libTHFeature_db20a.so文件的目录,如果modelDir为NULL,则使用默认路径“/mnt/sdcard/SysConfig/model/”
    modelDir[input],存放 libTHFeature_db*.so文件的目录,如果modelDir为NULL,则使用默认路径“/mnt/sdcard/SysConfig/model/”
    tmpDir[input],临时读写目录,供算法初始化使用,算法必须具有临时目录下的读写权限,如果tmpDir为NULL,则使用默认路径“"/mnt/sdcard/SysConfig/tmp/"”            
 Return Values:
    No return value.
@@ -164,7 +164,7 @@
    This function can be called one time at program Un-Initialization.
*/
THFEATURE_API short EF_Init_Ex(int nChannelNum, int omp_thread_num=2);
THFEATURE_API short EF_Init_Ex(int nChannelNum, int omp_thread_num=1);
/*
The EF_Init_Ex function will initialize the Face Feature(THFeature) algorithm module with openmp thread num
@@ -183,4 +183,16 @@
    This function can be called one time at program initialization.
*/
THFEATURE_API short EF_Init_Allin(short nChannelNum,int cpu_mode=0,int omp_thread_num=1,int using_gpu=0);
/*
描述:初始化人脸特征模块,建议在应用程序初始化时调用一次
参数:
    nChannelNum[intput],算法通道数,一个线程使用一个通道
    cpu_mode[input],CPU使用模式:0-大小核,1-仅小核,2-仅大核
    omp_thread_num[input],并行计算时的线程数,建议小于实际启用的CPU核心数
    using_gpu[input],启用GPU计算:0-不启用GPU计算,1-启用GPU计算。CPU版本库中该参数忽略,只有在GPU版本库才有效
返回值:
    大于0为成功初始化的通道数,小于等于0为加载模型失败
*/
#endif
app/src/main/jniLibs/armeabi-v7a/libTHFaceImage.so
Binary files differ
app/src/main/jniLibs/armeabi-v7a/libTHFeature.so
Binary files differ
build.gradle
@@ -1,17 +1,19 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
        classpath "io.objectbox:objectbox-gradle-plugin:2.1.0"
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
@@ -20,8 +22,11 @@
allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
        maven { url 'https://jitpack.io' }
    }
}