Camera

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
TheBigDuck
Posts: 23
Joined: Tue Nov 11, 2008 5:52 pm
Contact:

Camera

Post by TheBigDuck » Wed Mar 07, 2012 4:17 pm

I have a very simple feature request.

Be able to take a picture within my mobile app so that I can then do what I wish with the image.

The moment this feature is available, please let me know.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Camera

Post by Klaus » Wed Mar 07, 2012 4:21 pm

Hi TheBigDuck,

it is available... NOW! :D

Well this is already available for at least a couple of versions:
-> iPhonePickPhoto
-> mobilePickPhoto

Check the "iOS/Android Release Notes" Menu: Help!


Best

Klaus

TheBigDuck
Posts: 23
Joined: Tue Nov 11, 2008 5:52 pm
Contact:

Re: Camera

Post by TheBigDuck » Wed Mar 07, 2012 4:35 pm

Hi Klaus,

Yes, but this requires the user to take pictures with the camera (using the iOS/Android app) and THEN use pickPhoto to select from gallery.

I want a BUTTON that my user can press that TAKES the PICTURE.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Camera

Post by Klaus » Wed Mar 07, 2012 4:53 pm

Hi Heinrich,

hmm, take a picture from WHERE?
"rear camera", "fron camera" or the generic "camera" keyword?

Sorry, I'm not getting it 8)


Best

Klaus

TheBigDuck
Posts: 23
Joined: Tue Nov 11, 2008 5:52 pm
Contact:

Re: Camera

Post by TheBigDuck » Wed Mar 07, 2012 5:04 pm

Sorry Klaus,

Here is the work flow.

1. Customer launches app.
2. App has a button that takes a picture from the REAR (facing AWAY from the user) camera.
3. The image is then sent to a remote server.

Pretty simple.

I hope I made myself clear, and I sincerely thank you for your time in answering my questions.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Camera

Post by Klaus » Wed Mar 07, 2012 5:14 pm

Hi Heinrich,

AHA! :D

OK, here some pseudocode for this:

Code: Select all

on mouseup

   ## We will work BEHIND the curtains :-)
  lock screen

  ## 1. take picture
  iPhonePickPhoto "rear camera", 800,800

  ## 2. "export" image to a Variable as JPEG or whatever...
  export last image to tImageData as JPEG

  ## 3. Put on server
  put tImageData into url("ftp:// your FTP Server here...")

  ## OPTIONAL:
  ## check if upload was successfull and delete image in that case:
  if the result = empty then
    delete last image
  else
   ## ERROR of some kind, alert user or developer:
   answer "Error uploading! & CR & the result
 end if
end mouseup
I do not have an iOS license, so I cannot test this, but you get the picture :D


Best

Klaus

TheBigDuck
Posts: 23
Joined: Tue Nov 11, 2008 5:52 pm
Contact:

Re: Camera

Post by TheBigDuck » Wed Mar 07, 2012 5:19 pm

Vielen Danke!

When I get back from my vacation, I will start right away!

alles beste,

Heinrich

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Camera

Post by Klaus » Wed Mar 07, 2012 5:25 pm

Hi Heinrich,

gern geschehen :D
Enjoy your holiday!


Best

Klaus

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Camera

Post by sturgis » Wed Mar 07, 2012 5:27 pm

Funny, even if unintentional.
Klaus wrote: I do not have an iOS license, so I cannot test this, but you get the picture

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Camera

Post by mwieder » Wed Mar 07, 2012 5:56 pm

:P

yoyolau
Posts: 2
Joined: Tue Mar 06, 2012 4:15 am
Contact:

Re: Camera

Post by yoyolau » Fri Mar 09, 2012 6:31 am

:mrgreen: V!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Camera

Post by Klaus » Fri Mar 09, 2012 12:27 pm

:D :D :D

NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Re: Camera

Post by NigelS » Wed Mar 21, 2012 6:19 am

Snap... gotit. :wink:

jr180180
Posts: 12
Joined: Fri Apr 20, 2012 8:59 am

Re: Camera

Post by jr180180 » Fri Jul 13, 2012 10:41 am

Love it, Klaus! Thanks for that!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Camera

Post by monte » Mon Jul 23, 2012 1:54 pm

All humor aside I don't think locking the screen will work. Do you want no video preview at all? It's possible that I could support this with my mergAV external. You should be able to create the control but not show it.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply