Permalink
Browse files

Move saved image to tmp directory

  • Loading branch information...
1 parent 039da24 commit 433cd5cccfcc3943bf943487094073bdb6146daf @jadonk committed Jan 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 stache.cpp
View
2 stache.cpp
@@ -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);

0 comments on commit 433cd5c

Please sign in to comment.