fixed cam img strat

This commit is contained in:
Mikkel 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
"""
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: