Lines Matching full:brightness
1298 def _generate_test_image(self, brightness): argument
1299 """Creates a Y plane array with pixel values of brightness.
1302 brightness: float between [0.0, 1.0]
1305 Y plane array with elements of value brightness
1309 test_image.fill(brightness)
1315 for brightness in self._BRIGHTNESS_CHECKS:
1316 logging.debug('Testing validate_lighting with brightness %.1f',
1317 brightness)
1318 test_image = self._generate_test_image(brightness)
1319 print(f'Testing brightness: {brightness}')
1320 if brightness <= _VALIDATE_LIGHTING_THRESH:
1325 f'image value {brightness} should PASS')