Log in or register to post comments

replace webcam with static scene

January 18, 2015 - 6:01am #1

Hi,

I would like to replace the webcam video that you see on the screen with a static scene or texture as background, while the target image is still being detectable.

So for example, imagine you bring your target image to the camera, then suddenly the webcam video output changes to a different scene while you still have your target image on screen.

So basically I would like to have a background image instead of the live webcam feed.

Is this possible?

replace webcam with static scene

January 20, 2015 - 12:27pm #2

You can turn off the video background using the following:

// Ask the renderer to stop drawing the videobackground.
QCARRenderer.Instance.DrawVideoBackground = false;

You can see the disabled background effect in the BackgroundTextureAccess sample app if you comment the following line in the UpdateBehaviour() method of the VideoTextureBehaviour.cs script:

//CreateAndSetVideoTexture();

 

Log in or register to post comments