Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »



  • Use this template for creating your Moving Poster
  • Take care that your work appears correctly at different resolutions
  • Avoid editing the OpenCV and setupScreen files
  • You may need to adjust the lighting situation for the face tracking to work correctly

Tips for optimising Performance: 

  • Printing to the console is quite slow. Be sure to comment any print() and println() cals in your code before presenting.
  • Optimise any graphic and videos so they are no bigger that absolutely necessary. 
  • Resizing images in real time is quite slow. You can speed this up by resizing any images at the program start. See the example below. 


Resizing images
PImage bg;

void setup() {
  size(640, 360);

  bg = loadImage("image.jpg");
  bg.resize(width,height); // we rescale the image once here, instead of in the draw loop
}

void draw() {
  image(bg, 0, 0);
  // this is much faster than image.(bg, 0,0, width, height) which would rescales the graphics every frame
}