fixed cam img strat
This commit is contained in:
parent
253c3762c5
commit
7a317ad6b3
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue