Related
Had no idea the actual image quality could be tweaked. Was browsing the LG Optimus G forums and saw this:
http://forum.xda-developers.com/showthread.php?t=2073013
Wow the improvement is noticeable. And with the camera being slightly disappointing on the Razr HD, any chance it could be similarly modded??
One thing that I noticed that helps is the default is 6MP 'widescreen'. Putting it on 8MP 'regualar' is still widescreen enough and seems to be less grainy.
Still trying to figure out what 'HDR' mode is.
HDR is high dynamic range. It gives the objects in the picture a glow or 'halo' effect, but works best in a well lit environment. Let me check how the XML is setup in the RAZR.
Okay I pulled the XML and the settings can definitely be improved, although whether or not it actually helps with the quality yet remains to be seen. Picture below is taken with the factory XML at 8 megapixels. I am modifying it right now and will push it to the phone, and hopefully if it doesn't result in a boot loop, take new picture with the modified XML.
http://tinypic.com/r/k3x0js/6
Okay my phone is still alive after replacing the XML file. Took picture with the same camera settings, see below. Initial findings show it doesn't seem to make a difference, so we're likely limited to the camera sensor itself. I'll leave the modified XML on my phone since it's not doing any harm. Note that the file size of the pictures are larger than the original set, which suggests that there less image compression being done and the photos are retaining as much details and definition as software allows.
http://tinypic.com/r/zu1t0g/6
Thanks for the effort, and I have the stock 4.2 camera, so does the mod stay the same?
BinarySauce said:
Thanks for the effort, and I have the stock 4.2 camera, so does the mod stay the same?
Click to expand...
Click to collapse
Yes, pull your media_profiles.xml from /etc/, modify it and push it back. I do not advise simply copying and pasting the XML from the Optimus G thread as an improper configuration file can cause your phone to boot loop.
*sigh* I had high hopes for this thread as I have my eyes on the RAZR HD as a possible new phone, but the sub par camera is holding me back.
also make sure when modifying the XML file u use a program that won't change the character encoding (ie word or notepad). Use apps like notepad+ or notepad2
TRF-Inferno said:
Yes, pull your media_profiles.xml from /etc/, modify it and push it back. I do not advise simply copying and pasting the XML from the Optimus G thread as an improper configuration file can cause your phone to boot loop.
Click to expand...
Click to collapse
Did you use the same values from the Optimus G thread? And I think you're too close, back up to the point where some text looks blurry on the original camera and try again
BinarySauce said:
Did you use the same values from the Optimus G thread? And I think you're too close, back up to the point where some text looks blurry on the original camera and try again
Click to expand...
Click to collapse
Yes, used the same value. 100 is the maximum allowed value for encoding, and it's pointless to allocate past 40 MB for image processing as a 8 megapixel RAW file doesn't even get that big.
I have taken other pictures as well (Outdoors, scenery, etc.), and I really can't see a noticeable difference besides the image file being larger (~2.1 MB opposed to 1.5 MB). The camera sensor is the limitation here.
Not sure where to start this thread, this is more of a dev question.
I've decompiled the S7 camera app and taken a look at the source code. In case you haven't done this, the rundown is this: there is a main camera app with pluggable modules. Most of the downloadable camera add-ons are already implemented inside the stock app. For example, "Sports" is just a really basic camera, probably to make focusing and capturing pictures as quick as possible. By downloading an addon you are essentially adding an icon in the camera modes.
I mainly want to achieve two things: 1) lower the sharpness from 0 to -1 and 2) create a mode where the shutter time does not go above 1/30 or so.
1) There are a few generic Android camera properties that control that, is there a way to add them to some properties file? The keys: sharpness, sharpness-max, sharpness-min
2) Is there a way to inject my own method inside some class from the camera app? For example there is a method inside the "Pro" mode that does exposure calculation, I think I implement some stuff there.
Obviously, both features can be added with a bit [more] of coding, but it's not without pain. For example some icons would need to be created, handle resizing and different resolutions, handling device rotation, etc.
Other things that can be done by taking control of the camera app: add RAW in any mode, control OIS and video stabilisation, anti-fog mode (?), finer control over focusing modes and speeds, HDR, low-light detection. Hopefully this sparks someone's interest.
Just as an update, to underline the fact that it's doable: http://hackcorrelation.blogspot.com/2017/08/a-look-inside-samsung-s7-camera.html
brainwash123 said:
Just as an update, to underline the fact that it's doable: http://hackcorrelation.blogspot.com/2017/08/a-look-inside-samsung-s7-camera.html
Click to expand...
Click to collapse
Nevermind then lol.
Thank you for the reply, but not sure whether to read it as information or advert.
Consider me interested.
Did you achieve this ?! I am trying to compile the code in android studio but there are alot of errors. Even when i have managed to compile it, when i install it on my Note 8 there is nothing. Any working source code ?!
"add RAW in any mode, control OIS and video stabilisation, anti-fog mode (?), finer control over focusing modes and speeds, HDR, low-light detection." isn't that on some other app that we can port it from? (in my head that would be less coding)
RoadToNever said:
Consider me interested.
Click to expand...
Click to collapse
+1 this can be a great mod
good
When i installed through app I am getting this error that "camera failed" and unable to attach here and I am using TGP rom
I created an app duovision camera. You can try the dual camera feature. It may not work on some devices. Cheers
Hi Agonsh.
I have a galaxy S6 which the dual camera app from samsung works on but your duovision does not. Did you make it from decompiling S8 onwards for it to work?
Yes i did with using the newest Semcamera jar library which has an integrated dualcamera feature. And i know that it does not work on older versions.
Thanks Agonsh, appreciated. Cheers.
agonsh said:
Yes i did with using the newest Semcamera jar library which has an integrated dualcamera feature. And i know that it does not work on older versions.
Click to expand...
Click to collapse
Pardon my ignorance and sorry to bother. New to XDA. Is the latest semcamera jar library available for download here or somewhere else?
Well, this camera is working on our phones with Night Sight.
Install the camera, go to settings ---> Mod Settings ---> Fix ----> Raw Sensor - change it to RAW_SENSOR.
After that, go back to settings ---> Photo ---> Advanced ---> Night Sight and enable Alternative Config 8.1, go back to viewfinder and done. ALREADY SET!
Now comes the hardest part, we need help with the settings, because the photos are overexpoded, high ISO and things like that. To be honest, I don't know how works most of the settings, so please, if you find the right settings, share it with us HERE everyone could enjoy the benefits of this app, we're a community, so we help each other, don't forget that. The config is more stable now.
Download:
https://drive.google.com/file/d/1WL5M81NJmEgt-Hj2D7DKyGsCKztRC7hS/view?usp=sharing
UPDATE 3:
I uploaded 2 files, one for normal shoot and the other for black and white photos.
I have to say that I just edited the files to make it work on our devices, Monochrome xml was taken from a telegram group (OP6/OP6T), thanks to Jean-Luc for this mod.
Download the XML file that I attached and save it into Gcam/Configs (folder inside internal memory).
Now, check the photo that I posted and open Gcam and double tap to restore the config.
Note: You'll need to tap to focus before take the photo, to avoid overexposed photos o errors.
I took both files (camera and configs) from a telegram group, so, Thanks to the guys who modded the app and edited the config, thank you very much! What a great job was done
How do I download the xml files? When I tap on the links, a new webpage open the file...
badadam said:
How do I download the xml files? When I tap on the links, a new webpage open the file...
Click to expand...
Click to collapse
click on link , go to XML page
click on "minus" before map to minimize file , it will be like "+<map></map>" , then right click on "+" and select save as .... (name)
next steps are explained in other posts here .... "Gcam" folder in internal memory , inside it create a new named "Configs" and this folder put XML file
open Gcam apk ,click twice anywhere in a place between shooter and left icon for change camera back-front , it will appear a window with restore settings "nico...." you just save it in "Configs" . That's it !
---------- Post added at 10:43 AM ---------- Previous post was at 10:42 AM ----------
sfoot13 said:
Well, this camera is working on our phones with Night Sight.
Install the camera, go to settings ---> Mod Settings ---> Fix ----> Raw Sensor - change it to RAW_SENSOR.
After that, go back to settings ---> Photo ---> Advanced ---> Night Sight and enable Alternative Config 8.1, go back to viewfinder and done. ALREADY SET!
Now comes the hardest part, we need help with the settings, because the photos are overexpoded, high ISO and things like that. To be honest, I don't know how works most of the settings, so please, if you find the right settings, share it with us HERE everyone could enjoy the benefits of this app, we're a community, so we help each other, don't forget that. The config is more stable now.
Download:
https://drive.google.com/file/d/1WL5M81NJmEgt-Hj2D7DKyGsCKztRC7hS/view?usp=sharing
UPDATE 3:
I uploaded 2 files, one for normal shoot and the other for black and white photos.
I have to say that I just edited the files to make it work on our devices, Monochrome xml was taken from a telegram group (OP6/OP6T), thanks to Jean-Luc for this mod.
Download the XML file that I attached and save it into Gcam/Configs (folder inside internal memory).
Now, check the photo that I posted and open Gcam and double tap to restore the config.
Note: You'll need to tap to focus before take the photo, to avoid overexposed photos o errors.
I took both files (camera and configs) from a telegram group, so, Thanks to the guys who modded the app and edited the config, thank you very much! What a great job was done
Click to expand...
Click to collapse
I love it , all is fine . All works quite well . I should say this is only single Gcam apk that is fully functional .
Only a minimal exception with a 3x3 grid aplied but simply removed from settings . Tonight I'll shoot some pictures and I'm conviced by now it will be fine also with exposure , saturation , shadows etc fine tunes settings
Pictures coming with black and white . What shall I do
Vickydiya said:
Pictures coming with black and white . What shall I do
Click to expand...
Click to collapse
Hmm, maybe you need to read again the info...
sfoot13 said:
Hmm, maybe you need to read again the info...
Click to expand...
Click to collapse
i tried using night sight and it just sat there and it wouldnt load .....but the other features worked,
Portrait mode is not working ....
Photos with the front camera do not change compared to those of the native camera, the face does not get more details as with the ports of the GCAM 5.1
Can someone re upload the Nico-NormalShoot+NightSight.xml please? I need it for gcam and when I click the original one it says it's unavailable.
Photobooth Crash
Only monochrome file
Only the monochrome file is working ?
Do you need Root ?? I do not see a GCAM folder in my file explorer.
I tried to install on Motorola One Macro and then Motorola One Vision. I followed the tutorial to the letter. But it crashes on both handsets right after installing and opening.
Sent from my Motorola One Hyper using XDA Labs
Hi,
Is there any update for this cam? I've tried in night sight using the xml files but all of the pictures are just coming exaggeratedly overexposed and with a lot of noise.
Thanks in advance for the help
it's amazing, I take photos without light and I was surprised, really thank you very much for this development, I will attach 2 photos in comparison of the difference.
It gets stuck on processing hdr+ after Android 10 upgrade. Anybody faced this or knows solution?
rohitaror said:
It gets stuck on processing hdr+ after Android 10 upgrade. Anybody faced this or knows solution?
Click to expand...
Click to collapse
Try setting it off. It would work.
Interestingly when I set it to her on pictures are having overblown whites. And with hdr+ enhanced it's not taking pictures at all... Android 10 here. Any suggestions?
It doesn't work anymore, the hdr shows processing, and after turning the hdr off, it won't click pictures
Update after Android 10
I faced the same problem of HDR processing never ending after Android 10 upgrade. However, the photos still seem to turn out okay. Thanks for this port! I'm running it on Motorola One Action.
Hello,
What level of "Camera2 API" is enabled on "Motorola One Action"?
"Full" or "Level 3" ???
Example Image Attached: DevCheck in Xiaomi Mi 9T (Level 3)
Regards!!
Credits goes to the guys of this topic:
https://forum.xda-developers.com/on...ide-enable-960fps-slow-motion-7t-pro-t4101389
The mod adds to the stock camera the option to record 10 seconds of the video in 720p 960 fps.
Just wanted to let you know that in the normal one plus 7 this mod works as well. I am using the latest stable Android 10 firmware with arter97 kernel. I did not tested the macro mode.
The only one difference is that we need to add the values described in the topic above to camera 0 and 3, because the camera 5 does not exist for us. Please check carefully the screenshots.
Don't forget to install the newest apk of the camera from the link below, as well as after applying the mod don't forget to restart your phone.
https://www.apkmirror.com/apk/oneplus-ltd/oneplus-camera/oneplus-camera-3-10-19-release/
Have fun!
Not working with my OP7, with camera ver: OnePlus Camera 3.10.17 and OOS 10.3.2.GM57AA.
After editing the .xml files when I open the camera app it shows nothing just a black screen.
How about enabling Macro mode, Did it work for any?
Dipesh17 said:
Not working with my OP7, with camera ver: OnePlus Camera 3.10.17 and OOS 10.3.2.GM57AA.
After editing the .xml files when I open the camera app it shows nothing just a black screen.
Click to expand...
Click to collapse
3.10.19 is the newest version. Download this version, edit the XML 0 and 3 by adding the values, and then restart the phone. It has to work because for me is working.
Not working
misiek735 said:
3.10.19 is the newest version. Download this version, edit the XML 0 and 3 by adding the values, and then restart the phone. It has to work because for me is working.
Click to expand...
Click to collapse
I tried the same but not working.
Check screenshot.
The only difference is I am using pref edit to edit xml because preferences manager is always crashes on my mobile.
And pref edit is working.
Would you please share your screenshot or suggest something.
Dipesh17 said:
I tried the same but not working.
Check screenshot.
The only difference is I am using pref edit to edit xml because preferences manager is always crashes on my mobile.
And pref edit is working.
Would you please share your screenshot or suggest something.
Click to expand...
Click to collapse
You wrote 920, instead of 960. Change the name in both to the correct number.
Dipesh17 said:
I tried the same but not working.
Check screenshot.
The only difference is I am using pref edit to edit xml because preferences manager is always crashes on my mobile.
And pref edit is working.
Would you please share your screenshot or suggest something.
Click to expand...
Click to collapse
Had the same problem using Pref Edit, i edit them manually afterwards it works great, here are my xml files
https://drive.google.com/file/d/1bb-oFqq4wXxOk4wKR_OCIs_88uh3zpnr/view?usp=sharing
Just put them in /data/data/com.oneplus.camera/shared_prefs.
Hi! I am the author of the original thread. First. Camera 5 id exist on our phone. Is for multi camera. As camera 0 is for dual. And camera 3 is for wide angle. Totally not used here. The stringset needs to be added on 0 and 5 for stability reasons. I would appreciate the OP to not create duplicated of the threads please. (Thanks for the credits though, but this mod is not only mine, other people deserve credits too) and not spread wrong info please.
Hi @elmarian756
With all respect, the purpose of writing it here was to inform the users of standard one plus 7 about the possibility of using this mod. I decided to write about it here because it was important to mention that the settings in the preferences manager apk has to be different. If you think that this topic doesn't make sense, please edit your topic and include the information that the standard op7 can also use this mod with the proper settings. In that way I don't mind in deleting this topic. The idea was just to share the info, not to change/share/steal the credits from the original author.
I believe that for the op7 pro there is CameraInfo_5.xml file, but for op7 there is not. Please take a look at the screenshot below how does it look in my op7. The CameraInfo_3.xml is the "highest" available number. There is also CameraInfo_2, and 1 and 0, but there is no file which has number 5 in the title. I guess that the difference is caused by the reason that the op7pro has one camera lens more (the wide angle what you wrote about) compared to op7 which does not have that lens.
For the users of standard op7 (me including) editing the camerainfo_3 and 0 brings the possibility of using 960fps slow motion mod. If you wish, I can record and share the video showing the settings as well as the sample of the 960fps slow motion.
By the way, thanks for sharing the info about this mod!
All the best,
Misiek735
misiek735 said:
Hi @elmarian756
With all respect, the purpose of writing it here was to inform the users of standard one plus 7 about the possibility of using this mod. I decided to write about it here because it was important to mention that the settings in the preferences manager apk has to be different. If you think that this topic doesn't make sense, please edit your topic and include the information that the standard op7 can also use this mod with the proper settings. In that way I don't mind in deleting this topic. The idea was just to share the info, not to change/share/steal the credits from the original author.
I believe that for the op7 pro there is CameraInfo_5.xml file, but for op7 there is not. Please take a look at the screenshot below how does it look in my op7. The CameraInfo_3.xml is the "highest" available number. There is also CameraInfo_2, and 1 and 0, but there is no file which has number 5 in the title. I guess that the difference is caused by the reason that the op7pro has one camera lens more (the wide angle what you wrote about) compared to op7 which does not have that lens.
For the users of standard op7 (me including) editing the camerainfo_3 and 0 brings the possibility of using 960fps slow motion mod. If you wish, I can record and share the video showing the settings as well as the sample of the 960fps slow motion.
By the way, thanks for sharing the info about this mod!
All the best,
Misiek735
Click to expand...
Click to collapse
I am sorry i dont want to be rude but you are just misinformed. The information you are providing is just incorrect.
You can check this yourself typing *#*#1597#*#* and check the cameras IDs.
IDs are: 0 for dual
5 multilens
4 telephoto related (not sure which mode uses this)
3 wide angle
2 telephoto
1 front camera.
Oneplus can set many IDs as they need according to use.
There is no higher or lower. Dial the code and switch between modes and you will find out yourself.
Changing only 0 id works. But crashes camera sometimes. It needs 5 too. 3, is wide angle. Totally unrelated.
That is why you enable macro support on cameraid 3. Because macro uses that wide angle lens.
Again, i dont mean to be rude. But you are calling my info wrong. Just posting wrong information. It will confuse users. And you are duplicating a thread. It will only create confusion. Please do check your info. Is wrong. I dont want to report the thread as duplicate. But kinda is. Users dont need this clarification or my info doesn't need correction. With all respect. Yours is wrong.
Cheers and all the best! :highfive:
Duplicate topic. Please consolidate discussion in one thread:
[GUIDE]enable 960Fps slow motion like 7t pro!
Hello guys
The BSG versions of the Gcam mod works really stable on our device. But there aren't optimized configs available, so the colors do need to get a little bit tweaked. In the newest versions, it's possible to save and load configs. So it would be nice if we can test some settings out. I also tried it, so you can use it as a base if you want.
Some notes about the changes:
SlibP Custom lib
some settings in "Additional modules settings" (much more to try out there, that's the main place to play around)
activated instantaneous hdr+ enhanced (hdr+ enhanced but without loading time [ZSL], but viewfinder lags a little bit while rendering the final image because of the phone's performance)
Location to place config file: \Download\MGC.8.1.101_Configs
Used Gcam version: https://www.celsoazevedo.com/files/android/google-camera/dev-bsg/f/dl16/
There is also a thread for the A52 5G. Because both devices use the same cameras, it would be great to have one place to tinker.
Which is the apk I have to download? Why are there so many options?
Is it OK to download the fist one?
Wierd, the Samsung cam has way more HDR.
LanguageSoez said:
Which is the apk I have to download? Why are there so many options?
Is it OK to download the fist one?
Click to expand...
Click to collapse
Some manufacturers only give access to the cameras for specific package names. With the Samsung ones, you should be on the safe side. You can also install different versions with different names to make tests
LanguageSoez said:
Wierd, the Samsung cam has way more HDR.
Click to expand...
Click to collapse
Try to disable "instantaneous hdr+ enhanced" and make sure hdr+ enhanced is activated. I think the google stock libs are a little bit brighter, so it should also look more like HDR. There's also a setting to change how many pictures are combined for a HDR+ image, try to increase the value. For me, too much of an HDR effect makes the image unnatural
Do the app always need to restart everytime changing lense ? And I got weird flashes on screen while trying to take a picture.
phoberus said:
Try to disable "instantaneous hdr+ enhanced" and make sure hdr+ enhanced is activated. I think the google stock libs are a little bit brighter, so it should also look more like HDR. There's also a setting to change how many pictures are combined for a HDR+ image, try to increase the value. For me, too much of an HDR effect makes the image unnatural
Click to expand...
Click to collapse
I actually agree that Samsung's pictures look better (as in more accurate to real life) when in bright conditions. GCam has slightly lower noise, but no matter what HDR mode I choose, Samsung still has better HDR and the picture looks brighter overall. GCam's night mode is much better, though.
First one is Samsung, second is Gcam. Samsung's colours are closer to life. Keep in mind that the houses are brightly lit, as this was taken in the morning and they're facing East. For example the flowers in the pot in the balcony of the left house look very bright and vivid IRL. (The sharpness of the shadows near the roof is likely due to clouds moving)
First one is Samsungs, second is Gcam HDR+, third is Gcam HDR+ Enhanced
Both Gcam HDR+ Enhanced (7 or 15 frames doesn't do much), but first one with Google's AWB (like the previous ones), second one without. The second one looks much better, but a little over-saturated. One thing I did notice in the configs is that the AWB is set for a Sony IMX686 sensor, which I don't know if it is correct. I've been unable to find details on the sensor used in the A52. In any case, It seems that the takeaway here is to keep Google's AWB off.
These were all taken using @phoberus 's config file.
ImGonnaTryScience said:
I actually agree that Samsung's pictures look better (as in more accurate to real life) when in bright conditions. GCam has slightly lower noise, but no matter what HDR mode I choose, Samsung still has better HDR and the picture looks brighter overall. GCam's night mode is much better, though.
Click to expand...
Click to collapse
Thanks for the testing. I can confirm that the brightness and colors are not quite good yet. But almost everything should be adjustable. So we still have to test a bit. The sensor I got from gsmarena.com, but is just a guess from them. By default, Pixel2 would be active, which is certainly not correct, but also worked.
Brightness correction: Additional modules settings > Lens x > Exposure compensation
saturation: Additional modules settings > Lens x > Ram Patcher > Saturation (off means it gets the variables from the lib, there are also other nice settings there to create our own lib)
phoberus said:
Thanks for the testing. I can confirm that the brightness and colors are not quite good yet. But almost everything should be adjustable. So we still have to test a bit. The sensor I got from gsmarena.com, but is just a guess from them. By default, Pixel2 would be active, which is certainly not correct, but also worked.
Brightness correction: Additional modules settings > Lens x > Exposure compensation
saturation: Additional modules settings > Lens x > Ram Patcher > Saturation (off means it gets the variables from the lib, there are also other nice settings there to create our own lib)
Click to expand...
Click to collapse
When can we expect a stable optimized and stable gcam for our device. Will you please try contacting gcam developers personally? And also, please drop a link of the gcam you think to be the best one till now.
mushfiqurmasum said:
When can we expect a stable optimized and stable gcam for our device. Will you please try contacting gcam developers personally? And also, please drop a link of the gcam you think to be the best one till now.
Click to expand...
Click to collapse
BSG is only in a Russian forum active. Arnova8G2 also makes good builds, but he only enables the app for the phones he has enough testers. We could ask him here: https://forum.xda-developers.com/t/app-arnova8g2s-google-camera-port.3862448/
Device name: Galaxy A52
Can we get a port for Galaxy A52 4G please?
fix choppy/stuck wide angle and front camera by going into additional settings and changing camera2API level to Level3.. scan3d works fine. but pictures are dark, something with whitebalance
> used MGC_8.1.101_A9_GVt_ruler_libs.apk
> A52 4G / LTE
phoberus' config crashes my GCam viewfinder. I can't test the actual image quality yet since it's the middle of the night here as I'm posting this message.
So I tried Nikita's version, in terms of Color and HDR (default) it's the closest to the default camera app. I'm still playing around with the settings, so pictures to follow.
So, M51 has a similar camera setup with A52 so I thought I'd use a GCAM version from the M51 GCAM thread. Just testing Night mode and it's very clear that GCAM (right) works better. I'll edit this post to include more samples later.
Valthek said:
So, M51 has a similar camera setup with A52 so I thought I'd use a GCAM version from the M51 GCAM thread. Just testing Night mode and it's very clear that GCAM (right) works better. I'll edit this post to include more samples later.
Click to expand...
Click to collapse
Any version of GCAM I tried works better in night mode than the default camera. The problems I have is with in brightly lit scenes.
ImGonnaTryScience said:
Any version of GCAM I tried works better in night mode than the default camera. The problems I have is with in brightly lit scenes.
Click to expand...
Click to collapse
I actually tried a version of Greatness' GCAM and produced better daytime pictures, color was somewhat natural but it had better details (not noise). Unfortunately, I can't get the wide-angle lens and videos to work so I scrapped it.
I honestly don't mind the issues regarding color/hdr issues since a quick application of a vibrance filter is almost indistinguishable from the default cam. I mean it could be what the default samsung camera app is doing.
Edit: Also strange thing, low light (outdoor dusk scenario) and I get plenty of noise on GCAM compared to the default cam.