From 9a24be245df44ec79a817882a665819cbc307d35 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 12 Oct 2021 00:36:10 -0700 Subject: [PATCH] tensorflow: log cleanup --- plugins/tensorflow/src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/tensorflow/src/main.ts b/plugins/tensorflow/src/main.ts index 6dde8539e..166f34af2 100644 --- a/plugins/tensorflow/src/main.ts +++ b/plugins/tensorflow/src/main.ts @@ -246,10 +246,10 @@ class TensorFlowMixin extends SettingsMixinDeviceBase 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 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();