void setup() { #ifndef INSTALL useSharedData(); #endif loadSettings(); tracker.setup(); tracker.setHaarMinSize(175); tracker.setRescale(.25); tracker.setIterations(3); tracker.setTolerance(2); tracker.setClamp(3); tracker.setAttempts(4); #ifdef INSTALL cam.setup(camWidth, camHeight, 30); #else cam.initGrabber(camWidth, camHeight, false); #endif if(rotate) { data.setup(camHeight, camWidth, binSize); } else { data.setup(camWidth, camHeight, binSize); } loadMetadata(data); presence.setDelay(0, 4); presenceFade.setLength(4, .1); presenceFade.start(); shader.load("shaders/colorbalance.vs", "shaders/colorbalance.fs"); ofDisableAntiAliasing(); glPointSize(2); ofSetLineWidth(3); ofSetLogLevel(OF_LOG_VERBOSE); }
void setup() { ofSetLogLevel(OF_LOG_VERBOSE); cam.setup(1920, 1080, 30); }