As you may know, our phone is capable of taking picture in raw format. Unfortunately, this is a non-official feature and even worse xiaomi uses three different sensors for the same device (sony, samsung, omnivision).
While for some people (sony and omnivision?) this feature may be working, this isn't the case with samsung sensor. Raw pictures are extremely desaturated and overexposed.
I don't know if this is caused by a bug in the software stack, or cheap material used for the sensor itself. Obviously raw pictures need some post-processing, but I have a Canon that takes nearly-perfect raw pictures even with 0 elaboration.
Since i know a bit of java/c/c++, I was thinking to write patch in order to fix this behavior; but I never worked in such a large project like the android source code and I don't know where to start. I am aware that the camera stack is composed at least by a kernel driver and an HAL, but in both of these there are bilion of strange function and I'm unable to find an entry point.
Some more experienced developer is interested in this project? These are some photo samples:
imgur. com/a/SxhPGYm (raw)
imgur. com/a/ozxOamG (camera jpeg)
(fix the link if you want, xda says I can't before 10 post)
Related
Hi,
After briefly checking available camera parameters of the LG G2 (stock), I found this:
picture-format-values=jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp
So I've started to work on a small app that will get unprocessed images to process them later on. But I've faced the following issues:
None of the eight bayer modes give me any callbacks for "PictureCallback raw" and "PictureCallback jpeg".
Is there any chance to get the raw image from this device's camera? With root? Different rom / kernel?
In addition the camera's images are extremely blurred due to aggressive denoise. Since I prefer to clean the noise in photoshop later on, I would like to disable the denoise filter. Unfortunately, params.set("denoise", "denoise-off") does nothing...
Is there a way to disable it?
Thank! :fingers-crossed:
Questions go in Q and A, not General - http://forum.xda-developers.com/showthread.php?t=2443934
Sorry... Now it is there.
How do I delete this thread?
Guys, I didn't find the macro mode inside camera setting and the auto focus simply can't focus when I try to shoot an object near the camera, differently from Note I and Note II. Even on Galaxy S II the focus of near objects is better.
It's like impossible to take detailed near pictures, I always need a minimal distance of about 20 centimeters.
Any workaround except from installing a third-party camera app?
Edit: The minimum distance needed to focus to work is about 20 centimeters. Less than this the camera simply can't focus!
viniciusrsouza said:
Guys, I didn't find the macro mode inside camera setting and the auto focus simply can't focus when I try to shoot an object near the camera, differently from Note I and Note II. Even on Galaxy S II the focus of near objects is better.
It's like impossible to take detailed near pictures, I always need a minimal distance of about 20 centimeters.
Any workaround except from installing a third-party camera app?
Edit: The minimum distance needed to focus to work is about 20 centimeters. Less than this the camera simply can't focus!
Click to expand...
Click to collapse
i have the same problem
I just tried and I must admit, that you are probably right.
Also there is no macro setting in the advanced options.
Is this software or hardware related ?
Edit:
Looks like its only software related as these guys are reporting to use another camera app
Sheeezy said:
I just tried and I must admit, that you are probably right.
Also there is no macro setting in the advanced options.
Is this software or hardware related ?
Edit:
Looks like its only software related as these guys are reporting to use another camera app
Click to expand...
Click to collapse
Yeah, I already heard before that this was a software related issue. It's shamefully incredible that a powerful device comes with a basic feature messed up like on this case!
I used to have the same problem. but i found solution which is downloading alternative application for macro mode
i am now using FV-5 camera application which has macro mode. and it works pretty good as note 2 which i used before note 3
i recommend this app for whomever has been suffering from this issue.
in my opinion there is no problem in terms of soft or hard ware. i dare assume that samsung didn't add this function for some reason.
It looks like we have full support of camera 2 api.
try snap camera from the store it have a option to enable..used the app if I was on aosp rom with the m8
Good to see
I forget where, but this was actually confirmed a looooooong time ago (well... long in tech time. Couple of weeks ago though).
I thought that since Samsung doesn't offer shutter speed control in pro mode that they didn't enable the full camera 2 api.
Dovigoldberger said:
It looks like we have full support of camera 2 api.
Click to expand...
Click to collapse
Hi,
According to the person who wrote this article, it seems that the camera2 api is not fully supported at the moment :
http://spectrastudy.com/camera2-api-on-mwc-2015-devices/
The manual camera checks would then bit too enthusiastic if this is true.
Can anyone who has manual camera installed try to take a picture in RAW and post the DNG file here?
I couldn't find any S6 DNG file on the web; it would be great if someone could confirm whether it is really possible to shoot in RAW with the S6.
With a Nexus 5, the 3 following apps can shoot in RAW :
- a better camera (there is a free version with limited number of shots in case)
- camera fv-5 (paid app)
- manual camera (paid app)
Dovigoldberger said:
I thought that since Samsung doesn't offer shutter speed control in pro mode that they didn't enable the full camera 2 api.
Click to expand...
Click to collapse
It does, but due to driver limitations, the longest shutter you can choose in Manual Camera app is 1/10. The longest shutter the S6 and edge is allowed to use (when ISO is manually set in the stock camera app) is 1/7. And when Manual Camera opens, WB is all green, so you need to long press WB to make it normal. There is now RAW support wither.
Right now the best camera SW for the S6 and edge is the stock, which is extremely fast to open, very quick to focus and snap, and offers a wide variety of options including manual settings, without shutter control. The latter is a pity, but without long exposures, you can just indirectly control it via ISO, either way, you are maxed out at 1/7. On the bright side... the lens is very bright, offering dramatically better lit details at the same SP and ISO than the S5, Note 4 or One M9, and it makes it a solid snapper indoors. Overall camera2 API is a mixed bag at it's current state and I hope full manual control comes soon with long shutter options.
Not sure this is because of camera 2 API or not, but you guys notice you can now separate auto focus from exposure point in pro mode? You can press and hold to lock the focus point, while shifting the exposure point to elsewhere on the screen. Makes it much better while shooting in situations where background and foreground are in vastly different exposure brackets.
http://spectrastudy.com/camera2-api-on-mwc-2015-devices/
"Manual camera" app doesn't work with S6
vincent2167 said:
Hi,
According to the person who wrote this article, it seems that the camera2 api is not fully supported at the moment :
... link ...
The manual camera checks would then bit too enthusiastic if this is true.
Can anyone who has manual camera installed try to take a picture in RAW and post the DNG file here?
I couldn't find any S6 DNG file on the web; it would be great if someone could confirm whether it is really possible to shoot in RAW with the S6.
With a Nexus 5, the 3 following apps can shoot in RAW :
- a better camera (there is a free version with limited number of shots in case)
- camera fv-5 (paid app)
- manual camera (paid app)
Click to expand...
Click to collapse
I Installed "Manual camera" app (compatibility app said that it would work) but it doesn't work.
"Manual camera" interface appears, turns green and freezes, and phone either reboots or app
just shuts down. Camera gets a little warm too.
Was hoping to get DNG files from S6, but doesn't look good.
Very disappointed about this.
Uninstalled app and was refunded.
Thanks for the feedback!
I tried the Manual Camera app as well and it all appeared to be working for me, until I attempted to save a RAW image. This crashed my camera and required a full reboot to resolve.
Jason_V said:
I tried the Manual Camera app as well and it all appeared to be working for me, until I attempted to save a RAW image. This crashed my camera and required a full reboot to resolve.
Click to expand...
Click to collapse
I don't think there's RAW support for any non-Nexus phone (maybe one of the Chinese ones, but not from the major OEMs).
Also, doesn't the shutter top out at 1/10 or 1/7?
Yeah when putting it into raw and gpeg you will get a crash we have to wait for Samsung to do an update . I have a feeling that the ois is the reason samsung cannot alow shutter speed variation as even dslr cameras don't use image stabilization when it's on long exposure and as ois cannot be switched of manually then this will be a problem .
Intro:
As many of us, (myself included), we already knew that @Sultanxda said that his ROM and Camera HAL he developed on it, doesn't support RAW picturing. Months ago, I discovered a way to get ride into it, and manage to taking RAW photos. I'm not claiming I've developed by myself, I just found it as curious I'm. As I didn't see any post or thread informing about this, I decided to start this one to discuss about it. So, let start.
Requisites:
Obvious thing, you have to root, unlock, blah blah and install the pertinent ROM from the Sultanxda's thread. It works on all CM 12.1 builds. I haven't tested it on OxygenOS 1.0.0, OxygenOS 2.1.4, or Sultan's CM 13. Try and let me know.
***ANY SUGGESTIONS OR INFO ARE VERY WELCOME, AS I SAID, I'M NOT A DEVELOPER - I'M JUST SHARING IN SOMEONE DON'T KNOW ABOUT THIS***
Update! March 28th, 2016
Now you can test and use the CM12.1 Sultanxda's Snapdragon Camera, merged with the features I will detail below in the post. The user @gwindlord, sent me this incredible app. You can try it out flashing this zip.
Also, I've just realized that, this is a DNG photo tutorial! Because, the .raw file generated is pretty obsolete in the SnapCam. And the newer Bacon Camera app, doens't generate a .raw file. It is just a .dng with a .jpeg preview file. FreeDCam, doens't generate any .jpeg or .raw, that's why you can't edit these files on Snapseed.
Steps:
1.- You have to install these two apps.
SnapCam 0.6 by @fgnm - http://forum.xda-developers.com/oneplus-one/themes-apps/app-snapdragon-camera-mod-t3210978
Snapseed by Google- https://play.google.com/store/apps/details?id=com.niksoftware.snapseed
2.- Before you open the SnapCam, make sure that the Snapdragon Camera that comes with the ROM, is already closed. When you open it, change the picture resolution to 13 MP (I guess theres a bug that makes appear a 21.5 MP resolution, maybe due the app was build to work entirely with the original CM Camera HAL).
3.- Then, go to Settings > More Settings
4.- Uncheck the Zero Shutter Lag option, and swipe down to find "Select Picture Format" option. Tap on it.
5.- Now, I'll try to explain the options that appears there, as far as I know due the results I got before;
JPEG - Normal .jpeg picture, as any camera does. Duh.
YUV422SP - This seems to be a Generic RAW codec, the camera app will crash after taking a picture, and just a .dng file will be dumped.
BayerQ10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a minor warm color temperature. *RECOMMENDED*
BayerM10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a minor warm color temperature, BUT, with a few last pixels on the right side, corrupted.
BayerIQ10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a highly green tint quality.
Select the one as you desire.
6.- Make sure that the "Save DNG raw" option is checked. If not, it will not work. (Dunno why).
7.- Take any photo. The picture will take around 5 secs to process, have a still hand!
8.- Go to the gallery app (stock one recommended), and there will be a new "raw" folder on it. All RAW photos taken will appear there. No one will have a preview, but you can read a few metadata info on the details.
9.- Now, go to the Snapseed app and open a pic normally. Select any of these pictures with no preview on it. You will have to guide using the date was taken.
10.- If everything goes right, the RAW editing welcome splash screen should appears. Pass over it, and you'll see the taken photo.
11.- Make the adjustments that you desire (you can manipulate it a lot, the quality is incredible). And then, save the picture. A progress bar should appear on the notification panel.
12.- When if finished, voilá! A processed .jpeg file will appear on you gallery. It's done!
Alternative Workarounds:
- Using the FreeDCam app by @troopii - https://play.google.com/store/apps/details?id=troop.com.freedcam
With this app, beside it can get all parameters directly from the camera driver, there's a way to take pictures in .dng format. No RAW will be generated, so you will not be able to edit it on Snapseed. The colors on this one will be totally natural and untouched, as well as exposure, contrast and sharpness.
- Using the Bacon Camera app by @fgnm (Paid app!) - https://play.google.com/store/apps/details?id=com.fgnm.baconcamera
As it is based on his deprecated SnapCam app, this app have the same method to work. But, the behaviour seems to be diferent. In case you use the BayerM10RGGB, a weird corruped picture will be dumped. I recommend the BayerQ10RGGB codec again, the result will be different; the white balance will appears 'cold' in this case, and the photo will have the normal resolution of 4208x3120. The main problem is, all pictures will be in potrait mode, no matters how you rotate the device.
Bugs - Curiosities:
I've noticed a few weird thing that I can't find an explanation, but well;
Pictures dumped will have a weird resolution; 4212x3082.
There are a few manual modes you can't use on this, like as; sharpness, contrast, saturation, and white balance.
Using the FreeDCam you can take .dng pictures using the front camera.
The .raw file is undecodable, but the .dng one is not. If you use RawTherapee for Windows, you may get able to edit your files even more.
The RAW file need the .dng one to work and viceversa on Snapseed.
Thanks to:
I want to give a lot of thanks to Sultanxda for his incredible ROM and Camera HAL, to fgnm; to develop an exclusive camera app designed for the OnePlus. And now also to gwindlord, to merge these functions into the original CM12.1's Snapdragon Camera.
Conclusion:
I remember I saw a post of Sultan saying that he got a kinda RAW picturing while he was developing his HAL, but it was undecodable. I really love this partial funtion, because I found the camera of the OPO a very good tool. And I hope that this tutotial work for all of you, or at least find it useful. I'm not have a technical knowledge of how this works, but it works. So, let's give it a try.
Good luck for everyone, and regards!
Interesting! Since Sultanxda's camera HAL was developed from the Oxygen OS's one, I wonder if this method also works on Oxygen OS? Maybe more people can try and report
FreeDCam has issues focusing on Sultanxda latest stable 6.0 and SnapCam 0.6 force closes when I tried to use it though
firenxe said:
FreeDCam has issues focusing on Sultanxda latest stable 6.0 and SnapCam 0.6 force closes when I tried to use it though
Click to expand...
Click to collapse
I had not any focus problems con FreeDCam. SnapCam 0.6 might not work on MM roms.
I'm using the latest sultan MM rom from 18/04 and can confirm that it is possible to save dng files with FreeDCam!
I didn't flashed any of the zip files or anything else.
The exposure of the photos is not correct. Everything is too bright, but I can correct that by "underexposing" in RAW postproduction.
firenxe said:
Interesting! Since Sultanxda's camera HAL was developed from the Oxygen OS's one, I wonder if this method also works on Oxygen OS? Maybe more people can try and report
Click to expand...
Click to collapse
Sultans hal was picked from caf and not oxygen os. He is using camera libraries from oxygen os. This is sth different.
Sent from my A0001 using XDA-Developers mobile app
With sultans MM rom snapseed can't see the dngs from the FreeDcam folder but you can share them into the app. A bit awkward.
While Adobe's Lightroom app does view and edit them nicely!
Sent from my A0001 using XDA-Developers mobile app
Hi, I have my PH-1 for a couple of days now and I like the pure Android and as well the camera app. There is however one single function that I miss - and that is a panorama mode for photos. I do have the 360° camera, but this is something different ... I use the panorama mode very often to have a "wide angle" photo, especially for landscape photography. Especially with the zoom factor of the PH-1 camera this would make sense. Manually putting photos together is much work.
Am I wrong or is this function not implemented so far?
Cheers,
Eriol
It's not there. I've come to rely on taking a series of individual pictures in sequence and letting Google Photos string them together through its magic. Actually does a really nice job and manages to block out some things that panoramic modes don't, like people moving through the picture. It is a limitation, though, that I hope will arrive with another update, however there are still some overall quality issues I hope they sort out first.