Skip to content

Instantly share code, notes, and snippets.

@QuRyu
Created May 3, 2019 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuRyu/1888ad34c7db32b0f55d6bdd9f6a404c to your computer and use it in GitHub Desktop.
Save QuRyu/1888ad34c7db32b0f55d6bdd9f6a404c to your computer and use it in GitHub Desktop.
iTerm2 bug related to OpenCV
#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