Skip to content

Instantly share code, notes, and snippets.

@QiMata
Created July 9, 2018 17:55
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 QiMata/9e05b89e8edf462cb9769e32326020c1 to your computer and use it in GitHub Desktop.
Save QiMata/9e05b89e8edf462cb9769e32326020c1 to your computer and use it in GitHub Desktop.
Main file for open cv write up
#include <opencv2/opencv.hpp>
int main( int argc, char** argv )
{
VideoCapture cap;
if(!cap.open(0))
return 0;
Mat frame;
cap >> frame;
//Do something with the frame
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment