Hi!
I'm trying to do a sketch which it take a photo, but an image has to appear over the webcam video.
For the moment, my code is this:
- import processing.video.*;
- Capture video;
- PImage matriz;
- void setup(){
- size(1024, 576, P2D);
- matriz = loadImage("Matriz.png");
- video = new Capture(this, width, height);
- video.start();
- }
- void draw(){
- video.read();
- scale(-1,1); //Gira el video para que sea como un espejo
- image(video, -width, 0);
- image(matriz, 0, 0);
- }
Con someone help me to put the image "Matriz.png" over the video?
Thanks a lot!!!
Matiszz