How would I go about doing this

Hi all, I’ve had an an usual request from a client… I know the technology involved, but I’m not really sure if what I’m hoping to achieve is possible.

I’ve been asked to capture a photo (easy enough)… The app is for capturing a portrait (face), where the user must line their head up with an ‘augmented’ mask, ie; the camera view has a layer on it with a hole where your face goes (I hope you get that, it’s tricky to explain), a bit like one of those fairground stands, where you put your head in.

So first of all, is it possible to overlay images on the camera view?

This is the tough part… When your face is aligned, you execute a screen capture (again, simple enough), BUT, they are asking me to convert the masked area to alpha, so the output image is just the ‘head / face’ and the ‘augmented part’ is trimmed, with the file being saved, presumably, as a transparent PNG.

So, the app doesn’t do much, but what it does do seems quite complex… I thought Bitmap Masking might help, but I really don’t know where to start. If someone can point me to a relevant tutorial (or something like that), I would be eternally grateful.

Thanks

Mark

Hi Mark,

Well, to answer your first question, you can do a “camera feed” on a display object, but with a few restrictions. First, it’s currently for iOS only, and second, it’s a feature restricted to Pro and above.

Now, if you achieved that, you could probably take the captured image and then apply a bitmap mask to it, then capture it again or some such. So it’s a somewhat tall order, but I think it’s possible within the constraints.

Take care,

Brent

Hi Mark,

Well, to answer your first question, you can do a “camera feed” on a display object, but with a few restrictions. First, it’s currently for iOS only, and second, it’s a feature restricted to Pro and above.

Now, if you achieved that, you could probably take the captured image and then apply a bitmap mask to it, then capture it again or some such. So it’s a somewhat tall order, but I think it’s possible within the constraints.

Take care,

Brent