iPhone, Open custom camera, take picture, save in UITableView with GPS info - iphone

Ok I need to open the camera, take a picture and save this in UITableView, also need to be saved the GPS info like date, place and how much km you are from the place that you take the image.
The image need to be saved in UITableView with the GPS info and every time that you take a new pic the process start again and is saving one after one in the same UITableView.
Many thanks.

First, welcome to stackoverflow.
Second, this isn't really a question, so I am going to "answer" this the best way possible. It seems like you are trying to just learn how to make an iPhone application, and this is your first stab at it.
I HIGHLY recommend checking out the stackoverflow FAQ first.
Next, check out Apple's Sample Apps and developer library for some help in getting started:
Sample Code
Getting Started
Photo Picker
Photos by Location
Lastly, as you are working through your code, if you stumble onto a problem, please return and as a more specific question.
Thanks,
Dan

The most important GPS info for photos are:
- time
- latitude
- longitude
Slightly advanced GPS info, still important for photos:
heading (v1)(or course) the direction in which you are going, driving; unfortunately when making a photo you have been stand still for some time, so there not always is a valid heading/course available.
heading (v2) the direction which the camera is looking while taking that photo: if GPS is not suitable, you also can use the compass orientation.
That 3 or 4 attributes, is usually stored into jpgs using an EXIF headers. If for some reason you cannot, or don't want to store that info into the picture then you have to store that values in an own file. A simple CSV file is sufficient.

Related

Iphone - Photoreel from URL Array

I've seen a lot of apps that when you click photos you get a small square of each image, and then when you click them you get a full screen version. Actually, just like the photoreel.
Is there a way of populating the photoreel with an array of images? I have about 6 per location that I'd like to show like that.
I've had a google, but coming up a bit blank!
Any help would be appreciated
This is a Flikr JSON tutorial (the first part is mostly the JSON calls but they do some early GUI set up too) but it gets a preview of each image in a small thumbnail and then when clicked it opens the full image in the same window.
Depending on how your images are loaded simply replace the json creation with your array/dictionary params and follow how the tutorial progresses, its only 3 parts and has a good starting point for what you're looking for.
Hope it helps

Want to store photos like photo application

I would like to store severals photos like photo application, however i don't know exactly the objects what i need. If anyone know how to implement this way i'm interested.
A link to give you an idea: http://blog.photobox.fr/wp-content/uploads/2010/07/Album-iPhone5.jpg
thank you in advance.
You can try the PhotoViewer provided in three20 framework. It is exact replica of the Photos app of iPhone, if that's what you're looking for. You can find a tutorial here.
go to this link it help u
https://github.com/kirbyt/KTPhotoBrowser
Having spoken to an Apple engineer on some of the optimizations that they went through on the Photos app, I can give you a couple of tips:
They never display back the original photo. Because of a photo's size, they only take the original photo and save off a number of optimized thumbnail images.
The example image you show does not contain a series of thumbnail images. Each row is actually a single image. For selection, an overlay is placed in the exact size and dimension of the thumbnail image to give the impression that you are selecting a particular image. This could be accomplished by using a table view, but it more likely just a scroll view.

Simple, no frills ,get LAT/LON in iPhone

I just want to display the lat/lon on the screen of an iPhone.
I've read a half dozen examples, and everyone decides to do 3 other cool things at the same time and soon I am in over my head.
I would love a link to an example of plain vanilla (not kitchen sink like Apple's LocateMe) example of where I need to set up the CLLocation object, how do I turn it on, put lat/lon in a variable, and then turn it off.
Here is a link with how to build an app that does nothing but display your lat/long: Lat/Long Display App

Distance to "point of interest" in iphone auto focus

In iphone, I want to calculate the distance from the camera to the subject.
I was wondering maybe iphone camera's "Active Auto Focus" provide me the distance to the subject (point of interest)??
many thanks in advance.
p.s. guys if you think it is not possible plz let me know ;)
As far as I'm aware, it's not possible - see here for more info on what you can and can't do. You can tell when the camera is autofocusing, but nothing more.
I'm sure there is probably some more info you can get on focus/distance using a private API call - but unless you're not worried about getting on the App Store, it's not really an option.
That doesn't mean there's not another way though. Looks like a good discussion on the topic here: Distance using OpenCV (you can compile openCV for iOS!)
I've been investigating the ability of the camera to measure short distances and not finding anything yet I came up with this shot in the dark. I haven't tried it yet, but the docs make me think this might work:
Create and configure an AVCaptureDevice representing the camera
Through the AVCaptureSession, capture the AVCaptureStillImageOutput
From the AVCaptureStillImageOutput object check the Exif properties for kCGImagePropertyExifSubjectDistance
Love to hear if anyone has been able to use a methodology like this to be able to make accurate (less than 1 foot) distance measurements.

Is there a View Controller to show thumbnails like the Photos app?

I am looking to replicate the image gallery view that shows thumbnails, like in the photos app on the iPhone.
Is there a view controller or any examples that anyone can provide to replicate this?
There isn't one provided by Apple. I would recommend looking at Three20. It has a few things with look a lot like the Photos app.
Another option is AQGridView.
Take a look at the video of Session 104 from the WWDC 2010. It's basically a 40 minute tutorial on how to do the photo app.
Bear in mind that allowing users to zoom will greatly increase the space required. If you use CATiledLayers, that is, which, depending on your desired zoom level, you should consider doing.
Oh, and there is source code ;)
What they don't tell you is how they did their tiling. I found that you can
a) download ready-made tiles from the server with the app or with a content update (you can use ImageMagick's crop tileWidthXtileHeight - e.g. crop 100x100 - to do the tiling). This has the disadvantage of large downloads.
b) download ready-made tiles from the server as needed (may lead to lags in your app, but then MKMapView does it quite nicely, doesn't it?)
c) tile on the phone as needed (here you can also consider caching the results, although that will likely mean you have to check space left on the device)
I've recently given enormego's PhotoViewer a try. It's easy to use, and it's much more focused than the Three20 project. (Which I also use and like a lot.)