[Q] Accessing the front-facing camera - Galaxy Tab Q&A, Help & Troubleshooting

Hi,
has anybody been able to access the front-facing camera properly?
After "breaking" the camera by fuzzing it with different camera parameters I got at least a (complete?) list with available parameters so that I could access the ffc and get a camera preview. However, the problem is, that the preview size is different from the actual picture size which ends in having only one half of the preview size captured on a picture.
Here are the parameters I got from the device through the Log:
Code:
sharpness-max=4;
anti-shake=0;
sharpness-min=0;
digi-zoom=0;
metering=center;
sharpness=2;
contrast=2;
whitebalance=auto;
scene-mode=auto;
jpeg-quality=100;
preview-format-values=yuv420sp;
rotation=0;
jpeg-thumbnail-quality=100;
beauty-shot=0;
preview-format=yuv420sp;
preview-size=800x600;
focal-length=2.78;
iso=auto;
slow_ae=off;
camera-id=2;
flash-mode-values=off,on,auto,torch;
preview-frame-rate-values=30;
chk_dataline=0;
preview-frame-rate=30;
focus-mode-values=auto,macro;
jpeg-thumbnail-width=320;
scene-mode-values=auto,portrait,landscape,night,beach,snow,sunset,fireworks,sports,party,candlelight;
vtmode=0;
jpeg-thumbnail-size-values=400x240,320x240,0x0;
video_recording_gamma=off;
preview-size-values=800x600,1024x600;
picture-size-values=2048x1536,1600x1200,800x600,2048x1232,1600x960,1024x600;
contrast-min=0;
AppShutterSound=0;
min-exposure-compensation=-2;
antibanding=auto;
saturation-min=0;
contrast-max=4;
vertical-view-angle=42.1;
blur=0;
horizontal-view-angle=54.4;
mode=0;
brightness=4;
jpeg-thumbnail-height=240;
focus-mode=auto;
I tried accessing the ffc with this code snippet:
Code:
Camera camera = Camera.open();
Camera.Parameters params = camera.getParameters();
params.setPictureSize(800, 600);
params.setPreviewSize(800, 600);
params.set("camera-id", 2); // using front-cam (2) instead of back-cam (1)
params.set("exifOrientation", 90);
Thanks in advance for some hints.

Related

[Q] Anyone Else Having Camera Problems?

The camera on my Note 3 takes absolutely horrible pictures. When I take a picture, the camera focuses, shows the green square, then captures the picture, but it still turns out blurry. Smart stabilization doesn't fix it. It doesn't seem to have any benefit unless I'm shooting in low light conditions. Anyone else having this problem? The camera on my ancient Droid X and Galaxy Nexus were better than this piece of crap...
My camera settings are:
Photo size: 4128x2322 (4128x3096 mode just makes the field of view smaller and doesn't improve the quality)
Burst shot: on
Tap to take pics: off
Face detection: off
Metering modes: center weighted
ISO: auto
Smart stabilization: off
Video size: 1920x1080
Video stabilization: on
Audio zoom: off
Location tag: off
Review pics/video: off
Volume key: zoom
Timer: off
White balance: auto
Exposure value: 0
Voice control: off
Contextual filename: off
Storage: memory card
Shutter sound: off
Face_Plant said:
The camera on my Note 3 takes absolutely horrible pictures. When I take a picture, the camera focuses, shows the green square, then captures the picture, but it still turns out blurry. Smart stabilization doesn't fix it. It doesn't seem to have any benefit unless I'm shooting in low light conditions. Anyone else having this problem? The camera on my ancient Droid X and Galaxy Nexus were better than this piece of crap...
My camera settings are:
Photo size: 4128x2322 (4128x3096 mode just makes the field of view smaller and doesn't improve the quality)
Burst shot: on
Tap to take pics: off
Face detection: off
Metering modes: center weighted
ISO: auto
Smart stabilization: off
Video size: 1920x1080
Video stabilization: on
Audio zoom: off
Location tag: off
Review pics/video: off
Volume key: zoom
Timer: off
White balance: auto
Exposure value: 0
Voice control: off
Contextual filename: off
Storage: memory card
Shutter sound: off
Click to expand...
Click to collapse
Sorry your having trouble with taking nice pictures. I have absolutely NO problems what so ever, in any mode. Today I took bunches of pictures in different modes, with different settings of my lil cousins finding eggs. I don't think I've ever gotten so many comments on picture quality before.
Some things you can try:
-Open application settings and clear the camera app data and cache. This will reset all the settings to their default.
-Try a different memory card. Or try using internal storage. If you have a low quality memory card it might pose a problem. I have a 64gb samsung evo card with no problems what so ever.
-Last resort is to perform a factory data reset. It will reset your entire phone to default. Yes it's a pain to re-setup your phone again how you like it. But may fix your issues.
Hopefully one of those theories will get you taking beautiful pictures again.
I wiped the camera, camera test, and gallery data. After restoring my settings it seems to be on par with my Galaxy Nexus now. Thanks for the help!
Is it just me, or does anyone else think the name "smart stabilization" is misleading? It doesn't seem to do squat for image stabilization.

ASUS ZenFone2 ZE550KL. Reduce camera noise

Hi Guys, Try these camera settings those who get noise/grainy pictures, It working picture perfect for me. ASUS ZenFone2 ZE550KL. Reduce camera noise by these simple setings
AUTO MODE:
White Balance : Auto
ISO : 400
Exposure Value : +1
Optimization : Auto
Image Quality : Fine
Touch Shutter : On
Camera Version: 20.42.0_151014
Naveen
Cannot confirm at z00ad. With +1 exposure pictures looks like too much light on them.
I think that this can be problem in app with saving parameters. Creating a image file is failure, not just hardware.
Has someone tried other apps to make pictures?
looked a lot and found nothing!!
any idea how to root this ze550kl..???
Hey, i tried thr above setting and still there is to much noise indoors...
Any idea or any other setting to avoid noise details
naveengoud said:
Hi Guys, Try these camera settings those who get noise/grainy pictures, It working picture perfect for me. ASUS ZenFone2 ZE550KL. Reduce camera noise by these simple setings
AUTO MODE:
White Balance : Auto
ISO : 400
Exposure Value : +1
Optimization : Auto
Image Quality : Fine
Touch Shutter : On
Camera Version: 20.42.0_151014
Naveen
Click to expand...
Click to collapse
Thanks,
Tried your suggested setting.
Seen less noise compared to default setting.
Share new findings also with other app or camera.
Thanks
SachinM

[APP] Raw Dumper v3.5.0 - taking RAW pictures on the Zenfone 2 [EXPERIMENTAL][ROOT]

Hi!
After a HUGE amount of work, it's finally here!
Raw Dumper is a simple camera app for taking RAW pictures on the Zenfone 2 (ZE551ML)
(Intel-based smartphones rocks!)
Q: What's a RAW picture?
A: Jpeg pictures are processed, meaning that multiple image processing algorithms (debayer, white balance, tonemap, sharpening, saturation, noise reduction, jpeg lossy compressing, etc) were applied; they usually retain about 1/10 of their original data.
A raw picture, however, is taken directly from the camera sensor and all captured data is preserved, leaving to the user the decision of how the image is going to look.
Since they retain all data, raw pictures occupy more storage space (A single raw 13-megapixel photo use 23 MB, on the Zenfone 2 ZE551ML).
Q: How is this possible?
A: There is a hidden camera parameter on Intel-based phones that does the trick. It's mentioned in a system library called Intel Camera Extensions (that library also enables other camera features). However, the raw feature doesn't need the library to work.
Q: The pictures captured with this app are really RAW?
A: Yes, because the captured data has the Bayer pattern, the right size and has a lot of lens shading around the image's borders (the app tries to remove the lens shading, so you probably won't appear in your photos).
Some important notes:
I'm not responsible for bricked phones, broken phones/cameras/images or thermonuclear war
It is REALLY experimental
It's currently being tested on Zenfone 2 (ZE551ML) - but it should work on ZE550ML too
This app WILL NOT work on phones with non-Intel processors (Qualcomm, Samsung...)
It should work on Marshmallow stock rom
For working on custom roms that uses LL camera blobs (like Lineage OS), is required to patch the camera lib
It REQUIRES root (otherwise the camera subsystem will drain your internal storage by making another copy of every raw picture taken it in a root-only system directory; currently, there's no workaround to fix this )
The DNG pictures will be saved in /sdcard/DCIM/RawDumper (they can be opened using Snapseed, Darktable, RawTherapee and Adobe Lightroom)
It should work on the Razr I and Zenfone 5 too, but I haven't tested them properly because I don't own these devices
It only works with the Zenfone Zoom's front camera (the back camera requires the development of a specific custom kernel)
Screenshot:
Click HERE
Download APK:
Click HERE
Latest version: 3.5.0
Github repo:
Click HERE
Patched camera blobs for Lineage OS users:
(replace the /system/lib/hw/camera.vendor.mofd_v1.so file)
Click HERE
Have fun!
Created: 31/05/2017
Last update: 03/01/2019
To do list:
Low light mode
Picture format selection
Slow Sync Flash
And maaaaany other things...
Changelog:
Version 3.5.0:
Optimized APK size: from 6MB to only 2.2MB!
Better configurations switches's colors
Ultra fast picture saving thanks to asynchronous IO
Display camera aperture below shutter speed value
Added a new free-lens-camera-like effect
Fixed Original Size DNG tags
Fixed a minor interface bug
Version 3.4.0:
Optimized memory usage when saving raw pictures
Faster DNG compression using multiple processor cores
Less processor usage and garbage-collection-related FPS drops due to logcat background processing
Optimized update interval of the exposure metering features
Migrate our project to AndroidX
Added a switch to disable raw digest generation
Flash focus (beta)
Fixed the dates-related tags in Exif's data
Version 3.3.0:
Started using Adobe's DNG SDK to save the pictures
The raw files now can be losslessly compressed
The raw files are now are compatible with almost every RAW editor
Picture size selection enabled
The alternative color profiles are now saved on every raw file
Increased front camera screen flash brightness a bit
Version 3.2.1:
Several bug fixes (su shells, UI sliders, camera opening...)
Advanced Black Level Calibration
Simple tone curve
Camera lens vignetting toggle
Invert front camera pics toggle
New alternative color profile
Version 3.0.0:
Different white balance modes + manual white balance
The app's UI now auto-rotates
Fixed touch focus touch position
Added touch exposure metering
Reduced GPU overdraw
New logo! Made by Nazmul Hasan
Screen flash for the front camera
Advanced Lens Shading Correction implemented
Take pictures with volume down button/headset button/camera button (if present)
Focus with half-way pressed camera button (if present)
Fixed small graphics glitch when starting the camera
Fixed the shutter speed selector
Re-done the front picture mirroring due to incompatibilities with raw converters
Recalibrated the Zenfone 2 cameras under the Standard A illuminant
Version 2.3.1: (Quickfix version)
Fixed a not-so-rare race condition bug that crashes the app during its initialization
Fixed the shadows of certain buttons of the main UI
Removed some unused layouts from the main UI
Version 2.3.0:
Fixed a small glitch in the lower portion of the screen when the app is starting
The raw pictures now have the right rotation applied
Pictures taken with the front camera are also properly mirrored
ISO and shutter speed metering for the Zen2/Zoom front camera!
Fixed a weird bug in the lens shading correction algo
New gain based auto white balance algorithm that *should* always work
Version 2.2.1:
Focus peaking when using manual focus for a Mirrorless-like experience
A little bit faster picture taking on the Zenfone Zoom front camera
Version 2.2.0:
Added proper focus mode selection
Added manual focus (for compatible devices)
New animation when taking pictures
Added Zenfone Zoom to the compatibility list (front camera only)
A more detailed description HERE
Version 2.0.0:
A revamped inner architecture and user interface (with animations)
Added manual EV feature
Added ISO and shutter speed metering
Added a warning when the user is using Lineage OS with buggy camera blobs
Added Zenfone 5 and Razr I to the compatibility list (even though they need more testing)
The app (tries to) auto rotate the pictures (but it still quite buggy)
Added visual feedback when using touch focus
The size of the native tiff library was vastly decreased
Better white balance strategy for zenfone 2's front camera
A more detailed description HERE
Version 1.3.0: (may contain bugs)
Taking and saving pictures are executed in the background! YAY! (this may lead to hard-to-find bugs, however)
Taking pictures with the front camera is FINALLY HERE! (the front camera should work with custom roms using Lollipop's camera blobs! )
Some progress on taking raw pictures with the Razr I was done (but it won't work for now)
Version 1.2.3: (Quickfix version)
Better handling of alert dialogs
Force disabling of device list
Version 1.2.2: (Quickfix version)
Better log with some useful debug information
List of supported devices is temporarily disabled
Version 1.2.0:
(beta) Manual ISO: from 50 all the way up to 1600!
(beta) Manual Shutter Speed: short exposures like 1/10000s and long exposures like 32s!
Version 1.1.0:
DNG creation process updated with a WAY BETTER code! (Including better exif data!)
Now the app contains a list of supported devices and supported features (currently only ZE551ML and ZE550ML are supported)
Touch focus!
Changed some white balance calculations (need your feedback on this!)
Version 1.0.1:
The apk now contains only x86 and x86_64 compiled libraries.
Fixed a small bug when the flash button didin't update.
Now it should work on non-stock roms. Edit: it installs but crashes.
Minor updates on the DNG generating process.
Version 1.0.0:
First app release
Wasn't Asus Zenfone 2 unable to capture RAW images due to the restriction from sensor of the camera itself?
Testing, let's see how it works!
Also I've downloaded your project from github, I'm so curious about the structure.
SleepingAran said:
Wasn't Asus Zenfone 2 unable to capture RAW images due to the restriction from sensor of the camera itself?
Click to expand...
Click to collapse
Every picture you take using a digital camera was raw in some point of its processing. Of course, some camera sensors do all the processing inside and only dump the ready-made JPEG (this is not the case of the Zenfone 2). But, in theory all sensors (dumb VGA webcams, point-and-shoot cameras, DSLR professional cameras, smartphone cameras) could be capable shooting in RAW. In smartphones, most of the time, the limitation is on the camera software, not in the hardware. The Zenfone's (and other Intel) raw shooting ability is just a little bit hidden
pedperpat said:
Testing, let's see how it works!
Also I've downloaded your project from github, I'm so curious about the structure.
Click to expand...
Click to collapse
It's quite simple, is just a simple camera app with lots of hardcoded stuff (I'm going to fix it, don't worry hahaha). I just wanted to publish something to show is possible to shoot in RAW on the Zenf2. I'm planning to clean up the code and add some nice manual/auto ISO and shutter speed in the next versions (I've tested and these features work perfectly with RAW )
dreckneck said:
It's quite simple, is just a simple camera app with lots of hardcoded stuff (I'm going to fix it, don't worry hahaha). I just wanted to publish something to show is possible to shoot in RAW on the Zenf2. I'm planning to clean up the code and add some nice manual/auto ISO and shutter speed in the next versions (I've tested and these features work perfectly with RAW )
Click to expand...
Click to collapse
I had some problems to use the C++ libraries on Android Studio. I can't install the NDK, it's weird...
Btw, great job enabling the raw shoot mode at this phone.
pedperpat said:
I had some problems to use the C++ libraries on Android Studio. I can't install the NDK, it's weird...
Btw, great job enabling the raw shoot mode at this phone.
Click to expand...
Click to collapse
Thanks! I've updated the project to use the latest gradle plugin now, try updating Android Studio. NDK building is WAAAAAAY easier on the latest versions. If you need help, you can PM me
PS: I hate Android Studio hahaha
not working it's not compatible on my z00d mokee rom nightly 7.1.2, why?
dreckneck said:
Thanks! I've updated the project to use the latest gradle plugin now, try updating Android Studio. NDK building is WAAAAAAY easier on the latest versions. If you need help, you can PM me
PS: I hate Android Studio hahaha
Click to expand...
Click to collapse
I hate Android Studio at the update of NDK Libraries only. Android Studio is a great IDE despite of its slowly load times.
I'm at work, will try again your app when I came home
Let's check the github repo a little
dreckneck said:
Every picture you take using a digital camera was raw in some point of its processing. Of course, some camera sensors do all the processing inside and only dump the ready-made JPEG (this is not the case of the Zenfone 2). But, in theory all sensors (dumb VGA webcams, point-and-shoot cameras, DSLR professional cameras, smartphone cameras) could be capable shooting in RAW. In smartphones, most of the time, the limitation is on the camera software, not in the hardware. The Zenfone's (and other Intel) raw shooting ability is just a little bit hidden
Click to expand...
Click to collapse
TIL! I've been searching for application that could take RAW format since Camera2 API was released, but all of them are not compatible with Zenfone 2. Looked up to the internet and most of them claimed that the hardware does not support taking photos in RAW format, then I eventually accepted it as a fact.
Thanks for the awesome application.
I try your app on my Zenfone 2 (ZE551ML) with resurrection remix 5.8.3, but it won't install, is your app only for stock rooted firmware??
Sorry,but i can't find any photo i've taken and there is no menu at all
themonyo666 said:
not working it's not compatible on my z00d mokee rom nightly 7.1.2, why?
Click to expand...
Click to collapse
Because the sensor used in the Zenfone 2 ZE500CL is different. Unfortunately, the app needs some specific information about the camera sensor to generate the DNG files. However I'm planning to make the app smarter to get all this specific sensor info automagically so it could work on a wider range of phones
amerli73 said:
I try your app on my Zenfone 2 (ZE551ML) with resurrection remix 5.8.3, but it won't install, is your app only for stock rooted firmware??
Click to expand...
Click to collapse
Hmmm... That's weird. What was the error message during the installation?
dimitrakhs1 said:
Sorry,but i can't find any photo i've taken and there is no menu at all
Click to expand...
Click to collapse
Inside the "DCIM" directory there is another directory called "RawDumper"; the DNG pictures should be there
dreckneck said:
Hmmm... That's weird. What was the error message during the installation?
Click to expand...
Click to collapse
Just this
amerli73 said:
Just this
Click to expand...
Click to collapse
I've got the same result.
Using: Lineage OS 14.1 - Latest Build
dreckneck said:
Inside the "DCIM" directory there is another directory called "RawDumper"; the DNG pictures should be there
Click to expand...
Click to collapse
I know.Still nothing...
This is a bomb! Good quality and a lot of headroom to play with ir RAW developing program (i use raw therapy)

Camera with Match or Guide Shot

Hi,
Is there a port of the old v30/G6 camera that has Match & Guide shot available?
Either that or is there a 3rd party camera that has this functionality?
For info: Match & Guide shot are two methods whereby you can see a previously taken image in parallel with the camera view (the former next to (in square camera mode usually) the camera view and the latter overlaid on the camera view (with slider)...

Question Any open source camera alternatives that support Note 10 Pro lenses

I've looked into this before, but curious if anybody's found any decent open source, or free, camera alternatives with support for the Note 10 Pro lenses. Not the decompiled ports of gcam, anxcamera, or leica camera.
There's Open Camera, but it doesn't support the lenses. The only one I've found so far that supports the lenses is FreeDCam, though the lenses are just numbered Front 1, and Back 0 - Back 6. And if you choose Back 6, it hangs.
david003 said:
I've looked into this before, but curious if anybody's found any decent open source, or free, camera alternatives with support for the Note 10 Pro lenses. Not the decompiled ports of gcam, anxcamera, or leica camera.
There's Open Camera, but it doesn't support the lenses. The only one I've found so far that supports the lenses is FreeDCam, though the lenses are just numbered Front 1, and Back 0 - Back 6. And if you choose Back 6, it hangs.
Click to expand...
Click to collapse
I have been using open camera and it does support all cameras in my device. They are indeed just numbered, and there are a few glitches, but it does work and takes great shots.
Make sure you have enabled camera2 api in settings.
I've installed OpenCamera again and selected camera2 api (I've tried that before, too). But I still don't see the lenses. Where do you select them?
A while ago i've used Snap Camera. Found it quite useful und extremely customizable.
Snap Camera HDR - Apps on Google Play
A Fast, Full Featured HDR Camera App, Gallery and Photo Editor.
play.google.com
I dont know if there is a free version available, since I thought this after testing it.
Does it support the extra lenses on the Note 10 pro?
I'm testing LineageOS now, and Open Camera does show the extra lenses with it, which I couldn't see with xiaomi.eu. It has a button to cycle through the lenses, though it still hangs on the last lens. I'll try using it for now, since I've used Open Camera before on my Note 4x, so I'm familiar with it.
From what I can see, these are the cameras/lenses available on the Redmi Note 10 pro that are exposed to Open Camera.
0 Main Back Camera
1 Front Camera
2 Depth Sensor (B&W) - not useful
3 Macro
4 Ultra Wide
5 Main Back Camera Better Quality Photos
6 unusable
7 unusable
8 unusable
Both 0 & 5 are the main back camera, but ID 5 produces significantly better photos. I'm not sure, but I suspect when accessed through ID 5 there's some internal pixel binning happening. ID 5 won't work for videos, though.
I was able to modify the source code to ignore ID's 2, 6, 7, 8 and change the order the cameras are cycled. So it cycles in this order when the multi-camera button is pressed:
0 Main Back Camera
5 Main Back Camera Better Quality Photos
3 Macro
4 Ultra Wide
The front/back camera toggle button still works as usual (and resets the back camera to 0, as usual).
This was the change I made to MainActivity.java. It requires Android Studio to change, build, and generate a new apk.
$ diff MainActivity.java MainActivity.java.new
402c402,415
< for(int i=0;i<n_cameras;i++) {
---
> int i=0;
> switch( preview.getCameraControllerManager().getFacing(i) ) {
> case FACING_BACK:
> back_camera_ids.add(i);
> break;
> }
> i=5;
> switch( preview.getCameraControllerManager().getFacing(i) ) {
> case FACING_BACK:
> back_camera_ids.add(i);
> break;
> }
> for(i=0;i<n_cameras;i++) {
> if(i != 0 && i != 2 && i < 5) {
413a427
> }
I did some more testing with Open Camera and cameras 0 & 5. I'm still not sure what the difference is, but camera 5 has a longer exposure in auto mode, and results in a brighter picture that seems to have less noise. But the lighting/exposure is not always accurate. It can be much brighter than the actual scene. It does work well for night shots, though (better than HDR).
I also found "Photon Camera" that is open source and does nice HDR shots.
[APP][CAMERA][ANDROID 8.0+][ARM64] PhotonCamera - Enhanced algorithms camera
PhotonCamera is ongoing alpha project what developed by our team including Urnyx05, Savitar and others developers. It is aimed at making advanced algorithms for photos available and able to be modified. Description: Shooting opportunities: -This...
forum.xda-developers.com
It was crashing at times, but setting the battery to unrestricted seems to be helping, so far. It has some sort of "Unlimited" mode that crashes, and I'm not sure what that's supposed to be. There is a video mode, but it's fixed on 4k resolution in portrait with no way to change it that I can find. Also, there's no way to set the storage to the SD card.
It does have access to the different lenses on the Redmi Note 10 pro.
I'll attach some comparisons: Open Camera ID 0, ID 5, and Photon Camera. The Photon Camera lighting is most realistic compared to the actual lighting in the room.
Here's a few shots at night with Open Camera. You can see the dramatic difference between camera id 0 and id 5. Camera id 5 is better at night; even better than using hdr. Maybe id 5 is an internal night mode?
Just wanted to add: I tried adjusting the exposure compensation in Open Camera, currently to -1.00 EV, and it makes a big improvement. By default photos seem over exposed. Maybe it's just a sensor configuration with the Note 10 pro, and it needs to be adjusted with this setting.
With exposure compensation, comparison to Photon Camera HDR usually favors the Open Camera shot.
Using a camera2 api app, I found some more information about the cameras in the Note 10 pro.
Camera ID 5 reports as a "LOGICAL_MULTI_CAMERA" for physical camera ID's 0 and 2. So it's the main back camera that is also using the Depth Sensor (id 2). If I manually focus on a certain spot, it does produce a nice bokeh effect. The depth sensor also seems to help with night shots.
Interestingly, Camera ID 6 also reports as a "LOGICAL_MULTI_CAMERA" for physical camera ID's 0 and 4, which would combine the main camera with the Ultra Wide camera. I haven't been able to get that one to work with Open Camera, though, and not sure of it's purpose. There are also others, not sure of their purpose, but they also don't work with Open Camera.
I'll attach the text report with the camera2 api info.

Categories

Resources