| Name | capture() | 
			
				| Examples |  import hypermedia.video.*;
OpenCV opencv;
void setup() {
    size( 320, 240 );
    opencv = new OpenCV( this );
    opencv.capture( width, height );  // open video stream
}
void draw() {
    opencv.read();                   // grab frame from camera
    image( opencv.image(), 0, 0 );   // and display image
}
 | 
			
				| Description | Allocate and initialize resources for reading a video stream from a camera. | 
			
				| Syntax | capture(width, height);capture(width, height, index);
 
 | 
			
			
				| Parameters | 
						
						
							| width | int : the width of the video stream image |  
							| height | int : the height of the video stream image |  
							| index | int : the index of the camera to be used |  | 
		
			
			
				| Return | None | 
		
			
				| Usage | Application | 
			
				| Related | movie() 
 |