From 61bc529b913151d3ee50e194812eae75bac2ff0d Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 7 Feb 2019 11:08:32 +0100 Subject: [PATCH] Changes for New Current --- head_pose.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/head_pose.py b/head_pose.py index bc911bd..523f56f 100644 --- a/head_pose.py +++ b/head_pose.py @@ -512,7 +512,7 @@ if __name__ == '__main__': currentPoint = result['currentPoint'] currentPoints = result['currentPoints'] currentVectors = result['currentVectors'] - except queue.Empty as e: + except Queue.Empty as e: logger.warn('Result queue empty') tr1 = time.time() @@ -608,7 +608,7 @@ if __name__ == '__main__': print('MAXES', np.max(metrics), np.max(newMetrics), diffT, t - lastRunTime) # smooth impact of first hits by having at least 0.05 - normalisedMetrics = metrics / (max(255*7 ,np.max(metrics))) + normalisedMetrics = metrics / (max(255*4 ,np.max(metrics))) # convert to colormap, thanks to: https://stackoverflow.com/a/10967471 if args.only_metrics: @@ -719,7 +719,7 @@ if __name__ == '__main__': lastSaveTime = now # (optionally) very slowly fade out previous metrics: - metrics = metrics * .9997 + # Don't fade for now: metrics = metrics * .9997 keyPress = cv2.waitKey(5)