emailconfirmed
174
edits
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
=== Quick and dirty Euglena tracking using OpenCV, Syphon, and OSC. === | === Quick and dirty Euglena tracking using OpenCV, Syphon, and OSC. === | ||
Sources at GitHub: https://github.com/lscherff/biogames/tree/master/TrackEuglenaSyphonOSC | |||
== | === Threshold based Euglena detection === | ||
<source lang="java"> | <source lang="java"> | ||
opencv.loadImage(cam); | opencv.loadImage(cam); | ||
| Line 10: | Line 10: | ||
opencv.gray(); | opencv.gray(); | ||
opencv.invert(); | opencv.invert(); | ||
opencv.erode(); | opencv.erode(); | ||
opencv.dilate(); | opencv.dilate(); | ||
threshold = int(map(mouseX,0,width,0,255)); | |||
opencv.threshold(threshold); | opencv.threshold(threshold); | ||