We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Install OpenCV library (Read 2602 times)
Install OpenCV library
Jun 18th, 2010, 8:32am
 
I'm trying to install openCV library. I Download the framework and the OpenCV Processing Library. Place the folder into Documents/Processing/libraries.

When i run this code
Code:

import hypermedia.video.*;        //  Imports the OpenCV library
OpenCV opencv;                    //  Creates a new OpenCV Object

void setup()
{

 size( 320, 240 );

 opencv = new OpenCV( this );    //  Initialises the OpenCV object
 opencv.capture( 320, 240 );     //  Opens a video capture stream

}

void draw()
{

 opencv.read();                  //  Grabs a frame from the camera
 image( opencv.image(), 0, 0 );  //  Displays the image in the OpenCV buffer to the screen

}


I get this error
The package "hypermedia" does not exist. You might be missing a library
Note that release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

I'm using a Mac.

How can i solve this?
Thanks
Page Index Toggle Pages: 1