Taking photo without the Apple Tool visible

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Taking photo without the Apple Tool visible

Post by fpierron » Mon Jul 25, 2011 1:55 pm

Hi,

I want to take photo inside my App without launching the Apple camera tools.
I would like to get the camera stream into a rect and then take the photo throught my app and save it inside my App and not into the Apple Camera roll.

Is it possible ? It seems that the iPhonePickPhoto launches the apple camera tool and you cannot take picture without it.

Frédéric

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Taking photo without the Apple Tool visible

Post by Jellicle » Mon Jul 25, 2011 2:00 pm

fpierron wrote:Is it possible ?
You have to use the iPhone camera and Apple's camera software to capture the image, but after that you can do whatever you want with it - save it locally, upload it etc.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Re: Taking photo without the Apple Tool visible

Post by fpierron » Mon Jul 25, 2011 2:40 pm

Yes, I know that, thanks.
Actually, I would like to use the AV framework to get the photo without using the Apple camera control because I need to automate the capture process and the apple camera control needs a human interaction to take a picture.

Frédéric

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Taking photo without the Apple Tool visible

Post by Jellicle » Mon Jul 25, 2011 10:26 pm

Sadly you are out of luck - that's not possible.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

kvn
Posts: 12
Joined: Thu Dec 08, 2011 1:32 am

Re: Taking photo without the Apple Tool visible

Post by kvn » Thu Dec 08, 2011 2:00 am

I do apologize for resurrecting this old thread, but my question is so identical I didn't see a need to re-ask in a new thread.

Since this post was 6 months ago, I was wondering if there have been any advancements in this area? I would also like to use my own custom UI for a particular camera app I have in mind... can this even be achieved by creating custom functions/commands with Obj-C to integrate with LiveCode? Or is it a limitation from Apple's side that does not make such things accessible via LiveCode?

Thanks for the feedback.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Taking photo without the Apple Tool visible

Post by Jellicle » Thu Dec 08, 2011 3:56 am

I'm sure you could write an external that implements your own camera tools - there are many apps that do that on the app store. Some of those apps let you eg. do multiple or timed photos without user intervention, so Apple is cool with that.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

kvn
Posts: 12
Joined: Thu Dec 08, 2011 1:32 am

Re: Taking photo without the Apple Tool visible

Post by kvn » Thu Dec 08, 2011 4:55 am

Hmm... ok, well that's good to know that it is at least possible. Bad news is that I will need to get back into Obj-C for that. My goal is that I need to basically overlay my own custom UI on the camera view.. my app is essentially a camera app, thus without the ability to customize the camera UI, I'm hosed :P

Any idea where I would begin to learn how to do this with externals? I've started with the existing externals videos here, but any further direction would be very helpful. Always a bit challenging and overwhelming when you're getting into something new and trying to find your way :)

Thanks for your feedback.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Taking photo without the Apple Tool visible

Post by Mag » Thu May 09, 2013 11:34 am

I also have this problem as kvn (but for implementing in an Android app), any news about this? Thanks

PS
In Xcode you can use the video recording feature to accomplish this, search for "How to capture video frames from the camera as images using AV Foundation on iOS"

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Taking photo without the Apple Tool visible

Post by Jellicle » Thu May 09, 2013 11:58 am

Since I replied a while back Monte Goulding has released an AV framework external for iOS (mergAV), available from http://mergext.com. It can place a camera view anywhere on the screen and capture video and photographs.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Taking photo without the Apple Tool visible

Post by Mag » Thu May 09, 2013 2:24 pm

Hi Gerry! Thanks to you and kudos (as usual) to Monte!

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Taking photo without the Apple Tool visible

Post by Mag » Thu May 09, 2013 2:35 pm

Oops, just learned that it's only for iOS... Actually I need a solution for Android :(

"mergAV is an iOS external that adds functions and commands related to the AVFoundation framework."

Post Reply