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