WeAreFairphone / android_device_fairphone_FP3

Android / LineageOS 16 device tree for Fairphone 3
46 stars 7 forks source link

Very noisy pictures with com.android.camera2 #16

Open magcks opened 4 years ago

magcks commented 4 years ago

Hey there,

I really don't know if this is a issue related to this project. So please excuse if this is the wrong place for this issue.

I finally received my FP3 and directly flashed this lineage port onto it and noticed that images are really noisy when captured with com.android.camera2 (see attachment) compared with my old nexus 5x. Obviously only in low-brightness environments.

Is this related to non-existing noise-reduction magic, some issues with the os or is just my hardware broken?

Max IMG_20200626_193349

DaAngus commented 4 years ago

I had a similar experience and switched to Opencamera, Settings, misc: Camera2 API That fixed it for me

magcks commented 4 years ago

The package name of com.android.camera2 indicates it also uses the Camera2 API or is this just misleading?

I also tried both APIs with Opencamera but always hat that strange noise artifacts.

mohe2015 commented 4 years ago

Can you check the ISO settings? The image looks like the ISO is way too high.

magcks commented 4 years ago

I checked them. ISO values seems reasonable. I noticed that that strange chromatic noise does not exist that heavy on the stock image (I still don't know if these is an issue with my hardware, because I cannot compare against another FP3). Both images were caputured with opencam with same ISO and EXP. It looks like the stock rom does some smoothing in front of the camera API or so. Espacially if you look at the carton on the carpet, you will realise the differences. I real-world scenarios that looks very disturbing in some cases.

Lineage: opencam_lineage Stock: opencam_stock

dk1978 commented 4 years ago

Hey, sorry for being late on this thing. To be honest - I don't see much of a difference between "Lineage" and "Stock". My experience with the camera has been ok so far.

mstaz commented 4 years ago

After using camera several time now I also can see that noise.

Stock: opencam_stock

This also doesn't look very nice to me. Maybe a general issue with FP3?

magcks commented 4 years ago

@dk1978 yes, that's true. They are almost equal. Probably the differences are just subjectively...

My thoughts are that they rely more on the noise reduction stuff of google camera. I'm currently discussing this issue with the FP-Support. The thing I notice is that open camera images look extremely bad espacially if pixels are close to image boundaries.

For now, I also think that this is a general issue with all FP3 or at least just some FP3. Thus, I will close this issue for now.

CNugteren commented 3 years ago

I'm also seeing a lot of noise, especially when it gets darker. But even when light is slightly reduced, e.g. early in the evening, it is noticeable without zooming in. I made a few test on an FP3 with LineageOS with the original camera app (similar results with OpenCamera btw) as well as with PXv4.5_GoogleCamera_7.2.014 on LineageOS, and for comparison also on an FP3 with the original ROM. I 'solved' the noise issue thus by installing this GoogleCamera port.

Here is a resized version of some images at reasonable lighting conditions:

And here is a close-up of the full-resolution:

magcks commented 3 years ago

Thanks for your photos.

In the mean time I got a little further into the problems you can observe from your "LineageOS standard camera app" photo. I think these are hot pixels that remains static during multiple shots. You can observe this by take photos of complete darkness (i.e. put something in front of your cam) and save the resulting image as a DNG file (opencamera).

Probably, both camera apps do either better noise reduction or dark frame subtractions.