PINE64
Megapixels tuning - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: PinePhone Pro Software (https://forum.pine64.org/forumdisplay.php?fid=179)
+--- Thread: Megapixels tuning (/showthread.php?tid=17711)

Pages: 1 2


Megapixels tuning - mburns - 12-12-2022

Code:
3c3
< model=PinePhone Pro
---
> model=PinePhone
18c18
< blacklevel=16
---
> blacklevel=3
43,46d42
< #colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
< #forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
< blacklevel=3
< whitelevel=255
50,51d45
< iso-min=100
< iso-max=64000

I have some tweaks to the configuration file for the megapixels-ppp package. It is important to increase the blacklevel settings as seen above. The old values for the two cameras  of 3 and 0 need to increase to the two new values of 16 and 3. The old values washed out the blacks. This even prevents a good color calibration for raw dng post processing.

The file to be copied and modified is pine64,pinephone-pro.ini in the directory /usr/share/megapixels/config/ . I would put a copy in the ~/.config/megapixels/config/ directory and then edit the file to insert the new blacklevel values at least.


RE: Megapixels tuning - mburns - 12-13-2022

PPP Rear Camera Profiles for RawTherapee



These profiles can be unzipped into the ~/.config/RawTherapee/profiles directory on your computer for postprocessing. They require the modifications on the PPP discussed above in order for these files to work well on your computer.



These profiles are selectible in RawTherapee at the Processing Profile prompt; select My Profiles and then select PPP_R_cloudy. You may adjust the white balance, and then save the profile again by clicking the floppy icon.



The rear camera on the PPP is not as good at colorimetry as my other cameras. But these profiles yield a quite realistic picture style. Other methods of profiling may not do as well as these have been done.



PPP rear camera profiles for RawTherapee

Code:
66,70d65
<         # -n 300        denoise
<         # -a            white balance not by camera
<         # -m 0          color artifacts
<         # -g 2.4 12.92  sRGB gamma
<         # -b 1.0        brighter
75c70
<     $DCRAW +M -H 4 -o 1 -q 3 -n 300 -a -m 0 -g 2.4 12.92 -b 1.0 -T "$@" "$MAIN_PICTURE.dng"
---
>     $DCRAW +M -H 4 -o 1 -q 3 -T "$@" "$MAIN_PICTURE.dng"

I hacked the postprocess.sh file as shown above. The main purpose is to get an automatic white balance from the  PPP cameras instead of the green tint specified by the hardware.

This file is located in the /usr/share/megapixels directory. I copied it to ~/.config/megapixels for adding the changes, and then I set megapixels to use the user version in its setup.


RE: Megapixels tuning - mburns - 12-14-2022

The package perl-image-exiftool is used if it is installed.


RE: Megapixels tuning - mburns - 12-14-2022

This is a profile for post processing images from the front camera for use in RawTherapee. The icc file can be used in other post processors

PinePhone Pro Front camera profile


RE: Megapixels tuning - mburns - 12-17-2022

Mobian has an updated kernel now, so the cameras work with megapixels.


RE: Megapixels tuning - mburns - 12-17-2022

The megapixels-ppp package has been merged back into the megapixels package. But the remaining issues of full resolution for the back camera, and of good black levels and good white balances for the viewfinder window still remain. The separate package may need to be revived.


RE: Megapixels tuning - mburns - 01-12-2023

Now with libtiff having a new version 6 in Manjaro, the megapixels app needs maintenance. But in Mobian the app works, without flash at the moment.


RE: Megapixels tuning - mburns - 01-15-2023

The updated megapixels has arrived for Mobian with the new libtiff.


RE: Megapixels tuning - mburns - 01-30-2023

The Megapixels camera package requires libtiff5; libtiff6 leaves megapixels behind. I had to find libtiff.so.5.8.0 in a flatpack directory to install it alongside libtiff.so.6 and company. Manjaro Plasma has also regressed on other libraries required for megapixels. Media formats are a problem now.


RE: Megapixels tuning - irnemgk581 - 02-05-2023

(01-30-2023, 11:40 AM)mburns Wrote: The Megapixels camera package requires libtiff5; libtiff6 leaves megapixels behind. I had to find libtiff.so.5.8.0 in a flatpack directory to install it alongside libtiff.so.6 and company. Manjaro Plasma has also regressed on other libraries required for megapixels. Media formats are a problem now.


Can you provide specific guidance on what you did in Mobian? I can't find this using flatpak, Megapixels won't open