Compare commits

1 Commits
Author SHA1 Message Date
fleischmannma75068 f26d5a6c38 Add ofxGui dependency 2021-05-10 14:07:43 +02:00
12 changed files with 2 additions and 12 deletions

No files matched your search

+1 -7
View File
@@ -13,9 +13,7 @@ void ofApp::setup(){
grayVideo.allocate(VIDEO_WIDTH, VIDEO_HEIGHT);
learnBackground = true;
gui.setup("Parameter");
gui.add(threshhold.set("Threshhold", 80, 0, 255));
threshhold = 80;
}
//--------------------------------------------------------------
@@ -46,7 +44,6 @@ void ofApp::update(){
//--------------------------------------------------------------
void ofApp::draw(){
ofSetHexColor(0xffffff);
colorVideo.draw(20, 20);
grayVideo.draw(40 + VIDEO_WIDTH, 20);
@@ -81,9 +78,6 @@ void ofApp::draw(){
contourFinder.blobs[i].boundingRect.getCenter().y + 60 + VIDEO_HEIGHT + VIDEO_HEIGHT);
}
}
gui.draw();
}
//--------------------------------------------------------------
+1 -5
View File
@@ -2,7 +2,6 @@
#include "ofMain.h"
#include "ofxOpenCv.h"
#include "ofxGui.h"
class ofApp : public ofBaseApp{
@@ -35,8 +34,5 @@ class ofApp : public ofBaseApp{
ofxCvContourFinder contourFinder;
bool learnBackground;
ofxPanel gui;
ofParameter<int> threshhold;
int threshhold;
};