not to change awareness to np

old-commit-hash: b013a00095
commatwo_master
ZwX1616 5 years ago committed by GitHub
parent a7223b9d82
commit da31359fe2
  1. 2
      selfdrive/controls/lib/driver_monitor.py

@ -176,7 +176,7 @@ class DriverStatus():
self.pose.pitch_std = driver_monitoring.faceOrientationStd[0]
self.pose.yaw_std = driver_monitoring.faceOrientationStd[1]
# self.pose.roll_std = driver_monitoring.faceOrientationStd[2]
max_std = np.max([self.pose.pitch_std, self.pose.yaw_std])
max_std = max(self.pose.pitch_std, self.pose.yaw_std)
self.pose.low_std = max_std < _POSESTD_THRESHOLD
self.blink.left_blink = driver_monitoring.leftBlinkProb * (driver_monitoring.leftEyeProb>_EYE_THRESHOLD)
self.blink.right_blink = driver_monitoring.rightBlinkProb * (driver_monitoring.rightEyeProb>_EYE_THRESHOLD)

Loading…
Cancel
Save