How to insert smaller images over bigger (webcam frames, realtime stream)?

asked 2016-08-10 09:31:56 -0600

qxzw gravatar image

For example, fake mustache, glasses, funny hats... I can detect faces and eyes etc in the frame and figure out location for placement, scaling etc, but how to actually 'draw', or put it on the frame?

edit retag flag offensive close merge delete

Comments

Ah thats fairly simple. You will need the image, a mask and then overlay both images. The adding images tutorial will be a good start.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-08-11 03:15:22 -0600 )edit

How to handle .png files wwith built in transparency?

qxzw gravatar imageqxzw ( 2016-08-11 09:24:46 -0600 )edit

Please put in some effort, the first google link will tell you that exactly ...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-08-12 03:17:02 -0600 )edit