Creating software mirrors in processing

I am trying to create software mirrors in processing but the moment i am trying to scale down my video beyond size(320,240) I am getting error

import processing.video.*;

Capture video;
int vScale=8;
int cols,rows;


void setup(){
  size(640,480);
  cols=width/vScale;
 rows=height/vScale;
  video=new Capture(this,cols,rows);
  video.start();  
}

error in the console:
the requested resolution of 80x60 is not supported by the selected capture device

is thr a way to qo around this
plz advice

1 Like

Your Capture object is used to interact with your camera.
Your camera might not support certain resolutions.
If you wish to “scale down” your resolution, don’t tell the camera to do it!
Instead, take the full-sized image it gives you and draw it scaled down yourself. You can use scale() to do this.

1 Like