Skip to content

Commit 132130e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 8a9f2a0 + a747004 commit 132130e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

example-inception3/src/example-inception3.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ofApp : public ofBaseApp {
2222
msa::tf::ImageClassifier classifier;
2323

2424
// for webcam input
25-
shared_ptr<ofVideoGrabber> video_grabber;
25+
// shared_ptr<ofVideoGrabber> video_grabber;
2626

2727
// folder of images to classify
2828
ofDirectory image_dir;
@@ -93,16 +93,16 @@ class ofApp : public ofBaseApp {
9393
//--------------------------------------------------------------
9494
void update() {
9595
// if video_grabber active,
96-
if(video_grabber) {
97-
// grab frame
98-
video_grabber->update();
99-
100-
if(video_grabber->isFrameNew()) {
101-
// send to classification if keypressed
102-
if(ofGetKeyPressed(' '))
103-
classify(video_grabber->getPixels());
104-
}
105-
}
96+
// if(video_grabber) {
97+
// // grab frame
98+
// video_grabber->update();
99+
100+
// if(video_grabber->isFrameNew()) {
101+
// // send to classification if keypressed
102+
// if(ofGetKeyPressed(' '))
103+
// classify(video_grabber->getPixels());
104+
// }
105+
// }
106106
}
107107

108108

@@ -112,11 +112,11 @@ class ofApp : public ofBaseApp {
112112
ofSetColor(255);
113113

114114
// if video grabber active, draw in bottom left corner
115-
if(video_grabber) {
116-
int vy = ofGetHeight() - 240;
117-
ofDrawBitmapString("Press SPACE to classify", 10, vy - 10);
118-
video_grabber->draw(0, vy, 320, 240);
119-
}
115+
// if(video_grabber) {
116+
// int vy = ofGetHeight() - 240;
117+
// ofDrawBitmapString("Press SPACE to classify", 10, vy - 10);
118+
// video_grabber->draw(0, vy, 320, 240);
119+
// }
120120

121121
float x = 0;
122122

@@ -174,11 +174,11 @@ class ofApp : public ofBaseApp {
174174
switch(key) {
175175

176176
case 'v':
177-
if(video_grabber) video_grabber = NULL;
178-
else {
179-
video_grabber = make_shared<ofVideoGrabber>();
180-
video_grabber->setup(320, 240);
181-
}
177+
// if(video_grabber) video_grabber = NULL;
178+
// else {
179+
// video_grabber = make_shared<ofVideoGrabber>();
180+
// video_grabber->setup(320, 240);
181+
// }
182182
break;
183183

184184
case 'l':

0 commit comments

Comments
 (0)