330
edits
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
'''And here is the github link for my full code:''' <https://github.com/ConnorFk/DBL_VisitorsCount> | '''And here is the github link for my full code:''' <https://github.com/ConnorFk/DBL_VisitorsCount> | ||
<source lang="Java" line start= "17"> | <source lang="Java" line start= "17"> | ||
Line 28: | Line 29: | ||
[[File:codeProcessing1.jpg]] | [[File:codeProcessing1.jpg]] | ||
<source lang="Java" line start= "32"> | <source lang="Java" line start= "32"> | ||
Line 36: | Line 38: | ||
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 54: | ||
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