From 7a317ad6b355f1addae1d472d71b7712d639d6d9 Mon Sep 17 00:00:00 2001 From: Milo Date: Sat, 6 Apr 2019 19:51:57 +0200 Subject: [PATCH] fixed cam img strat --- server/nightr/strategies/miloStrats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/nightr/strategies/miloStrats.py b/server/nightr/strategies/miloStrats.py index 3fc4c43..3d03666 100644 --- a/server/nightr/strategies/miloStrats.py +++ b/server/nightr/strategies/miloStrats.py @@ -11,7 +11,8 @@ def camImgStrat(context : Context) -> Prediction: The contents of the camera image """ img = context.image - average = img.mean(axis=0).mean(axis=0) + average = img.mean() + print(img.mean()) p = Prediction() p.weight = 0.7 if average < 100: