Android WebcamTexture in low light (only some models)

Hey Unity Folks,

I’ve been having some issues using webcamtexture on android in low light conditions. This isn’t a problem on all androids, in fact, the picture looks fine on my samsung s7.

On the google pixel2 on the other hand, the front facing camera is very dark in comparison to the native camera when indoors, to the extent that you can see a silhouette of your face, but that’s all. I’ve attached some photos so you can see what I am talking about. If you go outside, the image quality does improve, but the iso / exposure is still quite low.

The first image is the native camera app, front facing camera. picture is fine.


The second is in unity using webcamtexture, front facing.

The third is in unity using webcamtexture, rear camera.

I’ve also been trying to get NatCam up and running as an alternative, however it’s been having some stability issues on the pixel as well. I’ve noticed others are having this issue as well :

We could really use any advice you can give here.

I should also note that I have tried and replicated on multiple versions of unity.
Unity 5.6.4, 2017.1, 2018b

Would really appreciate any info you guys could supply. We have a demo due date of the 20th and it looks like the only feasible option for the demo is to go purchase a new phone and hope the issue isn’t on that device.

I’d be happy to supply any adb logcats if you think that would help.

Not sure if related, but a similar issue w/ PIXEL phone front camera and OpenCV
[RELEASED] OpenCV for Unity page-32#post-3418279

(post deleted by author)