Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Question regarding the camery usage with images...
Started by d.mach Aug 05 2014 01:11 AM

4 replies to this topic
camera capture screenshot
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 881 posts
  • Corona SDK

I wonder if ti is possible to use the decice camera (iPhone and iPad) in combination with a masked images, like for example I want to let people use the camera to make fotos of their heads, so they can fit on an avatar character graphic. Now it would be nice to show the avatar graphic and it's head as a masked image where the people can take their foto while seeing how the result will look like.

 

I hope this makes sense? ;)

 

I didn't find anything on how this is possible. I just know a lot of apps out there are doing this kind of stuff and it would be nice to do this with corona.

 

Best,

 

Daniela

 



[TOPIC: post.html]
#2

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi Daniela,

I think you've discovered the camera feed feature, correct?

 

Brent



[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 881 posts
  • Corona SDK

Thx Brent! Yes, I looked a little bit more in the forum for possible solutions.

I found this other forum topic regarding the usage of the camera with some code in it which was very helpful and I'm playing around with it right now :) I can do all the things I asked about, but only one thing is not working: How can I access the front camera to take a photograph of my face while seeing the result on the screen in real time? Is there a way to switch between the front and back camera somehow?

 

Best,

 

Daniela

 



[TOPIC: post.html]
#4

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi Daniela,

Yes, you can switch to the front camera by setting a "display.setDefault()" flag, as outlined here under "Camera Source":

 

http://docs.coronalabs.com/api/library/display/setDefault.html#camera-source

 

Also note the example of this shown in the "Examples" section on that same page.

 

Have fun!

Brent



[TOPIC: post.html]
#5

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 881 posts
  • Corona SDK

Hi Daniela,

Yes, you can switch to the front camera by setting a "display.setDefault()" flag, as outlined here under "Camera Source":

 

http://docs.coronalabs.com/api/library/display/setDefault.html#camera-source

 

Also note the example of this shown in the "Examples" section on that same page.

 

Have fun!

Brent

That's really awesome!!! Thx again Brent (for the third time ;) )

Now I can do EVERYTHING I wanted. :)




[topic_controls]
[/topic_controls]