Camera Autofocus and Barcode Scanning! - Android Q&A, Help & Troubleshooting

New Question (ignore old question):
Is there another forum anywhere on the internet where a question like mine might be answered?
Thank you.
My App scans book barcodes (the camera searches, recognizes, and then decodes the barcode).
When all the book barcodes are the same distance from the camera, the App is very fast!
But when I set a book down to grab another book, the camera loses focus and then the autofocus has to take FOREVER (several seconds) to search for the next barcode.
QUESTION: What are some things that can be tweaked? Is there a way to alter other settings (e.g. "aperature" or whatever) so that EVERYTHING is in focus (so the autofocus doesn't have to search and search and search to find the next book barcode)?

Mary_ said:
My App scans book barcodes (the camera searches, recognizes, and then decodes the barcode).
When all the book barcodes are the same distance from the camera, the App is very fast!
But when I set a book down to grab another book, the camera loses focus and then the autofocus has to take FOREVER (several seconds) to search for the next barcode.
QUESTION: What are some things that can be tweaked? Is there a way to alter other settings (e.g. "aperature" or whatever) so that EVERYTHING is in focus (so the autofocus doesn't have to search and search and search to find the next book barcode)?
Click to expand...
Click to collapse
I wanted to add that I'm trying to think "out of the box" so if there's anyone with any ideas, no matter how far out, please let me know!!

Related

Hack to enable geocaching on the Athena Camera!

I found this on a French site, by changing the registry you get an extra camera mode that adds current position in the EXIF part of the file!
You need to edit the key : HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P9 change from 0 to 1 (P9 is the Geocoding profile).
No need to soft reset, just go into the camera and set to Geocode mode (see capture)
The files get stored in My Documents/POI (maybe so they appear in Tom Tom?).
Anybody know of cool ways to use this feature? Flickr? Googlemaps?
Sorry if this has been covered already!
Oh hell yes.....
Madhadder said:
Oh hell yes.....
Click to expand...
Click to collapse
You mean it HAS been covered? could not find anything thru search....
I could never get it to work, it says the GPS is searching, but when I look at the photos I cant find any GPS coordinate data.
Anyone else actually try it?
G
I think Madhadder meant "oh hell yes I can't believe its so easy to add this feature you just made my week".
I'd like to say:
Oh hell yes!
GuardianZX9 said:
I could never get it to work, it says the GPS is searching, but when I look at the photos I cant find any GPS coordinate data.
Anyone else actually try it?
G
Click to expand...
Click to collapse
I think the data is included in the file itself in a special zone that holds info on model of camera etc.
There are some applications that "place" the pictures on maps, I do not know much about this but want to find out! The ideal would be to place them on googlemaps...
techntrek said:
I think Madhadder meant "oh hell yes I can't believe its so easy to add this feature you just made my week".
I'd like to say:
Oh hell yes!
Click to expand...
Click to collapse
Good but as much as I would love to take credit for this find, it is in fact from this site : http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=85924&whichpage=3#641517
8th post down.
edeplano said:
I found this on a French site, by changing the registry you get an extra camera mode that adds current position in the EXIF part of the file!
You need to edit the key : HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\P9 change from 0 to 1 (P9 is the Geocoding profile).
No need to soft reset, just go into the camera and set to Geocode mode (see capture)
The files get stored in My Documents/POI (maybe so they appear in Tom Tom?).
Anybody know of cool ways to use this feature? Flickr? Googlemaps?
Sorry if this has been covered already!
Click to expand...
Click to collapse
there are so many line items under that folder. Could you be more specific?
thanks..
I assume that the GPS must be turned on to give the correct position prior to taking the picture, am I right?
Enable
ahmadfarid said:
there are so many line items under that folder. Could you be more specific?
thanks..
Click to expand...
Click to collapse
P1-P9 are profiles for different camera modes. You'll notice that the "Enable" key is 0 in Profile 9. Change it to 1 and you should be good.
Also found this info on GPS passion, and was going to share, but never found the time....
I did the hack on my Ameo last weekend, and played around with it a little. It is ofcourse quite an amazing feature, and it does impress people that sees it, but given the quality of the camera in the Ameo, I'm not sure how usefull it will turn out to be, I would be a little embarassed to upload any Ameopics to Google at least.
Here is what I've found out sofar, if someone finds that useful.
When you start Camera, you get a new option when you choose your Photomode, called GPS. - This starts up the GPS automatically, and once it gets a fix you are ready to shoot.
The pics you then take are stored in /my documents/my Poi - which is created.
These pics will then have the GPS position included in the Exif data.
Haven't yet found a PPC software that is capable of reading these data, but if you read them with your ordinary pc, you can input them into google Maps (on PPC for instance) and it will take you there.
Picassa will read the data, and you can input them manually into your mapsoftware (the format is: xx yy' zz'' aa bb' cc'') but I would recommend "Panorado Flyer 1.2" which is a great free and small application. It gives you some new options in the context menu, so you just right-click your Gpspicture and choose "show location in Google Maps" - and it opens up Google Earth and takes you there.
There was some discussion on the precission of the GPS Data, actually on this very site I'm pretty sure, maybe the kaiser section(?) , someone noticed the last 2 decimals recorded for latitude and longitude allways were the same, so the precision was less than 100 meters, but the good news is this is not the case with our Athenas, they are very accurate!
I don't think I'm allowed to distribute Panorado Flyer here, but here is the link for you to download it yourself.
Hopefully someone will make a similar app. for PPC, which would make this feature so much more useful.
Here is a link to the free version: http://www.photo-freeware.net/panorado-flyer.php
And here is the commercial and probably more functional version (did not try it, but there is a demo): http://www.panorado.com/en/index.htm
I went to a birthdayparty this week and took a GPSpic inside an apartment on the 7. floor to demonstrate to all how brilliant the Ameo is, got a fix and shot a pic. The pic stinks, but if you want to try Pandora, you should be able to rightclick it and fly over here, even if I downscaled it....
And I just tried myself, and the GPS data did not survive the upload so it does not work, sorry.
Here is a shot of what Panorado rteads for that pic:
works well here
Actually you can use this format directly into Google earth, which is simpler I think:
55,685278 12,584445
Ok Midget, on my setup the GPS data was lost when I d'loaded my own pic from the post.
Also had to try it out on my old uni with an external GPS, but it doesn't have the P9 option, could that be because of the old HTC Camera version (3,00 build 21424) or must it have an internal GPS?
Anyone got the newer Camera version (like the one from the Ameo WM6 - 4.01 build 27598)?
hammermedia said:
P1-P9 are profiles for different camera modes. You'll notice that the "Enable" key is 0 in Profile 9. Change it to 1 and you should be good.
Click to expand...
Click to collapse
oh!..ok..i'll try it right away..
thanks
The new mode came right up when I made the registry change. Can someone confirm where the data is stored? Seems there are 2 places mentioned here.
That's freakin awesome! Possibly rates as my top feature of the moment! Good Hack!
And @ techntrek - it goes into my \microdrive\my documents\my poi\
Ace!
I have using panorado software but the error for several pictures on same place (1 square meter) is very large, some hundreds of meters...
beginner said:
I have using panorado software but the error for several pictures on same place (1 square meter) is very large, some hundreds of meters...
Click to expand...
Click to collapse
That is what you will also get when you use googlemap. It can be hundreds of meters off.
I read recently that US goverment wants to decrease the accuracy of GPS. I wonder if it is the result of this project that I noticed that the inaccuracy has been magnified lately.

Photo time stamping just not an option?

I just emailed HTC about it. I even had to send a photo I took with my Hero with time stamping enabled to show them what I meant. The only thing they can tell me is that it just isn't an option on the Evo 3D. They also told me to look on the market for an app that'll let me add that functionality. Is there such a thing?
I'm adding the same example photo I sent to HTC in this post, so everyone will know what I mean by time/date stamping.
I really don't get why it isn't a standard option.
I was going to add a poll to see how many of you out there think this should be an option added to the camera app, but I can't seem to figure out how to add a poll. lol
Isn't the timestamp simply part of the metadata tags built into the image file?
saltorio said:
Isn't the timestamp simply part of the metadata tags built into the image file?
Click to expand...
Click to collapse
...what he said. Unless you actually want an old school red/orange timestamp on top of your photo? Might find an app for that on the Market, who knows?
dumasauce said:
Unless you actually want an old school red/orange timestamp on top of your photo? Might find an app for that on the Market, who knows?
Click to expand...
Click to collapse
the sample photo he posted above contains a text colored timestamp on the bottom right hand corner.
i do think it is very odd the camera app does not provide an option for a timestamp and i too have used this feature in the past and think its a good idea.
odd they didn't add that feature. i hadn't noticed until i read this post and checked my camera app .. def no option to put a timestamp on the lower right corner of the photo.
joeykrim said:
the sample photo he posted above contains a text colored timestamp on the bottom right hand corner.
i do think it is very odd the camera app does not provide an option for a timestamp and i too have used this feature in the past and think its a good idea.
odd they didn't add that feature. i hadn't noticed until i read this post and checked my camera app .. def no option to put a timestamp on the lower right corner of the photo.
Click to expand...
Click to collapse
But again, how is a time stamp on the actual photo a benefit over including the time stamp in the image file metadata?
Back when photos were on film, burning the time stamp into the photo itself was the only way to know when it was taken. But these things are digital. Metadata is a much more elegant way to track all sorts of information (like geo tags) associated with a photo, and it's how all the information is stored in the photos the EVO 3D (and pretty much every other digital camera device) takes. Most photo organization software (like most MP3 software) makes extensive use of meta tags for sorting and searching your files. And it doesn't muddy up your images to boot.
saltorio said:
But again, how is a time stamp on the actual photo a benefit over including the time stamp in the image file metadata?
Back when photos were on film, burning the time stamp into the photo itself was the only way to know when it was taken. But these things are digital. Metadata is a much more elegant way to track all sorts of information (like geo tags) associated with a photo, and it's how all the information is stored in the photos the EVO 3D (and pretty much every other digital camera device) takes. Most photo organization software (like most MP3 software) makes extensive use of meta tags for sorting and searching your files. And it doesn't muddy up your images to boot.
Click to expand...
Click to collapse
to illustrate the otherside of the viewpoint you've expressed and address your question.
i guarantee not every android user understands metadata, nor knows how to use/where to find it. i find it comical imaging my parents trying to locate the metadata of a picture they took on their phone.
for those people who still print out their images and want to scrapbook/put in photo albums, they might prefer having the time/date stamped on the front of the image itself.
some people prefer timestamps printed on their photos and some people do not. having or not having timestamps on photos is a matter of personal preference and is a legit request as an option, especially given i've had the option of printing timestamps on the images i've taken with previous android phones.
joeykrim said:
to illustrate the otherside of the viewpoint you've expressed and address your question.
i guarantee not every android user understands metadata, nor knows how to use/where to find it. i find it comical imaging my parents trying to locate the metadata of a picture they took on their phone.
for those people who still print out their images and want to scrapbook/put in photo albums, they might prefer having the time/date stamped on the front of the image itself.
some people prefer timestamps printed on their photos and some people do not. having or not having timestamps on photos is a matter of personal preference and is a legit request as an option, especially given i've had the option of printing timestamps on the images i've taken with previous android phones.
Click to expand...
Click to collapse
Well then go to the official HTC Community forums and make the request.
My X10 didn't have the ability to print time stamps on the photos, neither does my wife's text messaging phone. I'm not even sure if either of our digital cameras (a Digital Rebel, and a Canon point-and shoot) have that capability. All I'm saying is people have to move with the march of technology.
And on a related note: can you imagine your parents even having an EVO 3D?
Here's something. Wouldn't it be possible to just take the setting from the most recent Sense before Sense 3 and add it to the settings in our present camera app?
I'm no programmer, (or I'd just attempt it myself, lol). Just putting it out there so maybe someone will consider it.
The reason for time/date stamping ON the photo in addition to the metadata is the fact that most people, at least in my opinion, when attempting to retrieve the date of a certain photo on the internet, would rather just see it printed right on the photo than have to download the image and look for it in the image info.
Now I'm not sure if I'm just missing it when attempting this or not, but I went to a random site, right clicked on an image and went to View Image Info, and didn't see anything at all about a date or time the image was taken. Only when I actually download the image then go to Properties>Details do I see an actual date/time.
I didn't mean for this to be a debate or anything. Just feel it's wrong not to even give the option anymore. It's not like something like that takes up a lot or space or processing power, or even time processing the photo.
I think It's cool when you need to provide a day and time for a pic that you want to upload online.
johnequickiii said:
Here's something. Wouldn't it be possible to just take the setting from the most recent Sense before Sense 3 and add it to the settings in our present camera app?
I'm no programmer, (or I'd just attempt it myself, lol). Just putting it out there so maybe someone will consider it.
The reason for time/date stamping ON the photo in addition to the metadata is the fact that most people, at least in my opinion, when attempting to retrieve the date of a certain photo on the internet, would rather just see it printed right on the photo than have to download the image and look for it in the image info.
Now I'm not sure if I'm just missing it when attempting this or not, but I went to a random site, right clicked on an image and went to View Image Info, and didn't see anything at all about a date or time the image was taken. Only when I actually download the image then go to Properties>Details do I see an actual date/time.
I didn't mean for this to be a debate or anything. Just feel it's wrong not to even give the option anymore. It's not like something like that takes up a lot or space or processing power, or even time processing the photo.
Click to expand...
Click to collapse
i didn't want a debate either so i stopped replying as it was clearly off topic.
copying the settings file from a previous sense version of camera which supports the time/stamp, *could* work, assuming the current camera.apk supports time/stamping and they just forget/intentionally didnt add it to the options menu inside the camera.apk.
i dont have a previous sense phone, like the EVO, handy to pull the camera settings file from /data/data ..
on the EVO3D the settings file is: /data/data/com.android.camera/shared_prefs/com.android.camera_preferences.xml
an example adb pull command to copy it to the local computer:
adb pull /data/data/com.android.camera/shared_prefs/com.android.camera_preferences.xml c:\com.android.camera_preferences.xml
i do wonder how adding time stamping to the picture would work in 3d mode ... i wonder if that presented an issue so they scrapped it ... just speculating!
joeykrim said:
i do wonder how adding time stamping to the picture would work in 3d mode ... i wonder if that presented an issue so they scrapped it ... just speculating!
Click to expand...
Click to collapse
Ya know, I never thought of that as a potential reason for leaving it out. That's probably it too, not that we could get an official answer to it though, so speculation will have to do, but I do think you have it right.
I DID hear early on in the threads that it was possible that panorama and burst mode, among other things, weren't acting right for one reason or another, and those functions were pulled right before release. Makes sense that panorama or burst wouldn't work right either in 3D, so it stands to reason.
Still though, it would've been nice to have those options for 2D pictures. It's a shame they couldn't figure out how to disable those options when the 3D switch was flipped, if any of this is really the case even. lol
Sent from my PG86100 using XDA App

[Q] overlay text on camera feed

Hi,
I was wondering if someone knows if it would be doable to write text as an overlay to a video feed... My main goal would be to add GPS data (speed, direction, etc) to the feed.
A similar question was asked over a year ago, but never got any feedback: http://forum.xda-developers.com/showthread.php?t=758936
Maybe today's knowledge will enable us to do this?
palloquin said:
Hi,
I was wondering if someone knows if it would be doable to write text as an overlay to a video feed... My main goal would be to add GPS data (speed, direction, etc) to the feed.
A similar question was asked over a year ago, but never got any feedback: http://forum.xda-developers.com/showthread.php?t=758936
Maybe today's knowledge will enable us to do this?
Click to expand...
Click to collapse
Yes, you can.
Regarding your original post, you don't even need to record video. You just need to prepare a layout w/ a FrameLayout containing a Canvas/SurfaceImage where you will output the video from the Camera, and a TextView (or a more complex view depending on your particular needs) where you will output GPS data (or any other text).
Job done.
If you want to record it as a video, it will require more work, because you'll have to overlay the video feed with the text, then re-encode the feed. I haven't yet dealt with video recording, I made a simple (private) app which overlaps the current date and time on the captured image from the Camera. Since you're creating new images, you need to be sure your device has enough RAM to do the processing (or scale the image to be smaller and require less RAM).
That sounds rather simple (even though I have never build an Android App in my life, I have built for other platforms.)
But, this way you 'just' build an app that shows your video this way. What if I would want to change the video feed so any application (android camera app, Skype, etc..) will get this feed with the added overlay... Would THAT be doable?
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
palloquin said:
But, this way you 'just' build an app that shows your video this way. What if I would want to change the video feed so any application (android camera app, Skype, etc..) will get this feed with the added overlay... Would THAT be doable?
Click to expand...
Click to collapse
In order to accomplish that, you'd need to rewrite the (internal) code which talks to the camera. Either at kernel level, or at android API level.
So either with a custom kernel or a custom ROM. No other way.
It's 2016, is there a built in way to recording a phone's video feed with a PNG still image or animated overlay?

Application wanted: Scan and search

Android stuff is so powerful. Is there an application that can scan a picture (the face to be specific) and search the web for more pics of that person? Google Goggles kinda sorts does it but it only finds the exact same picture and maybe has a name. I'd like to just scan somebody and find more of her. An accuracy range of at least 50% would be OK. Ty
Sent from my PH44100 using XDA

[Q] is there a scanner app that scans like a panorama?

I am hoping to find a Scanner app that will let me scan a page by literally *scanning* it with my camera, slowly sweeping the page. Similar to how you can take panoramic photos, and it stitches the images together behind the scenes. I want to use OCR to scan a page into text, but the I find the quality usually isn't good enough for accurate OCR.
Does anyone know of one? Thanks
Don't know about panorama but but did you try Camscanner? It works like a charm. Download it from the market:
https://play.google.com/store/apps/details?id=com.intsig.camscanner&hl=en
arafsheikh said:
Don't know about panorama but but did you try Camscanner? It works like a charm. Download it from the market:
https://play.google.com/store/apps/details?id=com.intsig.camscanner&hl=en
Click to expand...
Click to collapse
Yeah, actually that's what I have now.
Tried emailing a scan to my laptop and my ocr program got nearly anything right, lots of random symbols.
I will try again with better lighting but, surely, there must at least be some app to stitch photos together? Where you take 3 or 4 pics and it fits them to make a seamless high quality image?
Swiped from my Rezound using xda-developers app
mvmacd said:
I am hoping to find a Scanner app that will let me scan a page by literally *scanning* it with my camera, slowly sweeping the page. Similar to how you can take panoramic photos, and it stitches the images together behind the scenes. I want to use OCR to scan a page into text, but the I find the quality usually isn't good enough for accurate OCR.
Does anyone know of one? Thanks
Click to expand...
Click to collapse
I am too searching the same kind of functionality. Did you find something at the end?
Night on the web said:
I am too searching the same kind of functionality. Did you find something at the end?
Click to expand...
Click to collapse
I am still missing this app ...

Categories

Resources