Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move saved image to tmp directory

  • Loading branch information...
commit 433cd5cccfcc3943bf943487094073bdb6146daf 1 parent 039da24
Jason Kridner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  stache.cpp
2  stache.cpp
View
@@ -168,7 +168,7 @@ void detectAndDisplay(Mat frame) {
void saveFrame(Mat frame) {
char filename[20];
IplImage iplFrame = frame;
- sprintf(filename, "captured%03d.jpg", savedFrames);
+ sprintf(filename, "/tmp/captured%03d.jpg", savedFrames);
cvSaveImage(filename, &iplFrame);
fprintf(stdout, "{\"tweet\":\"New BeagleStache captured!\",\"filename\":\"%s\"}\n", filename);
fflush(stdout);
Please sign in to comment.
Something went wrong with that request. Please try again.