|
@@ -37,7 +37,8 @@ public class FaceEngineFactory extends BasePooledObjectFactory<FaceEngine> {
|
|
|
public FaceEngine create() {
|
|
public FaceEngine create() {
|
|
|
|
|
|
|
|
FaceEngine faceEngine = new FaceEngine(libPath);
|
|
FaceEngine faceEngine = new FaceEngine(libPath);
|
|
|
- int activeCode = faceEngine.activeOnline(appId, sdkKey);
|
|
|
|
|
|
|
+ //int activeCode = faceEngine.activeOnline(appId, sdkKey);
|
|
|
|
|
+ int activeCode = faceEngine.activeOffline(activeKey);
|
|
|
if (activeCode != ErrorInfo.MOK.getValue() && activeCode != ErrorInfo.MERR_ASF_ALREADY_ACTIVATED.getValue()) {
|
|
if (activeCode != ErrorInfo.MOK.getValue() && activeCode != ErrorInfo.MERR_ASF_ALREADY_ACTIVATED.getValue()) {
|
|
|
log.error("引擎激活失败{}", activeCode);
|
|
log.error("引擎激活失败{}", activeCode);
|
|
|
throw new ServiceException("引擎激活失败: " + activeCode);
|
|
throw new ServiceException("引擎激活失败: " + activeCode);
|