Pictures with Camera2 API are really dark

前端 未结 3 1401
悲哀的现实
悲哀的现实 2020-12-05 15:51

I\'m working on Android and I\'m trying to capture a picture without displaying any preview. I tried to simplify the process by making a class. It\'s working but all the pic

3条回答
  •  旧巷少年郎
    2020-12-05 16:13

    Maybe you can try to turn on the automatic exposure mode and automatic white balance:

    request.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON);
    request.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_AUTO);
    

    I hope it will help :)

提交回复
热议问题