Compare commits
1 Commits
b10e99aeac
...
f26d5a6c38
| Author | SHA1 | Date | |
|---|---|---|---|
| f26d5a6c38 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,9 +13,7 @@ void ofApp::setup(){
|
|||||||
grayVideo.allocate(VIDEO_WIDTH, VIDEO_HEIGHT);
|
grayVideo.allocate(VIDEO_WIDTH, VIDEO_HEIGHT);
|
||||||
|
|
||||||
learnBackground = true;
|
learnBackground = true;
|
||||||
|
threshhold = 80;
|
||||||
gui.setup("Parameter");
|
|
||||||
gui.add(threshhold.set("Threshhold", 80, 0, 255));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
@ -46,7 +44,6 @@ void ofApp::update(){
|
|||||||
|
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
void ofApp::draw(){
|
void ofApp::draw(){
|
||||||
|
|
||||||
ofSetHexColor(0xffffff);
|
ofSetHexColor(0xffffff);
|
||||||
colorVideo.draw(20, 20);
|
colorVideo.draw(20, 20);
|
||||||
grayVideo.draw(40 + VIDEO_WIDTH, 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);
|
contourFinder.blobs[i].boundingRect.getCenter().y + 60 + VIDEO_HEIGHT + VIDEO_HEIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
gui.draw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "ofMain.h"
|
#include "ofMain.h"
|
||||||
#include "ofxOpenCv.h"
|
#include "ofxOpenCv.h"
|
||||||
#include "ofxGui.h"
|
|
||||||
|
|
||||||
class ofApp : public ofBaseApp{
|
class ofApp : public ofBaseApp{
|
||||||
|
|
||||||
@ -35,8 +34,5 @@ class ofApp : public ofBaseApp{
|
|||||||
ofxCvContourFinder contourFinder;
|
ofxCvContourFinder contourFinder;
|
||||||
|
|
||||||
bool learnBackground;
|
bool learnBackground;
|
||||||
|
int threshhold;
|
||||||
ofxPanel gui;
|
|
||||||
|
|
||||||
ofParameter<int> threshhold;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user