tensorflow: log cleanup

This commit is contained in:
Koushik Dutta
2021-10-12 00:36:10 -07:00
parent 6cdce098fe
commit 9a24be245d

View File

@@ -246,10 +246,10 @@ class TensorFlowMixin extends SettingsMixinDeviceBase<ObjectDetector> implements
// anything remaining in currentDetections at this point has left the scene.
if (this.currentDetections.length) {
this.console.log('object no longer detected', this.currentDetections.join(', '))
this.console.log('no longer detected', this.currentDetections.join(', '))
}
if (found.length) {
this.console.log('object detected', found.join(', '));
this.console.log('detected', found.join(', '));
}
this.currentDetections = [...classNames];
}
@@ -374,10 +374,10 @@ class TensorFlowMixin extends SettingsMixinDeviceBase<ObjectDetector> implements
}
if (this.currentPeople.size) {
this.console.log('object no longer detected', [...this.currentDetections].join(', '))
this.console.log('no longer detected', [...this.currentDetections].join(', '))
}
if (recognition.people.length) {
this.console.log('object detected', recognition.people.map(p => p.label).join(', '));
this.console.log('detected', recognition.people.map(p => `${p.label}: ${p.score}`).join(', '));
}
this.currentPeople.clear();