Can anyone tell me how to disable buttons and bangs in Processing and again to enable them.
For example suppose there are three bangs . If I choose bang one ,bang one and two will be disabled. On choosing bang 3 , bang two will be enabled again.
Please help. I am stuck here with my autonomous robot.
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
}
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