Starting the Web Camera
in
Contributed Library Questions
•
1 year ago
I am trying to make an application which will start the web camera. This is a part of a whole application for robot controlling.
The code which I use to start the web camera is
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
}
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
}
This is giving an error : UnsatisfiedLinkError:hypermedia.video.OpenCV.capture(II)V
I am using Processing 2.0a4 on Windows 7 64 Bit.
The Open CV library CV01 is installed in C:\Users\Subhendu\Documents\Processing\libraries\OpenCV\library
The Processing Library is in C:\Users\Subhendu\Documents\Processing\libraries\ControlP5\library
Please Help
1