Camera: Touch Focus for Defy - Defy General

I learned how to use Touch Focus using the ROM MS2Ginger 1.0:
open the camera app,
press and hold the white square in the middle, drag it to wherever you want and drop.
Press and hold the capture icon, the square becomes green in the place you dropped it.
When you release the capture icon the picture is taken.
Remember to clean possible dirtiness or fingerprints from the lens.
I would like to know if there is a way to use this feature (or bring it) in other ROMs, and if it works in both red/green lens.
If you try please share your result.
Origin: http://forum.xda-developers.com/showthread.php?p=17704852&page=74

mrolp said:
I would like to know if there is a way to use this feature (or bring it) in other ROMs, and if it works in both red/green lens.
If you try please share your result.
[/url]
Click to expand...
Click to collapse
IMO, the best & simple way for using touch to focus is Camera360.. This is the best camera application. Offers various cool effects & also touch to focus option.
Its pretty cool..

MazaMoto said:
IMO, the best & simple way for using touch to focus is Camera360.. This is the best camera application. Offers various cool effects & also touch to focus option.
Its pretty cool..
Click to expand...
Click to collapse
It works, and has many configurations, thanks.
Does touch to focus works in your stock blurcamera as I described?

Many camera apps support touch to focus, like LGcamera and Camera360.
But I hope you know that the defy itself doesn't support touch to focus, so when using the app it may appear that it is working but it is still focussing on on the center:
http://forum.xda-developers.com/showpost.php?p=17181792&postcount=10899
http://forum.xda-developers.com/showthread.php?p=17181792#post17181792
The next page the dev says that moto's driver doesn't support it and that there is nothing that can be done about that.

tejus.k.v said:
Many camera apps support touch to focus, like LGcamera and Camera360.
But I hope you know that the defy itself doesn't support touch to focus, so when using the app it may appear that it is working but it is still focussing on on the center:
http://forum.xda-developers.com/showpost.php?p=17181792&postcount=10899
http://forum.xda-developers.com/showthread.php?p=17181792#post17181792
The next page the dev says that moto's driver doesn't support it and that there is nothing that can be done about that.
Click to expand...
Click to collapse
Only now I found the setting that I had to change in lgCamera, Touch Focus is working there too, thanks.
I've attached some pictures made with my Defy using focus in different objects, can you confirm if you can do the same?
Maybe it's ROM/lens dependent.
EDIT:
I've attached both reduced size and full size.

This manual touch focus is working for Defy. I'd tested it many times with difference objects far and near and they seemed to work very nice. I use the stock camera as it integrated with my blur galery very good and easily share or upload it to my social network apps.. This Defy even worked with the face detection and sometimes I even use it to take group of peoples without any issues.

can any of you actually tell me how to get touch focus working on any of the camera apps?stock,lg or 360 i can't seem to find the settings to change it to touch focus..

mrolp said:
Only now I found the setting that I had to change in lgCamera, Touch Focus is working there too, thanks.
I've attached some pictures made with my Defy using focus in different objects, can you confirm if you can do the same?
Maybe it's ROM/lens dependent.
EDIT:
I've attached both reduced size and full size.
Click to expand...
Click to collapse
Try taking a photo like the one attached, with your fingers kept at the center and very close to the camera, while clicking on the farther object to the side (here my laptop). The camera will still focus on the nearer object, the fingers, at the center of the screen rather than at the object you clicked on . So touch to focus isn't working the way it is supposed to, it only just focusses at the object at the center of the screen whenever you touch anywhere on the screen.
I am on CM7 RC1.5, SOC Module. Touch to Focus probably won't work the way it is supposed to unless someone can fix the drivers moto has supplied for the phone. If it is working properly on your ROM maybe it can be ported

I don't remember if Eclair or Froyo has this touch focus function under stock rom. But I'm positively sure all gingerbread stock rom has it, however, it still dependance on Red lenses and Green lenses capability I supposed. Custom rom like CM7 or Miui may have altered alot which makes this function disappeared only the rom developer knows.

@scottie1973
for camera360:
go to definitions (wheel in top right), "Common Set",
make sure "Shoot by screen touch" is checked,
and that the "Shoot Mode" is defined as "Auto Focus".
for lgcamera:
you need to open definitions, and in the end of the list are a lot of checkbox to be selected.
In mine the words are not in english, but it's related to long click to Autofocus and capture.
For the stock is as described in the first post.
If after autofocus, the square is turning blue instead of green, means that the camera was not able to focus correctly.
@tejus.k.v
It works that way, even though I notice that there is a minimal area of a object for you to be able to focus at it. I don't know if this thing is perfect or not, but it works in the ROM I'm using (developed by walter79).
@farsight73
Others will join us

mrolp said:
@scottie1973
@tejus.k.v
It works that way, even though I notice that there is a minimal area of a object for you to be able to focus at it. I don't know if this thing is perfect or not, but it works in the ROM I'm using (developed by walter79).
Click to expand...
Click to collapse
Wow nice
Lemme post a link to this thread in the CM7 thread and see

thanks for the info mrolp your a gent..

Related

{REQ] a very simple and FAST camera

the problem with the default x1 camera application:
-very big application with very slow startup time
-very slow interface
-require too many clicks to change the mode or the settings
now im not asking to make a full fledged camera application as that would take too much time. i am asking for a very simple and lightwaight camera application that can simply start right away into sports mode with infinite focus and flash as this seems like the quickest and most practical
shooting mode on our X1. or simply start to the last used mode in the SE camera app
i just want to have a very quick way to to take good pics.
on my old 2003 magican it takes me only 2-3 seconds to quickly start the application and take the first pic. on the xperia it takes no less the a ridicoulus 7 seconds because of the camera application.
i find the rhodium's camera to be quick and good quality.. but when there is light sometime could get overexposed lock until u take another pic.. but definitely heaps faster than SE camera.. drawback also is u cant use the camera button to use rhodium..
maybe someone can do a quick one by porting one of the old apps like the ones that come with the htc wizard/magican. these cameras apps are very small and they startup in a second
Actually I think if one want a 'simple' camera, get a 'simple phone'!
For me, I would like a camera that WORKS 100%! So whatever the features, as long as they work fast and correct, that is what I want!
michaelthemage said:
Actually I think if one want a 'simple' camera, get a 'simple phone'!
For me, I would like a camera that WORKS 100%! So whatever the features, as long as they work fast and correct, that is what I want!
Click to expand...
Click to collapse
you are TOTALLY missing the point. what i am proposing is in not to replace the camera but to have an additional one that can start and take a good pic in about 2 seconds instead of about 7 seconds right now
this would greatly increase the practicality and usefulness of the camera
Aha.... you want a 2nd(!) camera because of a 5 second difference....!
Well, as for me, I want a camera that works and records without pixelation, etc. as the current one does!
I'm with the GRIZZ. 5 seconds often makes all the difference, especially when you have bought a phone specifically so that you can have a decent camera on you at all times.
A lightweight camera app would be fantastic but I suspect it would take some pretty fancy programming to make work.
ring-bearer said:
A lightweight camera app would be fantastic but I suspect it would take some pretty fancy programming to make work.
Click to expand...
Click to collapse
im not sure about that our xperia runs the 'HD or rhodium cameras fine. also the very old imate kjam runs the relativly new touch viva camera on some of the new cooked roms.
how hard can it be to to simply port a very small and old camera application like the one that comes with the magican or wizard.
defenatly worth a try but unfortunatly im no good at programing or even hacking. anybody willing to give this a shot?
michaelthemage said:
Aha.... you want a 2nd(!) camera because of a 5 second difference....!
Well, as for me, I want a camera that works and records without pixelation, etc. as the current one does!
Click to expand...
Click to collapse
why are you expecting it to be pixely or blury. its using the same hardware at as the SE camera application the end of the day. if the app boots to the sport mode with infinite focus (the faststest and best mode SE camera does anyway)it should be able to take very good pics. infact you will be able to take better pics because you will now be able to take 3 pics in the same time that normally takes you 1 picture with the default camera
of course the ultimite solution is for sony to make a much faster camera but i wouldnt hold my breath for that. their newer camera application with gps and autoflash is even slower than the original application which was also slow
i say we make a proof of concept first before we judge the practicality of this.
I totally agree on the importance of speed on phone camera's. The main reason to have one on a phone is to take swift pictures on the fly when you don't have a digital camera at hand but want to capture the moment.
In my humble opinion, if you want super quality pictures, get a digital camera, thats what they're for. On a phone i prefer speed rather than quality. (not saying Xperia doesnt take decent pictures (; )
In new custom ROMs (as in mine, check sig) the cam takes only 2secs to start and focus is very fast! I don't know how the R3A Cam behaves if used as cab...but cooked in it is very fast!!
derliebewolf said:
In new custom ROMs (as in mine, check sig) the cam takes only 2secs to start and focus is very fast! I don't know how the R3A Cam behaves if used as cab...but cooked in it is very fast!!
Click to expand...
Click to collapse
2 seconds to get a picture taken is more than what i am asking for. and if the default focus is set to infinite it should take even less (or even no) time for focus
currnty its taking me about 7 seconds to be able to take a picture on Udk's rom
ill go and test your rom
thanks
THE GRIZZ said:
2 seconds to get a picture taken is more than what i am asking for. and if the default focus is set to infinite it should take even less (or even no) time for focus
currnty its taking me about 7 seconds to be able to take a picture on Udk's rom
ill go and test your rom
thanks
Click to expand...
Click to collapse
i copied and pasted the rs camera folder over the old one and put it on auto focus and auto flash and it seems a lot faster, maybe not 2 secs fast but faster than the old software
THE GRIZZ said:
2 seconds to get a picture taken is more than what i am asking for. and if the default focus is set to infinite it should take even less (or even no) time for focus
currnty its taking me about 7 seconds to be able to take a picture on Udk's rom
ill go and test your rom
thanks
Click to expand...
Click to collapse
Let us know what you find.
Otherwise, shouldn't there be a cab floating around from one of the simpler HTC camera apps? Why not just try one of those?
Someone could also experiment with Speedbooster 2 and assign the camera to top priority. I would but I don't have it.
ring-bearer said:
Someone could also experiment with Speedbooster 2 and assign the camera to top priority. I would but I don't have it.
Click to expand...
Click to collapse
Yes, I think that would work.
You only need to improve the speed of camera.exe or the name of the camera process, and it should go faster.
The good thing is that the trial version allows you to control one task, so this is exactly what you need.
Cab here.
How-to-do-it Video demo here.
radhoo said:
Yes, I think that would work.
You only need to improve the speed of camera.exe or the name of the camera process, and it should go faster.
The good thing is that the trial version allows you to control one task, so this is exactly what you need.
Cab here.
How-to-do-it Video demo here.
Click to expand...
Click to collapse
Doesn't work on my device... not sure why. It loaded the 1st time but then never again, even after reinstalls. Strange...
flash one of itjes roms...
they contain the htc topaz/rhodium camera...
it takes pictures instantly and is the same quality as the stock camera
i flashed so many roms and while the speed of the startup and taking the first picture is not too bad, its still much slower than what can be achived if it was a simpler & lighter application.
the fastest i managed to get was about 5 seconds on the rohdium camera
And how fast would that be if you increase the .exe process of the camera to maximum priority?
I'm using a diamond and I'm happy with the default camera speed.

[Q] Camera doesn't focus well

Ok, I'm having a hit or miss problem with the camera. I have fresh 3.1, btw.
I'll try to take a picture of something, for example, I have a rubix cube here. keeping the camera about 8" away from the cube, trying to get a picture of the word "Rubix". I tap the button to take a picture. the camera goes in and out of focus, it focuses the word "Rubix" perfectly, then goes out of focus and snaps the picture. I've tried tapping the screen to focus on the specific area, and it still does it. I've tried holding the button down until the picture takes, but it still goes in and out of focus, then snaps a blurry pic, or at least the area I want focused is blurry. Another issue with the flash... When the flash goes off, the camera will focus in and out on the object, and usually hold until the flashed area is focused and not washed out. But the camera just snaps the picture without focusing.
Like I said, both problems come and go. Any ideas?
I've searched and I still don't see any answers. Anyone?
The camera on the phone is pretty bad IMO. Typical results.
supdawg said:
The camera on the phone is pretty bad IMO. Typical results.
Click to expand...
Click to collapse
Yeah what he said. It's almost like some htc exec said on the day before launch, "you guys did put a camera on this thing right?" And some hung over strung out engineer was like "um.."
Did you try changing the settings to Macro for close up shots?
nbajwill55 said:
Did you try changing the settings to Macro for close up shots?
Click to expand...
Click to collapse
Im pretty sure there isnt a macro setting.
jasongthang said:
Ok, I'm having a hit or miss problem with the camera. I have fresh 3.1, btw.
I'll try to take a picture of something, for example, I have a rubix cube here. keeping the camera about 8" away from the cube, trying to get a picture of the word "Rubix". I tap the button to take a picture. the camera goes in and out of focus, it focuses the word "Rubix" perfectly, then goes out of focus and snaps the picture. I've tried tapping the screen to focus on the specific area, and it still does it. I've tried holding the button down until the picture takes, but it still goes in and out of focus, then snaps a blurry pic, or at least the area I want focused is blurry. Another issue with the flash... When the flash goes off, the camera will focus in and out on the object, and usually hold until the flashed area is focused and not washed out. But the camera just snaps the picture without focusing.
Like I said, both problems come and go. Any ideas?
Click to expand...
Click to collapse
Indeed Jason, indeed.
The TTF utility is very hit and miss. As is the entire camera functionality.
See here for more interest on this topic:
http://forum.xda-developers.com/showthread.php?t=782211
Sent from my Fresh 3.4 Evo (2nd refurbished unit) with major light leakage, crappy camera, and lag switch enabled.
The camera focusing algorithm appears to be flawed.
It will take someone to completely rewrite the camera app code to make this right with the evo camera.
It's clear to me that the AOSP camera code doesn't work well with the Evo camera. And unfortunately, HTC chose not to use a new code, but rather use the default Froyo code with this new piece of hardware.
Until someone takes the time to write the proper code for focusing the Evo camera, you are stuck with trying to manually focus the camera, multiple times, until the good looking focus is achieved.
It takes me good 5-10 times to manually focus the camera until a good sharp image is seen...

Use of front camera in HTC EVO

Hello Everybody,
I'm developing an android application which uses the front camera.
As the Android SDK doesn't supoprt it natively, I need to fint the register name which tells the system to use the front camera. Unfortunately, I do not know how this parameter is called. Does anyone can help me?
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
ill test if you tell me what the app does/is for
chikenkilr said:
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
Click to expand...
Click to collapse
All I could think of was some of the CraigsList replies I get that want my item shipped to Africa.
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market under the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Pao23 said:
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Click to expand...
Click to collapse
I think the same, but as there is no explicit command in the android SDK which allows to use the front camera, I first need to get a reliable way to use front cams.
chikenkilr said:
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market undre the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Click to expand...
Click to collapse
I like that bro im in on that! Givein that app a go thanx!!
Sent from my 1.2 HP EVO
explicit command in the android SDK which allows to use the front camera
Click to expand...
Click to collapse
The Cyanogen team has the front facing commands figured out.
Also, these guys do too http://www.popcrowd.com/
Maybe one would be willing to share or you could take a peak at their code.
Hi everybody,
Many thanks for your inputs.
If I made everything right, my application should now work on Sprint devices.
I uploaded a new version of the application. So, if you can test it on yours, it will be very helpful for me.
Cheers!
It uses the main camera on the EVO not the front one like you want.
Sorry.
Image is also turned 90 degrees...
For the rotation this is normal as the rear camera is rotated to 90° compared to the front camera (in order to use the rear camera in landscape mode and the front camera in portrait mode).
Ok well it still uses the wrong camera.
Looks promsing though.
Many thanks,
and before adding more sexy-features (like pinch zoom, or picture grabbing...) I want first to make sure my app is compatible with most mobile devices.
(If you have features ideas, do not hesitate )
Cool.
I'll test it again once you see about using the front camera.
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
how about make a video chat app that works all the time
chikenkilr said:
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
Click to expand...
Click to collapse
It works with the front camera now but you still need to rotate the image 90degress. I don't see why anyone would want a mirror that the reflection is sideways!
You're completely right, if picture is rotated, it is completely useless. ^^
What is that for the samsung Epic, picture owns the right orientation.
Futhermore, picture should be distorded on your Evo device?
Last question, I must rotate picture in clockwise or in counter-clockwise?
It works on my evo
You need to rotate image 90 degrees clockwise...no matter how I turned the phone the imageit displayed was turned facing 9 o'clock...
Keep working at it!
Swyped from an HTC Evo on MetroPCS...
Yep, me too. The top of my head points to the left no matter how I hold the camera. It 'IS' working with the front camera though.
I'm just beginning to test the front facing camera on my Evo too with some code. I 'think' I read that the Sprint library has to be included in the manifest (to enable the front camera); however, they say the app will not load on phones that don't have this library. that seems pretty severe. Anyone tested that out ?
It would be nice to make apps that use the front camera if possible but still use the regular cam if the front one's not available.
Hi rufus,
Yes the library must be loaded, but, as I mentioned above, you must add the :"android:required="false". So if the library exists, it will be loaded and if not, it doesn't mattre. But you need to add in your source a test to check if the library exists or not. It is explained in the sprint sdk.
Ok I'll add a test on my program add add a rotation if detected phoe is an HTC evo.
Is the ratio of the picture ok or not?
The ratio of the picture is good, but I assume once it's rotated 90 degrees, it wont' be. It's still rotated 90 counterclockwise...the top of my head is at the left.

Camera preview is cropped

For quite a while, I have noticed that the preview in stock camera app which comes with several ROMs is simply not full screen, but rather cropped. Final images looks fine though.
I'm currently on latest nightly Rootbox and problem still persists. Is that normal behaviour?
krneki10 said:
For quite a while, I have noticed that the preview in stock camera app which comes with several ROMs is simply not full screen, but rather cropped. Final images looks fine though.
I'm currently on latest nightly Rootbox and problem still persists. Is that normal behaviour?
Click to expand...
Click to collapse
Well if you refer to the fact, that the final images include a wider/higher(depending on orientation) image than the previewed, it's because the camera sensor has a different aspect ratio than your screen. This means that either google had to put 1cm black bares on the top and bottom of the screen in preview mode or they could use the entire screen to show a cropped preview. They chose the latter, and in that case they could either crop the final image as well or include the full photo. Again they chose the latter option.
mortenmhp said:
Well if you refer to the fact, that the final images include a wider/higher(depending on orientation) image than the previewed, it's because the camera sensor has a different aspect ratio than your screen. This means that either google had to put 1cm black bares on the top and bottom of the screen in preview mode or they could use the entire screen to show a cropped preview. They chose the latter, and in that case they could either crop the final image as well or include the full photo. Again they chose the latter option.
Click to expand...
Click to collapse
That was a foolish choice then. The point of a preview is to show what your photo will look like. The gallery displays photos properly and so should the camera. I don't need a full screen camera display, but I do need to see what my picture will look like before I take it.
Well I'll have to disagree with you on that one, we are talking about a mobile camera, and a bad one at that. This is no expensive high end dslr. Your image includes everything shown in the preview and more, allowing you to crop the image if you coincidently included something not meant for the picture.(the phone even includes an easy tool allowing you to do this) This fits the usecase in which a smartphone camera will actually be used, e.g. point and shoot to save the moment, perfectly.
Had they thrown in huge black bars everybody would hate the camera app, and to me a cropped 16:9 image is horrible, leaving only one viable option. I get that you disagree, but that doesn't make it a stupid decision.
edit: Even apple was forced to make the same design choice on the iphone 5 because they switched to the 16:9 screen ratio:
http://blog.crushapps.com/2012/09/with-the-iphone-5s-camera-app-what-you-see-is-not-what-you-get/
mortenmhp said:
Well I'll have to disagree with you on that one, we are talking about a mobile camera, and a bad one at that.
Click to expand...
Click to collapse
Just because it's not a good camera, no reason to make it worse.
Had they thrown in huge black bars everybody would hate the camera app, and to me a cropped 16:9 image is horrible, leaving only one viable option. I get that you disagree, but that doesn't make it a stupid decision.
Click to expand...
Click to collapse
I can't agree with that at all. The old camera was not full screen and I liked it much better because it was easier to use. The current one it seems to be all form before function, this full screen preview being just one example.
Just because it's not a good camera, no reason to make it worse.
Click to expand...
Click to collapse
Correct but that wasn't at all the point i made, which you would have known, had you read more than the first sentence in that paragraph. The point is that this is not a camera used to take high quality precision photos. This is a point and shoot camera, and for that purpose you don't lose any function, making it perfectly justifiable to prioritize the ui.(hence that is what the average user would prefer, since they would never notice the preview being cropped)

The second camera Thread

Hi guys, I just got my oneplus 5T today and i want to talk to you about the quality of the photos of this phone and how this camera setup is helping or not ?
For me, it's a waste of the second camera slot to use this "night camera module" ...
First of all i don't see the diference (using the pro mode and switch between the twos) and second, there is no other functions of the phone that use this second camera to improve anything (at least it shoud he use to combine two photos and result in a better pixel quality but since they have the same lens i don't think this helps either)
So what do you think guys ?
prologikus said:
Hi guys, I just got my oneplus 5T today and i want to talk to you about the quality of the photos of this phone and how this camera setup is helping or not ?
For me, it's a waste of the second camera slot to use this "night camera module" ...
First of all i don't see the diference (using the pro mode and switch between the twos) and second, there is no other functions of the phone that use this second camera to improve anything (at least it shoud he use to combine two photos and result in a better pixel quality but since they have the same lens i don't think this helps either)
So what do you think guys ?
Click to expand...
Click to collapse
In my opinion, I think they should implement the same feature as the essential phone. Using both cameras to create on single and good looking picture. If they can, they could make the main lens take all the details of the image and make the 2nd lens take all of the light and then somehow merge both images to create a perfect one.
Probably never going to happen though......
Colday96 said:
In my opinion, I think they should implement the same feature as the essential phone. Using both cameras to create on single and good looking picture. If they can, they could make the main lens take all the details of the image and make the 2nd lens take all of the light and then somehow merge both images to create a perfect one.
Probably never going to happen though......
Click to expand...
Click to collapse
They can't do it now because "the black and white sensor has had its top layer’s color filter removed. Without it, the sensor is unable to capture color, but its ability to capture light increases by 3x. This is especially helpful with low-light environments."(qualcomm clear sight)
prologikus said:
They can't do it now because "the black and white sensor has had its top layer’s color filter removed. Without it, the sensor is unable to capture color, but its ability to capture light increases by 3x. This is especially helpful with low-light environments."(qualcomm clear sight)
Click to expand...
Click to collapse
I guess we'll just have to wait for oneplus to release an update improving their camera's performance.....
Or if you look online, you might be able to find a ported google camera with hdr+

Categories

Resources