# OPENCV

Name | image()
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 | Return the current (or specified) OpenCV image
Syntax | `image(); image(type);`
Parameters |
type | int : the type of the image: SOURCE, BUFFER, MEMORY
Return | PImage
Usage | Application
Related |