Permalink
Browse files

Final demo updates for CES

* Hopefully final
* Make tweeted image not be mirrored
* Blink on non-200 status back from Twitter
  Note that I've seen some invalid timestamp issues even when the time
  seems good
  • Loading branch information...
1 parent d3b761c commit 0fa1c4ac31ab857ddff557cd12f72d93223b3903 @jadonk committed Jan 7, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −0 stache.cpp
  2. +2 −1 tweetstache.js
View
@@ -167,6 +167,7 @@ void detectAndDisplay(Mat frame) {
void saveFrame(Mat frame) {
char filename[20];
+ flip(frame, frame, 1); // de-mirror-image-ize
IplImage iplFrame = frame;
sprintf(filename, "/tmp/captured%03d.jpg", savedFrames);
cvSaveImage(filename, &iplFrame);
View
@@ -118,7 +118,8 @@ function sendTweet(tweet, photoName) {
function onRequestResponse(response) {
function printStatusCode() {
winston.info(response.statusCode +'\n');
- led.off();
+ if(response.statusCode == 200) led.off();
+ else led.blink();
};
response.setEncoding('utf8');
response.on('data', printChunk);

0 comments on commit 0fa1c4a

Please sign in to comment.