Changes for New Current
This commit is contained in:
parent
61d0418edf
commit
61bc529b91
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue