camerad: faster exposure convergence at startup (#36424)

* might converge faster

* accept darker at start

* accept darker at start

* it was unreasonably lax
pull/36195/head^2
ZwX1616 2 weeks ago committed by GitHub
parent 936740201c
commit f983df0c70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/camerad/cameras/camera_qcom2.cc
  2. 2
      system/camerad/test/test_exposure.py

@ -50,7 +50,7 @@ public:
Rect ae_xywh = {};
float measured_grey_fraction = 0;
float target_grey_fraction = 0.3;
float target_grey_fraction = 0.125;
float fl_pix = 0;
std::unique_ptr<PubMaster> pm;

@ -20,7 +20,7 @@ class TestCamerad:
def _is_exposure_okay(self, i, med_mean=None):
if med_mean is None:
med_mean = np.array([[0.2,0.4],[0.2,0.6]])
med_mean = np.array([[0.18,0.3],[0.18,0.3]])
h, w = i.shape[:2]
i = i[h//10:9*h//10,w//10:9*w//10]
med_ex, mean_ex = med_mean

Loading…
Cancel
Save