Fix plugin configuration

face-manager-integrated
Elad Bar 2022-12-09 22:17:27 +02:00
parent a7f70803d6
commit 57d2e3879d
1 changed files with 10 additions and 5 deletions

View File

@ -113,12 +113,12 @@ const initialize = () => {
const detectionType = config.plug.split("-")[1].toLowerCase();
const detectorConfig = DETECTOR_CONFIGUTATION[detectionType];
const detectorConfigKeys = Object.keys(detectorConfig);
detectorSettings = {
type: detectionType,
active: false,
baseUrl: baseUrl,
apiKey: config.deepStack.apiKey,
fullyControlledByFaceManager: config.fullyControlledByFaceManager || false,
faces: {
shinobi: null,
server: null,
@ -195,6 +195,10 @@ const registerFace = (serverFileName) => {
};
const unregisterFace = (serverFileName) => {
if (serverFileName === null) {
return;
}
const form = {
userid: serverFileName
};
@ -270,6 +274,7 @@ const compareShinobiVSServer = () => {
detectorSettings.faces.legacy = facesToUnregister;
}
}
};
const processImage = (frameBuffer, d, tx, frameLocation, callback) => {
@ -517,8 +522,8 @@ const onRecompileFaceDescriptors = (d) => {
if(detectorSettings.faces.shinobi !== d.faces) {
detectorSettings.faces.shinobi = d.faces;
detectorSettings.facesPath = d.path;
compareShinobiVSServer();
}
};