fixed cam img strat

This commit is contained in:
Milo 2019-04-06 19:51:57 +02:00
parent 253c3762c5
commit 7a317ad6b3

View file

@ -11,7 +11,8 @@ def camImgStrat(context : Context) -> Prediction:
The contents of the camera image The contents of the camera image
""" """
img = context.image img = context.image
average = img.mean(axis=0).mean(axis=0) average = img.mean()
print(img.mean())
p = Prediction() p = Prediction()
p.weight = 0.7 p.weight = 0.7
if average < 100: if average < 100: