Is It Possible To Add Images In Front Of Device's Camera?

Is it possible to allow photos to be taken with images/illustrations on the screen? E.g. let’s say a heart shape on the screen and the user takes a photo around the heart shape image?

Because when media.show (media.Camera) is executed, the device camera seems to cover everything. is it possible to either place an image above it or mask the camera, like the maskFile of scrollView?

– i tried:

    local function takephoto()

        media.show (media.Camera,handlephoto)

        display.newImageRect(group,“heart.png”,480,320) 

    end    

– but the png file just appears at the back. Also tried masking the device’s camera. but it seems rather foolish. ----- doesn’t work.

    local function takephoto()

        local photoapp= media.show (media.Camera,handlephoto)

        local scrollView=widget.newScrollVew

        {left=0, top=0, width= 460, height =300, scrollWidth=480, scrollHeight=320,

        maskFile=“maskfile.png”

        }

        scrollView:insert(photoapp)

    end            

    

– are that other methods to try? or is it not exactly possible?

Hi @lynette2internet,

Currently this isn’t possible in Corona Starter or Pro (but it should be possible in Enterprise). That being said, this feature has been requested by others and we’ll investigate it down the road. This essentially constitutes “augmented reality” and isn’t yet supported. The camera view resides on top of Corona’s OpenGL rendering hierarchy, so you can’t put Corona display objects “on top” of it. Sorry for the inconvenience.

Sincerely,

Brent Sorrentino

while corona may have some limitations, its simpler and shorten ways and the recently free starter kit are really great for beginners like me. :slight_smile: so thanks for your reply…

hi Brent, does Enterprise offer access to the front camera on iPhones? THANKS!

Hi @lynette2internet,

Currently this isn’t possible in Corona Starter or Pro (but it should be possible in Enterprise). That being said, this feature has been requested by others and we’ll investigate it down the road. This essentially constitutes “augmented reality” and isn’t yet supported. The camera view resides on top of Corona’s OpenGL rendering hierarchy, so you can’t put Corona display objects “on top” of it. Sorry for the inconvenience.

Sincerely,

Brent Sorrentino

while corona may have some limitations, its simpler and shorten ways and the recently free starter kit are really great for beginners like me. :slight_smile: so thanks for your reply…

hi Brent, does Enterprise offer access to the front camera on iPhones? THANKS!