[Q] Camera Development... - G2 and Desire Z General

I am very new to the concept of any programming, especially that on phones. But can one of the awesome developers describe to me what is inside the programming of the camera... specifically, is it possible to:
1) Reassign button functions to make it so that either the call send/end or volume buttons initiate image capture
and
2) Speed up the "shutter" speed to that pics appear less blurry in low light?
Be kind?

drtchocky said:
I am very new to the concept of any programming, especially that on phones. But can one of the awesome developers describe to me what is inside the programming of the camera... specifically, is it possible to:
1) Reassign button functions to make it so that either the call send/end or volume buttons initiate image capture
and
2) Speed up the "shutter" speed to that pics appear less blurry in low light?
Be kind?
Click to expand...
Click to collapse
#1 Is indeed a software problem, but to change that behavior might require access to source code that the devs do not have - I'm not sure.
#2 Is not a software problem, it is a fundamental (physics) limitation of cameras with small diameter objectives - they simply do not gather enough light fast enough to create full-scale intensity pixel values... unless they make very long exposures. That makes rapid auto-focus an impossibility, and also causes blur due to either camera motion or scene motion (during the exposure) to occur. The only solutions available are: (a) use more light, or (b) get a real camera.
bftb0

drtchocky said:
I am very new to the concept of any programming, especially that on phones. But can one of the awesome developers describe to me what is inside the programming of the camera... specifically, is it possible to:
1) Reassign button functions to make it so that either the call send/end or volume buttons initiate image capture
and
2) Speed up the "shutter" speed to that pics appear less blurry in low light?
Be kind?
Click to expand...
Click to collapse
For #1: http://forum.xda-developers.com/showpost.php?p=6706635&postcount=1 /* Your keypad layout file would be called desirec-keypad.kl(i think) */
As for #2? I think the samsung camsensor driver would need to be updated, but even that speed increase would be marginal.

Decad3nce said:
For #1: http://forum.xda-developers.com/showpost.php?p=6706635&postcount=1 /* Your keypad layout file would be called desirec-keypad.kl(i think) */
As for #2? I think the samsung camsensor driver would need to be updated, but even that speed increase would be marginal.
Click to expand...
Click to collapse
I read that whole post, thanks.... but how do I know which key # is the vol up/down?

Decad3nce said:
For #1: http://forum.xda-developers.com/showpost.php?p=6706635&postcount=1 /* Your keypad layout file would be called desirec-keypad.kl(i think) */
As for #2? I think the samsung camsensor driver would need to be updated, but even that speed increase would be marginal.
Click to expand...
Click to collapse
I would think that marginal is better than nothing, no?

you guys are way over thinking this situation. Look at the demo code from google. I can't post the link because I'm a "new user" but its under the "Common Tasks and How to Do Them in Android" page. You would use button override commands to get the camera to take a photo with the send/end keys for example. But yea, you won't see a phenomenal difference in the shutter speed/ blurriness of the photos if u make your own code/modify it.

Related

rapid shutter app

is there an app which allows the camera shutter to take rapid shots? this is almost related to the "camera timer" topic posted recently. that app has a function to dictate the number of loops within a certain number of seconds delay.
in this case would it be possible to have an app that allows the camera to take successive shots? say; when you press the camera button...unless you release it the camera would continuously take pictures.
just curious...food for thought.
cheers
very few have access to the camara api
so there is yet to come many applications which work with it
You don't need the camera api for this. I'm a bit busy at the moment, but I can convert my timer app to do this. I might get it done tomorrow if I have 5 mins spare.
Copy this file into your \Windows\Start Menu\(where you like) folder. Then goto Settings->Personal->BUttons and select "Rapid Shot" for Button 3 (Camera).
Now when you hold down the Camera button it will keep taking pictures until you release it (upto 100)
It's a bit of a hack for now but if I get a chance I'll tidy it up and put it into the camera timer app.
Cheers
Jamie
hey it works! cool!
regarding "It's a bit of a hack for now but if I get a chance I'll tidy it up and put it into the camera timer app."; you may need to change the name of your program to accomodate the enhancements for the camera
thanks! cheers then
Wow. This is pretty cool.
I have a couple of comments. I don't want this sound like I am hassling you for updates to the proggy, its more of a "I have noticed the following behaviour" and if you find you wanna get around to looking at it good for you.
1 - The program relies on you being in still camera mode for it to work. If you are in video or that crappy other template mode, it just records or takes the two shots.
2 - Any chance of speeding it up?
3 - If after you have released the camera button and you are shown the preview screen if you press the camera icon the program starts to take happy snaps.
The way I think it would be cool and again, please take this as postive feedback, is if you can press the camera button to launch the camera app and then if you subsequently press and hold the camera button again, the burt mode is activates for the still shots, regardless of what capture mode you were in previously. I.e. pressing and holding will change from video to camera mode and start the burft captures.
Again, great work!! I really like the option to have burst mode. I could never press buttons that fast :lol:
wowww it is really amazing app!
thanks!
little note: when I start it manually and clik on "Go" only, it never stops taking pictures. Bug??

Removing G1 Shutter waiting time and various settings

Well, I noticed many people were unhappy with the shutter timing.
This is very annoying, but hey, I think it is neccesary.
I apologize if a thread like this has already been posted.
Anywhom, there is a simple application in the market that may help you with this issue.
How-To:
1.) Visit the Market, and search for the application (SnapPhoto).
-SnapPhoto will give you the option to change many interface settings with the Android Camera. ( Brightness, Effects, Shutter, etc... )
2.) After you find the application, you need to download it, obviously.
After the download, Run it, and Click your menu button, and choose (Settings)
3.) Ok, now, you should see a list of settings. I wont explain them too you, as they are blantly explained in the description.
-Such as brightness(I assume everyone will catch on to these automatically)
4.) Ok, after you have changed any settings you want, you can change your shutter by returning the the Main application (SnapPhoto), and press the Camera Side Button ( this is the camera button on the right side of your phone.
-You should see a message that says "Disabling Stability detect". This removes the shutter wait time. It can also effect your image quality if you are moving and such.(Which is the main purpose of have auto-focus and such components.)
PS: To re-enable Your auto-focus/shutter, simply go to the app, and press the camera button, and it should say "Detecting Stability", exit app, and go to the actual camera .
!Enjoy
I dunno, if I wanted to turn off the auto-focus, I'd just take photos with the track-ball and not the camera button.
The track-ball takes photos in about 1second (compared to the 3-5second autofocus). I believe it is the default no-focus quicksnap button. May not be as widely known as I thought.
KyleK29 said:
I dunno, if I wanted to turn off the auto-focus, I'd just take photos with the track-ball and not the camera button.
The track-ball takes photos in about 1second (compared to the 3-5second autofocus). I believe it is the default no-focus quicksnap button. May not be as widely known as I thought.
Click to expand...
Click to collapse
Are you sure? i have done a great deal of phtographing on this device and never noticed that. i just tried it now and i was able to take a pic just as fast with the camera button as the trackball. Also, when i press the trackball, it does auto-focus, so im not sure why you would say it does not. If you swing the camera and do not let the lense itself focus on the new item, then yes, there is no delay because the camera thinks that you are still looking at the same point of focus. That is the only time mine does not focus. If you turn and wait even 1 sec, then take a pic, it will auto-focus. I promise!
(ok i was able to finally get your result, but only after i focused it 1st with the camera button, then i tapped the trackball and the shot was instant)
The difference that i have seen between the camera button and the trackball is that if you half-press the camera button, it will focus, but not take the picture. The trackball is a static switch and thus cannot do that. (also the camera button sucks. i bet most of the camera problem come from the need to press that button so far into the phone causing the device to move and cause blur and needs to refocus. also, i would not be suprised if some are unaware that this 1/2 press exists and think that the camera is just not working correctly.)
For really clean pics, i suggest finding you shot, then 1/2 press the camera button. Let it focus on the subject. Then find the most stable way to hold the phone and use the trackball to take the picture. (less pressure needed = less shake and better pics) Works great for me and as i mentioned above, you can get instant pics with this method, as long as the camera does not think that it has moved.

X1 Camera

I had a diamond before I got my Xperia, besides the little problems like the bluetooth turning off (fixed with good ol' mortscript) and stuff its awesome.All though the camera is realy bad, it gives a realy nice picture but the exposure time is way too long even with sport mode on. you've got to hold the thing perfectly straight for a second or two other wise its blur-city.
Is this just my X1 or are others having the same problem?
Can't say I use the camera much just would be nice to find some sort of reg key or something to make it a bit more functional.
Yes, the camera is virtually unusable as-is, because you have to keep it steady for ages.
And the problem is that if you give the phone to someone else to help you take a group picture, the long shutter time (which no one normally expects) means I have to go and explain to people to keep pressing for 2-3 seconds and not move at all.
It is stupid.
Yup, its a shame SE realy need to send out a few fixes for this phone, after all it is their flagship product at the moment, the O2 stores near me cant even get hold of them.
Bluetooth and Camera definatly need fixing
Unfortunately, since SE has decided not to use HTC to build their phones again, the Xperia X1's firmware is unlikely to be fixed ever again... sigh.
Eh, it doesn't matter if SE cooperates with HTC or not, they have their own WM department and a new firmware is already out according to this (czech) site:
Code:
http://semania.mobilmania.cz/content/view/3163/2/
One quick solution is going for infinity focus instead of auto-focus. Seems like the majority of the time is taken up by the focusing function.
the tw rom is newer in the rom thread.
as to the focus i tend to press it and leave it.
I'm trying to say that if you have focus set to auto (in the camera settings) it takes much longer to take a photo than when you have it set to infinity.
fards said:
the tw rom is newer in the rom thread.
as to the focus i tend to press it and leave it.
Click to expand...
Click to collapse
Not so easy to do this if you are at a party and want to take a group photo...
Maybe infinity focus is the answer...
btw do we know what the latest firmware is?
open the phone and press the enter button once, or press the ok/center dpad once to start the process of the picture being taken.
also use multi shot this allows you to take pictures after another and then later delete ones that you do not want.
the US x1 has a newer camera cab but it doesnt help the time it takes to take a pic
i use sport mode with focus set to infinity as default settings. this gives great results and no need to hold still that much as some were suggesing.
overall the camera is great and its clearly better than the T*Omnia 5MP camera.
lets hope the new camera application from the Asian rom improve things. is it avalable CABed someware?
Sport and infinate
Although the focus isnt as good as Macro or Auto it is an improvment for the capture speed.
Setting to Sport and Infinate works a hell of a lot better than what I was using. (Sport and Auto).
Cheers guys.
shadowmike said:
open the phone and press the enter button once, or press the ok/center dpad once to start the process of the picture being taken.
also use multi shot this allows you to take pictures after another and then later delete ones that you do not want.
Click to expand...
Click to collapse
I thought this for ages, its not true it really just means it has a slower shutter speed (multi-frame shot) which is why most of your pictures that involve movement will come out blurry.
Also, here is a hint for taking pictures faster: The button has 2 pressure points, hold the button down to the first point to focus, do NOT let go--then push it down all the way to take the picture it should do it instantly
For me Sports + Infinite = instant picture.
shadowmike said:
open the phone and press the enter button once, or press the ok/center dpad once to start the process of the picture being taken.
also use multi shot this allows you to take pictures after another and then later delete ones that you do not want.
the US x1 has a newer camera cab but it doesnt help the time it takes to take a pic
Click to expand...
Click to collapse
thanks a lot, I didn't know the entre button and do the work
Poetique said:
For me Sports + Infinite = instant picture.
Click to expand...
Click to collapse
infinite=no autofocus
When I change the standardfocus setting in the camera settings it won't save it. When I start the camera later it doesnt give me the right settings i choosed in camer settings. What am I doing wrong here? For example I wan't sport mode with macro, but I get sport mode with autofocus everytime I start the camera..
Fille84 said:
When I change the standardfocus setting in the camera settings it won't save it. When I start the camera later it doesnt give me the right settings i choosed in camer settings. What am I doing wrong here? For example I wan't sport mode with macro, but I get sport mode with autofocus everytime I start the camera..
Click to expand...
Click to collapse
You have to press the down arrow on the bottom right side of the screen when in settings this will bring a more detailed settings page and you can set the default settings in there and your camera will use them everytime
Good luck
I'm a Touch Pro user but we don't have the ability to do infinite zoom. It's probably a registry value we're missing. Would anyone mind sharing any registry strings that seem to discuss focus or zooming? It would likely be in HKLM/Software/HTC/Camera
Thanks
Fille84 said:
When I change the standardfocus setting in the camera settings it won't save it. When I start the camera later it doesnt give me the right settings i choosed in camer settings. What am I doing wrong here? For example I wan't sport mode with macro, but I get sport mode with autofocus everytime I start the camera..
Click to expand...
Click to collapse
Same problem here. The default focus setting is infinite, but the camera is on auto everytime.

Camera hardkey

Is there someway to set hardkey for taking picture for example volume key up? It would be lot easier to use camera.
good idea!!
I'm curious about this too. Although I use custom ROMs (freyberry), I try to reassign buttons via the settings menu, but NO buttons appear in the list, so can't be reassigned. Odd.
that would be great, hope someone to find a way!
I'd like this too, but don't expect a positive response. If we wanted to assign one hard button to a different one then I could believe that happening. But it's not a button that you want to emulate - it's touch on the screen, and that's a completely different thing. I think it would mean hacking the actual camera app to get what you're asking.
Fingers crossed that I'm wrong
somebody managed to do it on the iphone, so hopefully they can do it on this!
variskarhu said:
Is there someway to set hardkey for taking picture for example volume key up? It would be lot easier to use camera.
Click to expand...
Click to collapse
It's a good idea - but I don't really miss a hardware camera button too much. Would love it if the volume keys could be remapped in the camera application to act as zoom in/out instead. The current zoom in/out process is a real pain.
bennyhillslovechild said:
The current zoom in/out process is a real pain.
Click to expand...
Click to collapse
Isn't it digital zoom?
Why bother?
Taking photo of myself requires so much effort without the hard key!!
Hope someone can come out with something for this.
Anyone tried AEBPlus?
I am looking for the same .. its tough to take pics when you have a greasy hand
myth1001 said:
Taking photo of myself requires so much effort without the hard key!!
Hope someone can come out with something for this.
Click to expand...
Click to collapse
Not such a crazy request - just out on holiday at the moment and as usual I often snap quick shots of my wife and I in front of the major sites - the best way around this is to put the phone in self timer mode. 10 seconds is best i found as it gives enough time allow the camera to autofocus when moving it into position.
Daniel

Possible Improvements to Evo via Software

I'd like this thread to be a repository for ideas on software improvements to our Evos. Let's try to keep it specific, on topic, and limited to things that are possible with software changes via kernels, ROMS, or model specific apps. Please don't suggest vague things like "Make XXX better". I will update this post as necessary as items are added or crossed off either due to them being fulfilled or deemed impossible.
Interface
-Make activation area for four bottom soft keys smaller to lessen accidental touches
-Screen wakeup with volume button in addition to power button
-Add reboot to power button options
=> Another option has been discovered http://androidforums.com/tips-trick...e-way-reboot-evo-using-hard-buttons-only.html
-Add power off to long press on power button if screen is awake
-Option to enable 270/360 degree rotation of UI via accelerometer
=> 270 is supposedly in the works for CM6
-Output entire interface via HDMI
=> Bounty thread, no work yet http://forum.xda-developers.com/showthread.php?t=721376
-Soft directional keyboard, configurable, always on top for use in Flash games and other applications
=> Discussion http://forum.xda-developers.com/showthread.php?p=7178242
Audio
-Enable higher bitrate for recording via voice recorder and video recorder
-Enable other (better) codecs for recording via voice recorder and video recorder
-Disable/Optional AGC (automatic gain control) on microphone input
-Improve Bluetooth audio stack for "higher quality" => Needs more details
-Add FLAC codec support
-Add ALAC codec support
-Add equalizer
Camera
-Enable higher bitrate for video recording
=> WIP http://forum.xda-developers.com/showthread.php?t=711808
-Enable higher/constant frame rates for video recording
=> WIP http://forum.xda-developers.com/showthread.php?t=711808
-Enable other (better) codecs for video recording
=> WIP http://forum.xda-developers.com/showthread.php?t=711808
-Add macro mode to lower the minimum focus distance
-Add button to camera app main screen to switch between still/video
=> Supposedly in the works for CM6
-Add button to camera app main screen to switch between front/rear cameras
=> Supposedly in the works for CM6
-Image stabilization by cropping and ignoring outer changing pixels
-Allow volume button to act as shutter button
Screen
-Remove or allow adjustable FPS cap
=> WIP Novatec http://forum.xda-developers.com/showthread.php?t=711964
=> Epson http://forum.xda-developers.com/showthread.php?t=719763
-Settings to adjust color profile across entire system
-Lower minimum brightness
-Adjustable auto brightness algorithm
Misc
-Setting to turn HDMI port and associated processes on and off
-Better control of charging and Wimax LEDs for notifications via blink rate, "breathing", or color mix
=> WIP http://forum.xda-developers.com/showthread.php?t=697430 => http://forum.xda-developers.com/showthread.php?t=746732
-Brightness control of bottom soft key backlight to reduce light bleed issues
-Enable FM transmitter
=> http://forum.xda-developers.com/showthread.php?t=693253
-Add user changeable action to long press of menu and back buttons while in home screen
-Modify Bluetooth stack to allow game controllers like Wii to connect
=> Bounty thread http://forum.xda-developers.com/showthread.php?t=701554 Supposedly in the works for CM6
-Modify Bluetooth stack to allow wireless keyboards
=> Bounty thread http://forum.xda-developers.com/showthread.php?t=701554 Supposedly in the works for CM6
I think that's a decent start. Hopefully we get some interest here and generate enough ideas to keep the devs (and maybe even HTC) busy.
Minjin said:
Interface
-Screen wakeup with volume button in addition to power button
Click to expand...
Click to collapse
you can already do that with the "no lock" widget. the only trouble is it disables the lock screen. that's not much of a problem for me though. and you can reaenable it with a nice toggle widget on the screen for times you want the screen to lock. (when in a pocket)
avalst said:
you can already do that with the "no lock" widget. the only trouble is it disables the lock screen. that's not much of a problem for me though. and you can reaenable it with a nice toggle widget on the screen for times you want the screen to lock. (when in a pocket)
Click to expand...
Click to collapse
Then that isn't exactly a "fix".
Just an FYI. I found a great app for rooted phones that provides shortcuts to allow you to reboot your phone into:
1) Standard Boot
2) Recovery
3) Bootloader.
I just leave it far out of the way so that I don't hit it accidentally.
It's called "Quick Boot" and available in the Market.
Glad to have this all in 1 place.
Make sure to add links to the works in progress.
We should add a fix for camera grain & general quality.
For the first time in the history of this forum I'm gonna recommended that this be put in dev.
Swyped from my Evo 4G
Hey, OP, Edit this in under the Audio section....this is by far my biggest disappointment with this unity, as my Samsung Moment took care of this beautifully...
Disable/Optional AGC (automatic gain control) on microphone input.
My Moment had an option to disable it for recording. I had recorded my band's (extremely loud) practices with my Moment and the recordings were absolutely fantastic for a single piezo mic in an imperfect room under extreme SPL torture. I've been recording for nearly 17 years now, with real equipment...but it's so handy to have a rather capable CD quality recorder in your pocket.
download "hertz", or another audio recorder. We can do CD quality (44.1khz 16-bit mono) as it is... but with the AGC on it pumps and breaths and sounds completely terrible...even for voice recordings.
Wow, great list! Video and audio recording quality at the top of the list for me. FM Transmitter huh? Didn't even know it had one!
I'd like to see built-in settings for the camera that are easily accessible. Preset configurations for brightness, white balance, iso, etc for certain shots. (ie. outdoor, night, people) Even if we couldn't get preset settings, a way to save settings and easily load them would be nice.
I like the idea of making the volume button the shutter. Would it be possible to make the power button function as the shutter when in camera/camcorder mode, and have the volume rocker zoom in/out?
well it'd defiantly be nice for any of these issues to be addressed. Thanks for putting up a wish list OP, helps keep everything organized.
Ability to use a BT keyboard with Android Terminal or general text entry.
How about a fixed/updated/replaced BT Audio stack for higher quality?
Forced FLAC/ALAC support (Yes, this is supposed to be coming in Gingerbread, but having it now in Eclair/Froyo would be good!)
I like all the others but I disagree with the 360 rotation, I stopped using fresh because the 270 rotation.
mrono said:
I like all the others but I disagree with the 360 rotation, I stopped using fresh because the 270 rotation.
Click to expand...
Click to collapse
Yep, keep that the way it is! Or optional, because 270 already sucks 360 is even worse.
How are we supposed to tap away on our screens while lying sideways in bed?
This could be added.
http://forum.xda-developers.com/showthread.php?p=7178242
Also this could be altered.
Better control of charging (and other) LEDs for notifications via blink rate, "breathing", or both at same time
Click to expand...
Click to collapse
To include color change but more importantly dimming and brightening of the leds, specifically to help with light bleed issues.
If my bottom keys were just a tad less bright i wouldn't want to replace the phone so badly.
So far looks great!
If all these were resolved I would love my Evo so much more.
drmacinyasha said:
How about a fixed/updated/replaced BT Audio stack for higher quality?
Click to expand...
Click to collapse
This is a little vague. Do you have or know specifics? Improve bitrate? Improve response time? Lower noise floor? I'll leave it the way it is for now but lets try to firm it up a bit.
Updates have been made.
Cut & Paste
I'd like a reliable consistent method to cut & paste selected text.
I've found the the "long tap" method of bringing up a cut or paste tool does not work in all cases. I want to be able to cut text from emails, web sites, etc - no matter which app I use to view this text. Similarly, I want to be able to paste text into emails, the URL window in the browser, misc text fields, etc. The "long tap" method works only in some cases.
I want to cut selected text / words - not entire paragraphs. Sometimes I get a tool that helps do this (Sense?), other times not.
Also, this may sound stupid but holding down one of the soft keyboard's arrow keys should keep moving the cursor.
Shouldn't need to click 100 times to get from one side of a sentence to another LOL.
This should've been included already..
After holding for a second or so it starts going automatically until you release.
So what things do we need to update now that 2.2 is here and we've had a chance to play with it for a while?
What should we cross off and what should we add?
I would love to see an EQ for the sense music player.
I am completely stock on the .6 update. So far, I noticed that:
1) In the camera app> switching to front facing camera> undoing mirror mode...
It works great in landscape mode, but turn it vertical and it shows you upside down!
2) Regarding music, I only use Pandora so far. The experience was good on 2.1 and now sucks on the .3 and .6 updates:
2a) Even in high quality mode and plugged right into my car's aux input, the sound is pretty bad. The highs are too high, and the low frequencies are muffled and distorted sounding - this is without even taking the sound system to the limit. I am not just talking about fine tuning this sound - it has a long way to go. This sound is way off even for "normal people" listening. Also, yes it should have an EQ, or at least a bunch of preset EQ's for different music styles.
2b) Pandora used to just pause during a phone car or while using nav. Then, it would resume. Since the .3 update, and now even on the .6 update, it pauses Pandora and then I have to go back to Pandora and click play again.
3) Also regarding navigation, It is a pain in the ass that you have to hit the "GPS" switch widget and then open nav. Also, if you turn off the "GPS" switch widget but leave nav on, nav won't shut itself off. Then, you go back to nav to shut if off.. it makes you turn on GPS again, and then go back to nav to officially say "exit navigation". Then, you STILL have to go back to the GPS widget and turn it off!
4) Text messages are very useful for acquiring an address or email address. When getting one through text, I can not copy the info to move to nav or email. I have to go to forward, then copy (and I cant even copy just what I want - I have to copy all, including "FWD:") Then I have to cancel the forward, and then paste it where I need it. We should be able to copy whatever we want, including in texts.
1. stop compressing mms pics so much
2. Where the hell is iTunes streaming?? I thought google was going to release it with froyo.. as well as a music, video and online market. I'm not seeing more than a demo market that shows some top apps
3. Add a native eq... at least give some presets, though a graphic eq would be awesome
4. stop being so lazy htc and work on these things.

Categories

Resources