Created
May 3, 2019 01:56
-
-
Save QuRyu/1888ad34c7db32b0f55d6bdd9f6a404c to your computer and use it in GitHub Desktop.
iTerm2 bug related to OpenCV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
int main(int argc, char *argv[]) { | |
// start video loop | |
cv::VideoCapture *capdev; | |
// open the video device | |
capdev = new cv::VideoCapture(0); | |
if( !capdev->isOpened() ) { | |
printf("Unable to open video device\n"); | |
return(-1); | |
} | |
delete capdev; | |
return(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment