330
edits
Line 28: | Line 28: | ||
[[File:codeProcessing1.jpg]] | [[File:codeProcessing1.jpg]] | ||
<source lang="Java" line start= "32"> | <source lang="Java" line start= "32"> | ||
Line 36: | Line 37: | ||
void captureEvent(Capture cam) | void captureEvent(Capture cam) | ||
{ | { | ||
cam.read(); | cam.read(); // to start the webcam | ||
newFrame = true; | newFrame = true; // keep grabbing the new frames | ||
} | } | ||
Line 52: | Line 53: | ||
drawBlobsAndEdges(true,true); | drawBlobsAndEdges(true,true); | ||
} | } | ||
count = theBlobDetection.getBlobNb(); | count = theBlobDetection.getBlobNb(); // get the numbers of blobs captured | ||
println(count); | println(count); // print out the numbers in Processing console | ||
} | } | ||
</source> | </source> |
edits