Tricks and tips at Samsung Eternity forum
Find Your Forum
  
Welcome, Guest. Please login or register.
Did you miss your activation email?

News: Click here to check out our network of cell phone forums
Samsung Eternity Forum  
Join now and get hottest ringtones         Find Free New AT&T Cell Phones
         Screen Protection         Cheap Mobile Phone Accessories
Pages: [1] 2
Print
Author Topic: Eternity geoTagger  (Read 6711 times)
drunnells
Newbie


Cookies: 3
Posts: 24


« on: October 21, 2009, 09:12:29 PM »

Eternity geoTagger
Current Version: 0.92 (10/23/09)


If anyone is interested, I have started tinkering with writing some J2ME. I'm still horribly new at it, but I wrote a little app that can do a form of geotagging on our phone. In summary, geoTagger runs in the background watching the Pictures folder on your SD card. When a new picture shows up, it gets the gps coordinates from the internal GPS and creates an XMP "Sidecar" file in Pictures/xmp on your SD card.

If you have a Flickr acct, this app can also upload images directly to Flickr and attach the location information.

An example of a geotagged photo that I took using this app on my Eternity can be found here:
http://www.flickr.com/photos/drunnells/4032544655/

If you look on the right side of the Flickr page next to the image you will see "Taken in Webster, New York (map)". If you click on "map" you will see my back yard in yahoo maps.. the dot is pretty darn close to exactly where the photo was taken.

INSTALL
----------

Copy the attached .JAD and .JAR files to your phone using the methods described elsewhere on this site. If you are installing OTA you will need to "goatbreak" after installation to use the internal GPS.

USAGE
--------

The interface is still pretty clunky, but hopefully intuitive enough to get by. If you are only interested in the XMP files all you need to do is start the app and let it run in the back ground when you expect to be taking pictures. When the app first starts it will attempt to get a GPS signal and will notify you on the main "Logger" screen as soon as it receives the first signal. Once geoTagger is receiving GPS signals you can minimize it by clicking the "Min" button on the lower left and start the camera whenever you are ready. As you take pictures XMP files will be placed into the Pictures/Xmp directory on your SD card. Be sure that your camera is configured to store pictures to the SD card, NOT the internal memory, otherwise geoTagger will be unable to find new images.

If you plan on uploading to Flickr from geoTagger you will need to authorize the app on flickr: http://www.flickr.com/auth-72157622537493140

After logging into your Flickr account at the above URL you will be given a nine digit authorization code. After you receive your authorization code start the geoTagging app and click the ImgMgr button, go to Flickr Settings->Authorize and enter the full code INCLUDING THE DASHES. After you enter the code you can verify that geoTagger will be able to communicate with Flickr by going to Flickr Settings->Verify Auth. Once Flickr is configured you will be able to go to ImgMgr and clicking Flickr Upload. The Flickr Upload screen will list all the images that have an associated sidecar file, click on one of them and it will be uploaded to your Flickr acct with the location information. BEFORE you upload any geotagged images to Flickr you will need to set your default privacy setting for geotagged images:
http://www.flickr.com/account/geo/privacy/

ADDITIONAL INFORMATION
----------------------------------
- Originally I had planned on writing the geotag metadata to the EXIF in the original .jpg file, however editing existing exif inside of a jpg is no easy task, all parts of the jpg refer to the other parts by their offset, simply inserting new metadata would have required a deeper understanding of exif and storing the entire jpg in memory, rearranging it, and then writing the file again. As far as i can tell, there are currently no existing prewritten exif libs available for j2me.
- JSR 234 on our phone does have a setMetadata() method for useImageFormatControl, BUT whenever I tried to use it on the photos on my phone I got an exception telling me that setting meta data was not allowed.
- JSR 75 is used to write to files on the SD card.
- This app only uses JSR 179 for communicating with the internal gps, no bluetooth at this time.
- Ths app runs a loop that checks the dates of all the files in file:///Mmc/Pictures/, if one is more recent than the last run (every 15 seconds) I pull the current gps coordinates and generate a xmp file with the same name as the image, just .xmp instead of .jpg in the file:///Mmc/Pictures/xmp directory, creating the dir if it doesn't already exist.
- XMP is an emerging standard to store metadata for any type of file, there is likely a tool for your OS that will allow you to merge the XMP data into the .jpg for applications that do not understand XMP sidecar files, I personally use exiftool on Linux with a command line like:
exiftool -tagsFromFile Photo005.xmp Photo005.jpg

KNOWN BUGS
------------------
* I suspect that auto-locking on the phone can break this if auto-lock happens before the app is minimized.
* As explained above, geotag information can not be written to the original image file.
* GPS updates are only at most every 15 seconds, if you are driving 15 seconds might be a noticeable position change from where the picture was taken.
* Images that are deleted from the memory card will automatically have their associated sidecar file removed, however if geoTagger is running, the upload list will not be updated to reflect that these images were removed until after the app is restarted.
* This application makes a noticeable hit to your battery usage.

CHANGELOG
-----------------
0.80 - Initial posted version
0.90 - Added Flickr Uploader
        - Improved performance
0.91 - Flickr upload filelist is updated when new pictures
          without the need to restart the app.
0.92 - Upload filelist is now sorted by date (descending)
       - File upload is now forked so you do not have to sit and wait.
       - Deleted files are now removed from upload list without restart.



COOL STUFF YOU CAN DO WITH FLICKR GEOTAGGED PHOTOS
-----------------------------------------------------------------------------
* Copy the URL for the geoFeed from the bottom of your Flickr photostream and paste it into the search bar on http://maps.google.com to see the last 25 geotagged photos on google maps.


---------

I would be very interested in hearing how well this application works for anyone and seeing the geotagged photos if you'd like to post them as replies to this thread for myself and others to admire!

Please note the version number when reporting bugs, thanks!
« Last Edit: October 23, 2009, 10:06:21 PM by drunnells » Logged

Dustin Runnells


Americo24
Administrator
Sr. Hero
*****

Cookies: 79
Posts: 3107


Team Tech.


« Reply #1 on: October 21, 2009, 10:08:22 PM »

I am willing to try it now since I have no HW today again... So I will post my results

Edit: Runs After att branded Everything seems fine and found the gps but.....I don't have a flkr account
« Last Edit: October 21, 2009, 10:14:03 PM by Sir Americo » Logged

BantamBytes
Guest
« Reply #2 on: October 21, 2009, 11:04:26 PM »

This looks oh so familiar. I've seen this posted somewhere else before.

I'll give it a try tomorrow.
Logged
drunnells
Newbie


Cookies: 3
Posts: 24


« Reply #3 on: October 22, 2009, 05:35:57 AM »

Americo, thanks for giving it a try.. without flickr you should still get the xmp sidecar files in Pictures/Xmp on your SD card when you take pictures.. they are xml so should be fairly human readable.

Bantam, yeah, I had originally announced that I was working on this a couple weeks ago in this thread:
http://www.samsung-eternity.com/index.php?topic=4942.0
Logged
dwcasey
Full Member
**

Cookies: 0
Posts: 97


« Reply #4 on: October 22, 2009, 02:21:21 PM »

Just downloaded, copied over via TKFE.

It only seems like it grabbed the first photo I took and nothing after.  I stopped and restarted the app, pushed the Min button within the app.  Went back a couple of screens, pressed the camera button.

I snapped two more photos, but I still only see the one photo in the Upload list and only one picture file in the xmp folder.

The pictures and the xmp folder and it's contents are going to my memory card confirmed by the memory card icon.

So I got one out of three photos to work and upload to flickr.  Once on my flickr site, I see that it says it is geotagged, but no link to a map.  Actually, it's asking me to add it to my map.  Under Show Machine Tags, I see the lat/long info.  Not sure why it didn't put it on the map for me.
Logged
drunnells
Newbie


Cookies: 3
Posts: 24


« Reply #5 on: October 22, 2009, 02:31:57 PM »

dwcasey, thanks for giving this a try! Can you do me a favor and check in tkfe if the Mount/Mmc/Pictures/xmp has more than just the one xmp file and post one of the xmp files here for me to take a look at? It almost sounds like the GPS wasn't found the second time around.. did you get the "GPS Found, waiting for pictures" message?
Logged
drunnells
Newbie


Cookies: 3
Posts: 24


« Reply #6 on: October 22, 2009, 07:26:48 PM »

dwcasey, I just thought of a couple things to try.. I believe Flickr doesn't automatically show geotagged photos in a map, check:

http://www.flickr.com/account/geo/privacy/

You may need to re-upload the photo after making this change.

Also, regarding only seeing one image to upload, if you close the app completely and then reload it do you see more? Are you using v0.91 (shows at the top of the main logging screen).
Logged
BantamBytes
Guest
« Reply #7 on: October 22, 2009, 07:39:17 PM »

I tried it as I said I would but I was unable to get a GPS lock. It was a half hearted attempt from the balcony in my apartment. I'm kind of wore out from the day and don't feel like going downstairs to get a clear view of the sky. I'll try it again tomorrow.
Logged
dwcasey
Full Member
**

Cookies: 0
Posts: 97


« Reply #8 on: October 23, 2009, 05:03:48 PM »

I updated the privacy settings and checked the existing file, no go.  I started geotagger and took a pic, went back to geotagger and uploaded.  Interesting.  The pic it uploaded had the GPS coordinates into Flickr, but it was a pic I took yesterday,not the picture I just took.

I ended geotagger, cleaned out the xmp folder and all the pics I've taken with the geotagger running.

Started geotagger
waited for geotagger to tell me "Found GPS...Waiting for Pictures"
Pressed the Min button
took a picture
went back to geotagger
it said Generating XMP: Photo0136.jpg
pressed ImgMgr
highlighted and selected Flickr Upload
Pressed ok
waited
logger popped up and said sending bytes, upload complete, photoid: ....
geotagged

Flickr now has the image and it's been tagged and the map link works.

Looks like it's working.  I'll play with it over the weekend and snap some fall foliage pics.

also, the scrolling seems backwards to me compared with how you would normally scroll the menus, favorites, etc on the SE.
Logged
BantamBytes
Guest
« Reply #9 on: October 23, 2009, 05:38:30 PM »

It works so far. It created the XMP file for three pictures I took. Im posting from my Eternity right now so I cant verify the XMP data right now.
Logged
drunnells
Newbie


Cookies: 3
Posts: 24


« Reply #10 on: October 23, 2009, 10:17:41 PM »

I updated the privacy settings and checked the existing file, no go.  I started geotagger and took a pic, went back to geotagger and uploaded.  Interesting.  The pic it uploaded had the GPS coordinates into Flickr, but it was a pic I took yesterday,not the picture I just took.

That is good to know, I was curious if flickr would store the geotag information if your privacy settings did not allow it.. apparently it does not. Are you saying that the incorrect image was uploaded to flickr when you said that it was a picture from yesterday? If not, this sounds correct, the xmp files are only removed with their associated images are deleted.. so you can upload them to flickr at anytime even after the app has been closed and restarted.

also, the scrolling seems backwards to me compared with how you would normally scroll the menus, favorites, etc on the SE.

I know what you mean.. I am using the standard j2me lcdui form for the gui, nothing fancy. Apparently thats just the way it is.

I look forward to checking out your geotagged photos on flickr if your willing to share them!
Logged
lukeborn
Newbie


Cookies: 0
Posts: 16



« Reply #11 on: October 31, 2009, 10:38:57 PM »

V 0.92

First of all I would like to say this is a great work around for geoTagging I have to agree I would like to see it embedded in the jpeg file, but this may be a pipe dream.

I have now tried it with 5 pictures from all over town with great location results.

One thing however I would love to see is the ability to delete the pictures and have them show up as deleted without having to exit and reopen the app, perhaps a refresh button on the upload list.
Logged
drunnells
Newbie


Cookies: 3
Posts: 24


« Reply #12 on: November 01, 2009, 07:58:19 AM »

V 0.92

One thing however I would love to see is the ability to delete the pictures and have them show up as deleted without having to exit and reopen the app, perhaps a refresh button on the upload list.

Thanks for the feedback! v0.92 should be deleting unused sidecar files and refreshing the upload list every 15 or so seconds (possibly a longer if there is a delay talking to the gps). Can you reconfirm that there is in-fact a problem refreshing the upload list? I am unable to duplicate this problem on my phone..

Also, if you don't mind sharing, what is your flickr url? I'd love for others to see better geotagging examples than the few that i have done..
Logged
lukeborn
Newbie


Cookies: 0
Posts: 16



« Reply #13 on: November 01, 2009, 02:18:11 PM »

V 0.92

One thing however I would love to see is the ability to delete the pictures and have them show up as deleted without having to exit and reopen the app, perhaps a refresh button on the upload list.

Thanks for the feedback! v0.92 should be deleting unused sidecar files and refreshing the upload list every 15 or so seconds (possibly a longer if there is a delay talking to the gps). Can you reconfirm that there is in-fact a problem refreshing the upload list? I am unable to duplicate this problem on my phone..

Also, if you don't mind sharing, what is your flickr url? I'd love for others to see better geotagging examples than the few that i have done..

I bet your right on that delay thing,  I did delete them just before I went back into the program... I bet if I would have been more patient it would have worked.

I have made a few of these geoTagged pictures visible to you if you go to http://www.flickr.com/photos/35396834@N03/ you can see them also I am planning on going on a roadtrip from Kansas City, MO to St. Louis, MO this week I will try to remember to take some pics and add them along the way, since the 2 I have now are from the same location.
Logged
lukeborn
Newbie


Cookies: 0
Posts: 16



« Reply #14 on: November 19, 2009, 08:58:34 AM »

Okay, I finally went to St. Louis to take a picture and I'm not sure what happened but the tagging was totally off... I guess I was going to Sherwin, KS?  I'm sure it was just a gps glitch but I have noticed one other rather annoying bug, lets say you run geoTagger in the morning and around 2 in the afternoon whip out your phone to take a candid picture almost every time I notice the program has closed itself.  I know this very well could be a problem with the phone but I figured I would mention it.
Logged
Pages: [1] 2
Print

Jump to:  

Got a new phone? Find the forum here


Related Topics
Subject Started by Replies Views Last post
Eternity or LG Vu? « 1 2 »
Samsung Eternity
AdventSword 15 1391 Last post March 05, 2009, 02:49:00 PM
by droc8402
Eternity to Eternity MMS .. No attatchment
Shoot and Send Video and Pics
gltech1123 5 1061 Last post June 09, 2009, 09:39:19 PM
by Americo24
geotagger
Lounge (Off-Topic)
Watesiya 0 219 Last post July 13, 2010, 03:24:44 AM
by Watesiya
MOVED: geotagger
Samsung Eternity
Lee (lhamil64) 0 131 Last post July 13, 2010, 09:26:39 AM
by Lee (lhamil64)
Samsung Eternity restarting till eternity
Introduce Yourself
shyguy1879 4 757 Last post August 26, 2010, 08:19:41 AM
by shyguy1879




Galaxy Note | Samsung Galaxy Nexus | Kindle Fire | Atrix 4G | Motorola Xoom | Windows Phone 7
Nokia Lumia | Top Hosts | Samsung Galaxy Tab | Samsung Galaxy S2 | Samsung Galaxy S | Samsung Wave
HTC Evo 3D | HTC Evo 4G | HTC Incredible | HTC Incredible 2 | HTC Incredible S | HTC Thunderbolt
Motorola Droid Razr
| HTC Desire | HTC Desire HD | HTC Desire Z | HTC Desire S | HTC Wildfire
Motorola Droid | Galaxy Indulge | Nokia N8 | Droid Charge | Droid X | Droid X2 | Droid 2| Droid 3 | Fascinate
HTC Sensation | HTC Flyer | LG Revolution | Asus Transformer | Xperia Play | iPhone 4 | Nexus S | Droid Bionic
HTC Wildfire S | HTC Droid Eris


This is an Un-Official fan based Website. The views expressed on this website are solely those of the proprietor, or contributors to the site, and do not necessarily reflect the views or opinions of the parties it covers, and is not affiliated with, endorsed or sponsored by parties involved.
If you have a problem with any of the content posted on this website, please contact "sales@verticalscope.com"
Term of Use | Privacy Policy | BlackRain 2006 by, Crip














CopyRight 2008 www.Samsung-Eternity.com
Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC