FORUMS
Remove All Ads from XDA
Video Review Win A Trip

Google Camera with working portrait mode V7

171 posts
Thanks Meter: 1,339
 
By miniuser123, Senior Member on 18th January 2018, 12:52 AM
Post Reply Email Thread
Here is my version of Google Camera based on BSG's original port.
Although I aimed to get it working only on Galaxy S7 Exynos, there are reports that it is working on other devices like S7 Snapdragon, S8, Note 8 etc...

Working list on S7 Exynos:

-Portrait mode front/back cam
-HDR+ front/back cam
-photo sphere
-panorama

Bugs on S7 Exynos:
-after clean install or clear data when you enter then exit settings the first time, you will get a black screen. Kill the app and start again and everything should be OK.
-if the app hangs during processing a HDR+ or portrait shot, memory leak (500-600 MB) could happen. If it is leaked by GCam, a force close in settings can eliminate it (a swipe away is not enough). However if it is leaked by cameraserver, cameraserver needs to be killed i.e. a reboot is needed for non-rooted users. Memory leak could be observed by looking at 'cat /d/ion/buffer' using adb or root shell.
-in auto HDR+ mode, sometimes HDR+ doesn't want to activate anymore, only normal shots are taken. Workaround: restart the app (swipe away from recents)
-front cam video recording crash
-incorrect EXIF data if denoise is set higher than 100%.

Working/not working for other galaxys:
Note 8: Rear camera touch to focus not working

Settings to be used:

Main settings:
Auto exposure-mode: "Slow shutter" if you are taking pics of static objects in low light environment. In good light it doesn't matter.

B-S-G mod settings:
HDR+ front camera: on
HDR+ front camera fix: on if you have a Galaxy S7 Exynos. If HDR+ works for you without this on front cam, don't turn this on, because it will degrade dynamic range in good light!!!!
Model: Pixel XL Marlin+Taimen
Config camera HDR+: Nexus 6 hdr+ Auto
HDR+ parameters: Default
Fix black level front camera: 0.00
Portrait Mode on all models: enabled

Developer settings:
Camera.faceboxes: enabled
Camera.af.debug.show: disabled

Current version:

V7:
https://drive.google.com/file/d/1Syi...w?usp=drivesdk

Changes vs. V6:
-HDR+ setting (off,auto or on) should be permanent now

Previous versions:

V6: https://drive.google.com/file/d/1zyc...ew?usp=sharing

Changes vs. V5:
-fixed bug which caused hdr+ shot failure sometimes!
-attempted to fix HDR+ portrait mode (can be activated by disabling portrait ZSL mode).
-added some description to "HDR+ parameters". For example: 8/10 burst, 1500 MB means: HDR+ operates with 8 shot bursts. Portrait mode (ZSL) operates with 10 shot bursts at most. Estimated total memory usage: 1500 MB (including camera2 api buffers).

V5: https://drive.google.com/file/d/1TLi...ew?usp=sharing

Changes vs. V4:
-added more shutter options. Selecting "Stock camera2 api" will get rid of rainbow effect, but dynamic range is poor, because camera can't underexpose fast enough if auto shutter control is on.
-added antibanding modes. Works up to 1/149 sec shutter speed. Only select 50hz or 60hz in case of banding problems, because it can cause suboptimal shutter speed otherwise!
-denoise strength for HDR+ and portrait. For front cam you need to select about 2-300% to really see the difference. Back cam is much more sensitive to this setting.
-HDR+ dynamic range control (called Underexposure multiplier). Reduce below 100% to decrease rainbow effect.
-added Samsung specific metering modes. To enable touch to expose, select "Controlled by GCam".
-added Samsung Live HDR mode. Adds some dynamic range to modes where HDR+ is not available like zero shutter Portrait mode. No Rainbow effect in HDR+ mode if this is selected, but noise is too much unfortunately!
-you can enable HDR+ for Portrait mode by disabling "Portrait ZSL mode". Better dynamic range, custom shutter control, but no zero shutter lag.
-custom white balance. I set greens to 96% to get rid of the greenish look where I sit right now, but it is a matter of taste probably.
-modified HDR+ quality settings. Choose "Very high" if you were using "Medium" before (unstable for me). The recommended "Default" setting is the same as before, it is somewhere between medium and high.


V4: https://drive.google.com/file/d/1Lg4...w?usp=drivesdk

Changes vs. V3:
-front cam HDR+ workaround for S7. Still to be tested in very bright conditions. Turn on "HDR+ front camera fix" if you have an S7.
-front cam: normal pics in auto HDR+ mode are saved now
-front cam: improved non-HDR+ quality
-added a custom auto-exposure mode for HDR+ (only HDR+, so not for portrait). It is called "Slow shutter" because it will decrease shutter speed as much as possible (1/10 secs on S7) in bad light. The result: much lower ISO and noise. Of course fast moving objects will probably get blurry more easily. Only tested this on S7, on other devices it might need some tuning.

V3: https://drive.google.com/file/d/1pPW...ew?usp=sharing

Changes vs. V2:
-purple colour on highly exposed areas in front camera fixed
-front cam HDR+
-made medium-very high HDR+ settings work again

V2: https://drive.google.com/file/d/1vRc...ew?usp=sharing
The Following 156 Users Say Thank You to miniuser123 For This Useful Post: [ View ] Gift miniuser123 Ad-Free
 
 
18th January 2018, 01:00 AM |#2  
Senior Member
Thanks Meter: 8
 
More
V2 work better than v3 in Galaxy S8
18th January 2018, 01:14 AM |#3  
OP Senior Member
Thanks Meter: 1,339
 
Donate to Me
More
Quote:
Originally Posted by ThePeloto

V2 work better than v3 in Galaxy S8

Could you please elaborate please? There were no intended changes that could affect quality on default settings.
The Following 3 Users Say Thank You to miniuser123 For This Useful Post: [ View ] Gift miniuser123 Ad-Free
18th January 2018, 01:24 AM |#4  
Member
Thanks Meter: 20
 
More
Quote:
Originally Posted by miniuser123

Here is my version of Google Camera based on BSG's original port.
Although I aimed to get it working only on Galaxy S7 Exynos, there are reports that it is working on other devices like S7 Snapdragon, S8, Note 8 etc...

Working list on S7 Exynos:
-Portrait mode front/back cam
-HDR+ back cam
-photo sphere
-panorama

Bugs on S7 Exynos:
-front camera HDR+ very buggy, not recommended for now
-front camera normal shots are low quality
-exposure adjustment not working on touch to focus
-after clean install or clear data when you enter then exit settings the first time, the app hangs. Kill the app and start again to fix it.
-if the app hangs during processing a HDR+ or portrait shot, memory leak (500-600 MB) could happen. If it is leaked by GCam, a force close in settings can eliminate it (a swipe away is not enough). However if it is leaked by cameraserver, cameraserver needs to be killed i.e. a reboot is needed for non-rooted users. Memory leak could be observed by looking at 'cat /d/ion/buffer' using adb or root shell.

Working/not working for other galaxys:
....

Settings to be used:

B-S-G mod settings:
HDR+ front camera: off
Model: Pixel XL Marlin+Taimen
Config camera HDR+: Nexus 6 hdr+ Auto
HDR+ parameters: Default
Fix black level front camera: 0.00
Portrait Mode on all models: enabled

Developer settings:
Camera.faceboxes: enabled
Camera.af.debug.show: disabled

Current version:
V3: https://drive.google.com/file/d/1pPW...ew?usp=sharing

Your port have been super amazing. Im using s8 Plus and Note 8 Exynos and Ive completely ditch the stock camera (except for videos). Medium hdr parameter+pixel 2xl works best for me (anything higher has no signjficant improvement from medium) as it reduces noise and artifacts on lowlight so I'm kinda curious, will there be any way to improve the shutter speed at these settings?

More powers to you and you should be considered an international treasure for Exynos users!
The Following 2 Users Say Thank You to eruanii For This Useful Post: [ View ] Gift eruanii Ad-Free
18th January 2018, 01:38 AM |#5  
Senior Member
Thanks Meter: 81
 
More
Quote:
Originally Posted by miniuser123

Here is my version of Google Camera based on BSG's original port.
Although I aimed to get it working only on Galaxy S7 Exynos, there are reports that it is working on other devices like S7 Snapdragon, S8, Note 8 etc...

Working list on S7 Exynos:
-Portrait mode front/back cam
-HDR+ back cam
-photo sphere
-panorama

Bugs on S7 Exynos:
-front camera HDR+ very buggy, not recommended for now
-front camera normal shots are low quality
-exposure adjustment not working on touch to focus
-after clean install or clear data when you enter then exit settings the first time, the app hangs. Kill the app and start again to fix it.
-if the app hangs during processing a HDR+ or portrait shot, memory leak (500-600 MB) could happen. If it is leaked by GCam, a force close in settings can eliminate it (a swipe away is not enough). However if it is leaked by cameraserver, cameraserver needs to be killed i.e. a reboot is needed for non-rooted users. Memory leak could be observed by looking at 'cat /d/ion/buffer' using adb or root shell.

Working/not working for other galaxys:
....

Settings to be used:

B-S-G mod settings:
HDR+ front camera: off
Model: Pixel XL Marlin+Taimen
Config camera HDR+: Nexus 6 hdr+ Auto
HDR+ parameters: Default
Fix black level front camera: 0.00
Portrait Mode on all models: enabled

Developer settings:
Camera.faceboxes: enabled
Camera.af.debug.show: disabled

Current version:
V3: https://drive.google.com/file/d/1pPW...ew?usp=sharing

Changes vs. V2:
-purple colour on highly exposed areas in front camera fixed
-front cam HDR+
-made medium-very high HDR+ settings work again

Previous versions:
V2: https://drive.google.com/file/d/1vRc...ew?usp=sharing

Is there a fix coming for noisy portrait shots from FFC? In v2 the shots turned out great when there were no purple artifacts, but now, even though artifacts are gone, sharpness is too high.
18th January 2018, 01:47 AM |#6  
Member
Thanks Meter: 20
 
More
Quote:
Originally Posted by eruanii

Your port have been super amazing. Im using s8 Plus and Note 8 Exynos and Ive completely ditch the stock camera (except for videos). Medium hdr parameter+pixel 2xl works best for me (anything higher has no signjficant improvement from medium) as it reduces noise and artifacts on lowlight so I'm kinda curious, will there be any way to improve the shutter speed at these settings?

More powers to you and you should be considered an international treasure for Exynos users!

Update: and is there anyway we can make face retouch working in front cam non portrait mode. Thanks!
18th January 2018, 01:48 AM |#7  
Awesome work! And thanks for opening a new thread here 😄

Wishlist:
-Front Camera image flipped/mirrored by default.
-Opening Camera directly in Portrait Mode.
The Following 3 Users Say Thank You to Tanvir741 For This Useful Post: [ View ] Gift Tanvir741 Ad-Free
18th January 2018, 02:57 AM |#8  
Senior Member
Thanks Meter: 9
 
More
First of all, thanks.

A question, if you can: On S7 (Note 8 Exynos here) touch focus won't work? I don't talk about exposure, I mean the focus. If I have an object in sight and want to focus it (macro style), if I touch on it then the focus will go far away. On the panorama/scene behind the object. And the object on the front line will be blurred. Only way to focus is to move the phone then center it on the object.

Again, thank you. Selfies are great with your port. Shame on Samsung. :/
18th January 2018, 03:06 AM |#9  
Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by eruanii

Your port have been super amazing. Im using s8 Plus and Note 8 Exynos and Ive completely ditch the stock camera (except for videos). Medium hdr parameter+pixel 2xl works best for me (anything higher has no signjficant improvement from medium) as it reduces noise and artifacts on lowlight so I'm kinda curious, will there be any way to improve the shutter speed at these settings?

More powers to you and you should be considered an international treasure for Exynos users!

Hello, what is the difference between model chosed? And also do hdr parameters really make a difference?
18th January 2018, 03:29 AM |#10  
Member
Thanks Meter: 20
 
More
Quote:
Originally Posted by Theking haha

Hello, what is the difference between model chosed? And also do hdr parameters really make a difference?

What phone are you using? Model wouild make certain options appear such as face retouching etc. Quality, I dont really see any big difference. Paramaters for me has significantly improve lowlight performance though there are also cons such as darker images in stiuations that subject is against the light. Medium parameter has given me less noisy images.
The Following User Says Thank You to eruanii For This Useful Post: [ View ] Gift eruanii Ad-Free
18th January 2018, 03:49 AM |#11  
nvrmndryo's Avatar
Senior Member
Thanks Meter: 148
 
More
Quote:
Originally Posted by Tanvir741

Awesome work! And thanks for opening a new thread here 😄

Wishlist:
-Front Camera image flipped/mirrored by default.
-Opening Camera directly in Portrait Mode.

+1
The Following 2 Users Say Thank You to nvrmndryo For This Useful Post: [ View ] Gift nvrmndryo Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes