autoexposurecompensation

Designed auto exposure algorithm to get a proper camera param,dose it make sense

你离开我真会死。 提交于 2019-12-24 20:54:49
问题 I want to get pictures from: fnumber=6.3; iso_list=[100,200,300,400,500,600,700,800]; shutterspeed_list=[1,1/2,1/3,1/4,1/5,1/6]; Choose the best pair iso and shutterspeed to get picture with appropriate brightness (the brightness=150.0) based on the exposure value. I think i can solve like this: Set the desired_brightness=150.0 ,get the current_brightness based on the picture Get the current iso and shutterspeed ,calculate the current_ev brightness_ratio=log2(desired_brightness)/log2(current

How to set the ''CONTROL_AE_EXPOSURE_COMPENSATION'' in Camera2 API on Android?

陌路散爱 提交于 2019-12-11 01:04:55
问题 I'm currently working on Androids Camera 2 API and my current problem is, that I cannot set the "CONTROL_AE_EXPOSURE_COMPENSATION". My code: -1.0 < exposureAdjustment <1.0 public void setExposure(double exposureAdjustment) { Range<Integer> range1 = mCameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_COMPENSATION_RANGE); int minExposure = range1.getLower(); int maxExposure = range1.getUpper(); float newCalculatedValue = 0; if (exposureAdjustment >= 0) { newCalculatedValue = (float)