Skip to content

Commit

Permalink
fixed header
Browse files Browse the repository at this point in the history
  • Loading branch information
garybradski authored Jun 30, 2017
1 parent ea6499a commit 5813354
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions example_08-01.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
// alphablend <imageA> <image B> <x> <y> <width> <height> <alpha> <beta>
// Example 8-1. Unpacking a four-character code to identify a video codec
//
//#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace std;
void help(char** argv ) {
cout << "\n"
<< "Example 8-1. Unpacking a four-character code to identify a video codec"
<< "\nCall:\n"
<< argv[0] <<" <path/video>\n"
<< "For example:\n"
<< argv[0] << " ../tree.avi\n"
<< endl;
}


int main( int argc, char** argv ) {

if (argc != 2) {
help(argv);
return 0;
}

int main(int argc, char** argv) {

cv::VideoCapture cap( argv[1] );

Expand Down

0 comments on commit 5813354

Please sign in to comment.