Automatic camera light? - XPERIA X1 General

Hi guys, is there a way that the camera light can come on automatically by using the light sensor at all?
Otherwise maybe a project for someone with programming ability?

Hmm
Unlikely, would require direct editing of the Camera apps and possibly even the camera driver. Unless someone does either of these or writes a new camera app, it's not likely to happen I'm afraid.

There is already a thread about this...
http://forum.xda-developers.com/showthread.php?t=454823

Related

Hd2 wp7 Camera Autofocus? (not camcorder)

Hey i just wanted to know if there is a way to focus the camera in wp7 becouse it's all blurry?
Yes im having the same problem
camcorder is working fine
Unless we get a sort of focus implementation like in android then it's just like that. The camera was designed to have a button which could be half pressable to focus, and then when pressed in fully, takes the picture. Obviously we don't have a button like that so, a touch sort of focus needs to be implemented for us, until then, pictures will be blurry for now.
Wonder if a person could create a double tap to take a picture app..
Wdave said:
Wonder if a person could create a double tap to take a picture app..
Click to expand...
Click to collapse
'double tap' amazing idea!
Solution to problem
Quick'n'dirty Workaround to Autofocus:
1. Before taking the picture, switch to video mode
2. Wait for the camera to refocus ~1 second - you will see the image sharpness change
3. Switch back to camera mode and take your picture
This works because the camera will simply retain the focus distance that the video camera set.
So, until Microsoft implements touch-focus (which they really should) we could just use this.
antonsb said:
quick'n'dirty workaround to autofocus:
1. Before taking the picture, switch to video mode
2. Wait for the camera to refocus ~1 second - you will see the image sharpness change
3. Switch back to camera mode and take your picture
this works because the camera will simply retain the focus distance that the video camera set.
So, until microsoft implements touch-focus (which they really should) we could just use this.
Click to expand...
Click to collapse
quick you have to be like lightning to take a picture as it starts un-focusing straight away.
By the time you press the button you have moved the phone so its blurred & camera is already out of focus.
Must be an easier way.
Please please please someone design a fix for the camera.
I loved the panoramic shot aswell on hd2 but everything is gone.
Video is great but camera is poor.
Thank you
Before taking a picture toggle between photo and video mode. That fixes the autofocus issue. Not an ideal solution but an alternative nonetheless
maybe its can help for developers :
http://www.codeproject.com/Articles/151485/Hacking-the-WP7-Camera-The-basics.aspx
Maybe a possible solution could be map the focus function (the half click) in another button?
I think the solution is because we don't have a two position button is to do touch the screen to focus and then take the shot. But that probably requires a lot of coding.
Until this is sorted, I think its a major flaw with HD2 and WP7
Use the camera a lot, unless its bright sunlight the camera just will not focus.
Luckily I can dual boot, lets hope for a fix of some application that uses touch screen to focus
It's possible the focus could be mapped to one of the volume buttons within the Camera app.
This would likely depend on the half-press on native WP7 systems having its own key mapping, separate from the full-press, and the Camera app listening for each keymapping separately. We'd just need to hack the keymapping for the half-press to the volume button. This is, of course, if WP7 still deals with keymapping the way earlier versions did.
Also, if the Camera app treats the camera button as some kind of special case, and rather than 2 mappings for half- and full-press, it has a single mapping, it'll likely need a major rewrite to support focus on the HD2.
Fingers crossed it's just a case of searching the code for keypress 0xC1 and replacing it with 0x76 (for example).
i think... and i think ... but nobody search...
i think the solution is here:
http://forum.xda-developers.com/showthread.php?t=935029
look to link
ilijan said:
i think... and i think ... but nobody search...
i think the solution is here:
http://forum.xda-developers.com/showthread.php?t=935029
look to link
Click to expand...
Click to collapse
640x480 is not good enough.
It will be unlikely we'll be able to map this app to replace the internal Camera app completely.
Will 3rd party apps, like barcode readers, be able to use this app?
Hexediting the native Camera app and changing the key mapping, and cooking it into a new ROM would be much better.
That app shows promise, though.
Dont know if this helps, but here is another solution that claims to fix HTC HD2 cam running WP7. no camcorder though.. http://aliwaqas.info/shcamera-fixes-camera-issues-on-htc-hd2-running-windows-phone-7-xap/
Just post the direct link to XDA lol
http://forum.xda-developers.com/showthread.php?t=942605
Autofocus works PERFECT!
For recording videos, just use the original camera app.
Regards,
Lukas
Well one solution if we are to implement focusing through buttons instead of touch, is that we have the call button when held down, focus, and then the camera will take the picture after we've released the call button.
Kailkti said:
Well one solution if we are to implement focusing through buttons instead of touch, is that we have the call button when held down, focus, and then the camera will take the picture after we've released the call button.
Click to expand...
Click to collapse
That's the behavior I thought would be appropriate too.
A touch screen focus would be even better, cause it would allow, like on WinMo 6.5, to focus wherever we want on the picture. But it would require a more coding than just adding a press-to-focus/release-to-shoot behavior.
The SHCameraApp is nice, but its resolution is limited, and it would be nicer to have a single, integrated app to do the photos and videos. Nonetheless, it's a nice workaround for the time being.

Wanting to write a camera app, how to REALLY control exposure?

Hi there. I hope I'm asking this in the right place, but I have an interest in the inner workings of cameras on android, and how an app could control them effectively.
I have noiticed that most, if not all, android cameras have autoexposure hardwired on, and that this hardware autoexposure is significantly more effective than what is user controllable (brightness sliders and the like in camera apps)
For example, if you are sitting in a dark room, with a bright window. Now matter how low you drop the "exposure slider" in an app, the window will never come into the proper exposure range. Yet, if you actually look out the window with the camera, to where the outside world fills the viewport, the camera will automatically drop into the proper exposure range. This is odd to me... So the camera CAN expose down far enough to make the outside not blown out, but I am not able to control this?
The only explanation I can figure is the exposure on cell cameras works in a two step process.
1. Light hits sensor, sensor uses autoexposure to get the right range, all on it's own (we cant control this, or can we?),
2. and then the software gets the stream and we can adjust it slightly inside of the software side.
So I guess my question is... is it possible to edit step 1? Can we manually adjust the full exposure at the sensor level? I find most HDR apps to be very lacking on Android, and I believe this is the cause. The app literally has no access to change the exposure range. It can only adjust in a small range that is exposed to software after the hardware auto-exposure has done it's magic.
I have hope that this may be changeable, thanks only to one software I have seen that can.. kinda... adjust the hardware exposure. An app called Camera FV-5 on the market, if you go outside, get your exposure correctly, you can then choose AE-L for autoexposure lock, and then go inside and look out that same window, and everything will say exposed as low as you locked it.
If this is possible, that at least means we can allow/disallow the hardware auto-exposure. And if this is possible, maybe more control is too.
Thoughts? My goal is to make a camera app that fully controls settings such as these. At their full range. Let me know what you all think!
(Specifically I am on the LG G2, and would like to get hardware level exposure control on this model, but Id love to expand after I see it's possible, if it is)
Sorry if this is the wrong forum, I am new here. if so Mods please move it for me or let me know where it goes! Thanks!
WACOMalt said:
Hi there. I hope I'm asking this in the right place, but I have an interest in the inner workings of cameras on android, and how an app could control them effectively.
I have noiticed that most, if not all, android cameras have autoexposure hardwired on, and that this hardware autoexposure is significantly more effective than what is user controllable (brightness sliders and the like in camera apps)
For example, if you are sitting in a dark room, with a bright window. Now matter how low you drop the "exposure slider" in an app, the window will never come into the proper exposure range. Yet, if you actually look out the window with the camera, to where the outside world fills the viewport, the camera will automatically drop into the proper exposure range. This is odd to me... So the camera CAN expose down far enough to make the outside not blown out, but I am not able to control this?
The only explanation I can figure is the exposure on cell cameras works in a two step process.
1. Light hits sensor, sensor uses autoexposure to get the right range, all on it's own (we cant control this, or can we?),
2. and then the software gets the stream and we can adjust it slightly inside of the software side.
So I guess my question is... is it possible to edit step 1? Can we manually adjust the full exposure at the sensor level? I find most HDR apps to be very lacking on Android, and I believe this is the cause. The app literally has no access to change the exposure range. It can only adjust in a small range that is exposed to software after the hardware auto-exposure has done it's magic.
I have hope that this may be changeable, thanks only to one software I have seen that can.. kinda... adjust the hardware exposure. An app called Camera FV-5 on the market, if you go outside, get your exposure correctly, you can then choose AE-L for autoexposure lock, and then go inside and look out that same window, and everything will say exposed as low as you locked it.
If this is possible, that at least means we can allow/disallow the hardware auto-exposure. And if this is possible, maybe more control is too.
Thoughts? My goal is to make a camera app that fully controls settings such as these. At their full range. Let me know what you all think!
(Specifically I am on the LG G2, and would like to get hardware level exposure control on this model, but Id love to expand after I see it's possible, if it is)
Sorry if this is the wrong forum, I am new here. if so Mods please move it for me or let me know where it goes! Thanks!
Click to expand...
Click to collapse
As I have no idea how the camera is using the light sensor, the only logical advice I would give you is to browse the source code of the standart camera app.. Since Android is open source, I'm sure you can find something that helps you
The other way would be to write a very basic camera app that does not make use of the light sensor, and then see how much exposure is actually done without you knowing.
SimplicityApks said:
As I have no idea how the camera is using the light sensor, the only logical advice I would give you is to browse the source code of the standart camera app.. Since Android is open source, I'm sure you can find something that helps you
The other way would be to write a very basic camera app that does not make use of the light sensor, and then see how much exposure is actually done without you knowing.
Click to expand...
Click to collapse
Thanks for the suggestion. I'll start by looking at CM's camera app.

Camera: can't focus near objects. No macro mode?!

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.

Google Camera2 API

Hello every one! Hope you're having a great day
I'm here because I need your help To make a long story short, until I can save enough to buy a new proper camera, I'm stuck with my P9 Lite, which cannot save pictures as RAW/DNG files. This feature is provided by Google's Camera2 API, which my phone doesn't have/support. Four questions:
1. Is it possible to install Camera2 API on my phone, through a custom ROM?
2. Is it possible to install a custom ROM without losing on the initial image quality provided by my phone's camera?
3. In theory, could this API be enabled by a future software update? Or does it only have to do with how the phone was originally conceived?
4. Even if I managed to get the API on my phone, would it be possible to make it fully supported, and would I be able to save RAW/DNG files even if my phone originally doesn't offer this option?
Thank you very much!
P.S: I've never thought of "flashing" a custom ROM on my phone, this issue is the only reason why I'm considering it. As you may have noticed by my way of explaining things, I'm a five year old when it comes to informatics, and I'd probably be the first in line to buy Smartphone Software For Dummies. As much as I admire how technical and specialised you can get about a science that goes way beyond my understanding abilities, if you can keep things slow and simple, as if you were talking to an actual five year old, I'd be very grateful
themadbuddha said:
Hello every one! Hope you're having a great day
I'm here because I need your help To make a long story short, until I can save enough to buy a new proper camera, I'm stuck with my P9 Lite, which cannot save pictures as RAW/DNG files. This feature is provided by Google's Camera2 API, which my phone doesn't have/support. Four questions:
1. Is it possible to install Camera2 API on my phone, through a custom ROM?
2. Is it possible to install a custom ROM without losing on the initial image quality provided by my phone's camera?
3. In theory, could this API be enabled by a future software update? Or does it only have to do with how the phone was originally conceived?
4. Even if I managed to get the API on my phone, would it be possible to make it fully supported, and would I be able to save RAW/DNG files even if my phone originally doesn't offer this option?
Thank you very much!
P.S: I've never thought of "flashing" a custom ROM on my phone, this issue is the only reason why I'm considering it. As you may have noticed by my way of explaining things, I'm a five year old when it comes to informatics, and I'd probably be the first in line to buy Smartphone Software For Dummies. As much as I admire how technical and specialised you can get about a science that goes way beyond my understanding abilities, if you can keep things slow and simple, as if you were talking to an actual five year old, I'd be very grateful
Click to expand...
Click to collapse
Can't you just install https://play.google.com/store/apps/details?id=net.sourceforge.opencamera on stock ROM? I think the camera2 api should be available.
Thank you for replying! The application supports Camera2 API, but if the API is not available on my phone in the first place, I don't think the application will work...According to my researches, the API is like, let's say, a camera: if your phone doesn't have a camera, you could install as many camera apps as you want, your phone still won't take any pictures...What I need is a way to add a camera to my phone - in our case, the API - so that I can start taking pictures - in our case, saving RAW/DNG files. Also, I might be wrong.
themadbuddha said:
Thank you for replying! The application supports Camera2 API, but if the API is not available on my phone in the first place, I don't think the application will work...According to my researches, the API is like, let's say, a camera: if your phone doesn't have a camera, you could install as many camera apps as you want, your phone still won't take any pictures...What I need is a way to add a camera to my phone - in our case, the API - so that I can start taking pictures - in our case, saving RAW/DNG files. Also, I might be wrong.
Click to expand...
Click to collapse
So the app doesn't work? I can't test it cause I am not on stock.
Just tried open cam on stock rom and I can capture RAW dng files, so it seems like camera2 is supported try it out!
UPDATE: Enable "Use alternative flash method" in photo settings if it won't take pictures when camera2 is enabled.
Open camera is pretty buggy on this phone when shooting RAW. Try "Footej camera", seems to work better
yaa but for footej need to pay to have fully featured. I payed for this but for m there is no diference to open camera.
I didn't say that Footej is better than open camera. Just that open camera often bugs for me when using camera2 - eg nothing happens when pressing camera button.
Sry for reviving the thread, is there any way to increase max shutter speed in camera2 api? I'm really interested in shooting some raw stuff but apps like Opencamera or Adobe Lightroom won't allow me to set over 1 second shutter speed (apart from the built-in camera app that allows up to 8 secs, but without raw support...) so it's a pain in the butt if I want to take raw pictures at night.
Using the stock Marshmallow Emui
The Lightroom app has a built in camera which can shoot RAW, I tried it and it works flawlessly.
Camera API2 *IS* present on p9 lite and *DOES* work.
zgomot said:
The Lightroom app has a built in camera which can shoot RAW, I tried it and it works flawlessly.
Camera API2 *IS* present on p9 lite and *DOES* work.
Click to expand...
Click to collapse
Yup it does, but shutter speed cannot be set over 1 second (see the screenshot), that means night photos end up being very noisy since I need to drastically increase iso. The default camera app allows much longer shutter time, that's why I'm wondering what's wrong
If it was possible to set it to like 10 secs in the Lightroom app, the camera would be damn great
Krastinov said:
Yup it does, but shutter speed cannot be set over 1 second (see the screenshot), that means night photos end up being very noisy since I need to drastically increase iso. The default camera app allows much longer shutter time, that's why I'm wondering what's wrong
If it was possible to set it to like 10 secs in the Lightroom app, the camera would be damn great
Click to expand...
Click to collapse
Have you tried Camera FV5?
zgomot said:
Have you tried Camera FV5?
Click to expand...
Click to collapse
Yea, but it says that this device doesn't support raw :|
Krastinov said:
Yea, but it says that this device doesn't support raw :|
Click to expand...
Click to collapse
Is it the trial version?
zgomot said:
Is it the trial version?
Click to expand...
Click to collapse
Full. Does it work for you?
Also I heard that official Nougat brings raw support to the built-in camera, can anyone verify that? I might wanna update in that case
Krastinov said:
Full. Does it work for you?
Also I heard that official Nougat brings raw support to the built-in camera, can anyone verify that? I might wanna update in that case
Click to expand...
Click to collapse
I Know This Is Quite Old But In Case Someone Is Still Wondering;
I'm Using Stock Nougat Firmware On My P9 Lite And It Does Support Raw Format, But You Have To Root The Phone And Enable Raw/DNG Format In Some System Files

On Android 10 with lineage 17.1, Camera Focus Problem

Camera on my 6t focuses initially, ( when screen touched ) but after "fire" button is pressed, goes out of focus an instant before capturing image. Image is indeed out of focus.
This happens on all of the camera apps I've tried, but does not happen when capturing images within Google Voice, which I use for messaging.
I've looked for info on this problem online, and although I've found a number of other problems mentioned, I've seen nothing on this, specifically.
Screen recording and video below illustrates the problem. Any insights into this issue greatly appreciated!
https://youtu.be/koN_xp20R50
NoBodyUKnow said:
Camera on my 6t focuses initially, ( when screen touched ) but after "fire" button is pressed, goes out of focus an instant before capturing image. Image is indeed out of focus.
This happens on all of the camera apps I've tried, but does not happen when capturing images within Google Voice, which I use for messaging.
I've looked for info on this problem online, and although I've found a number of other problems mentioned, I've seen nothing on this, specifically.
Screen recording and video below illustrates the problem. Any insights into this issue greatly appreciated!
https://youtu.be/koN_xp20R50
Click to expand...
Click to collapse
Finally someone with the sane problem as I! Did you figure out what's wrong. I've tried installing Gcam and OOS camera apks but they fail to open.
Looking forward to your reply.
Open Camera is the only app which reliably focuses for me.
A Solution, Perhaps?
Lifewithoutdeath said:
Finally someone with the sane problem as I! Did you figure out what's wrong. I've tried installing Gcam and OOS camera apks but they fail to open.
Looking forward to your reply.
Click to expand...
Click to collapse
Sorry for the delay. I wasn't monitoring this thread.
I loaded Open Camera, which seems to provide a solution. In the main camera screen, there is a camera icon with a "+". This allows you to select a specific Camera, though I'm not sure exactly what is being "selected". Cameras 2 and 3 seem to work, while Camera 1 has this focus issue.
In addition, in the camera settings, there is an option to select "Camera API". Camera 2 API allows manual focus, something I was looking for. Let me know if this helps...
NBUK
NoBodyUKnow said:
Sorry for the delay. I wasn't monitoring this thread.
I loaded Open Camera, which seems to provide a solution. In the main camera screen, there is a camera icon with a "+". This allows you to select a specific Camera, though I'm not sure exactly what is being "selected". Cameras 2 and 3 seem to work, while Camera 1 has this focus issue.
In addition, in the camera settings, there is an option to select "Camera API". Camera 2 API allows manual focus, something I was looking for. Let me know if this helps...
NBUK
Click to expand...
Click to collapse
Amazing, that made my day. OpenCamera lets me use either the bottom or the top camera but also the combination of both to produce a blur effect in a similar way to the stock ROM. I didn't think that was possible without stock.
Up until now I would just reboot my phone and the out of focus issue was gone for a little while. This is much better though.
It makes me wonder : I also sometimes have an issue with the flash where the timing is just ever so slightly wrong, i.e the photo is taken just a split second after the light flash, which effectively gives the same result as if the flash was turned off. Again, a reboot fixes it temporarily. Does any of you also have this issue ?

Categories

Resources