Fix plugin configuration
parent
a7f70803d6
commit
57d2e3879d
|
@ -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();
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue