code: public static Webcam openDefault( int desiredWidth , int desiredHeight) {
  		Webcam webcam = Webcam.getDefault();
  
  		// Webcam doesn't list all available resolutions. Just pass in a custom
  		// resolution and hope it works
  		adjustResolution(webcam,desiredWidth,desiredHeight);
  
  		webcam.open();
  		return webcam;
  	}
docs: Opens the default camera while adjusting its resolution