net.facelib.live.BaseLiveAupsParameterProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of facelive-android-base Show documentation
Show all versions of facelive-android-base Show documentation
detect live face for video stream
package net.facelib.live;
import net.facelib.akcore.AupsParameterProvider;
import net.facelib.akcore.AuthParameter;
/**
* 活体检测产品签名授权方式[AUPS]用户参数接口抽象类
* 用户需要实现{@link AupsParameterProvider#getAuthorID()},
* {@link AupsParameterProvider#getProductSign()}方法提供用户ID和产品签名
* @author guyadong
*
*/
public abstract class BaseLiveAupsParameterProvider extends AupsParameterProvider {
public BaseLiveAupsParameterProvider() {
String tmpdir = System.getProperty("java.io.tmpdir");
if(tmpdir != null){
// 默认授权文件位置
String path = String.format("%s/%s_%s.dat", tmpdir, getAuthorID(), getProductID());
setValue(AuthParameter.LICENSE_FILE, path);
}
}
/**
* 部件产品不需要签名验证
*/
@Override
public final String getAuthorID() {
return "";
}
/**
* 部件产品不需要签名验证
*/
@Override
public final String getProductSign() {
return "";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy