diagnostics: relax person detect for new models

This commit is contained in:
Koushik Dutta
2026-01-06 15:12:19 -08:00
parent 976204c439
commit df1b389ef2
3 changed files with 5 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ class DiagnosticsPlugin extends ScryptedDeviceBase implements Settings {
const zidane = await sdk.mediaManager.createMediaObjectFromUrl('https://docs.scrypted.app/img/scrypted-nvr/troubleshooting/zidane.jpg');
const detected = await plugin.detectObjects(zidane);
const personFound = detected.detections!.find(d => d.className === 'person' && d.score > .9);
const personFound = detected.detections!.find(d => d.className === 'person' && d.score > .8);
if (!personFound) {
throw new Error('Person not detected in test image.');
}
@@ -714,7 +714,7 @@ class DiagnosticsPlugin extends ScryptedDeviceBase implements Settings {
if (image.width !== 320)
throw new Error('Unexpected image with from GPU transform.')
const detected = await openvinoPlugin.detectObjects(zidane);
const personFound = detected.detections!.find(d => d.className === 'person' && d.score > .9);
const personFound = detected.detections!.find(d => d.className === 'person' && d.score > .8);
if (!personFound)
throw new Error('Person not detected in test image.');
}