Ok so I've just gotten started in processing and I'm working on a project with motion tracking. I was looking into OpenCV however I can't even seem to get the basics of the program started. My coding knowledge is limited but I'm hoping someone on here has had some experience with this.
I keep getting this error when I try to run the following code :
the red text is the line that is highlighted for the error. Any help is appreciated. Or if you can point me towards a "better" library that I can use for a draw program that draws with motion rather than the mouse. Cheers
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
alright so I'm new to processing. I'm working on a project that is going to require some motion tracking or blob tracking. basically I have a drawing function just drawing text randomly using the mouse. what I want is to be able to use tracking to draw with my hand or body etc. In experience what is the best library available to do such a thing? here is the code I'm using. It's just a beginning sketch I'm using in order to figure out this tracking.
void setup() { size(1280, 480); background(0); }
void draw() { if (mousePressed) { fill(0);
} else{ fill(random(255),random(255),random(255),(255)); int cCode = int(random(97, 122)); char c = char(cCode); text(c, mouseX, mouseY); textSize(60); } }