From 9f44d89ab7bfd38a1e31217efa5e247166bc2774 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Tue, 4 Jul 2017 00:49:45 +0000 Subject: [PATCH] 16 - 18 --- README.md | 3 ++- example_16-01.cpp | 6 ++++-- example_17-01.cpp | 2 +- example_17-02.cpp | 6 ++++-- example_18-01.cpp | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 166b7fb..a005915 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ This is the example code that accompanies Learning OpenCV 3 by Adrian Kaehler an * ~~In progress June 20, 2017~~ * ~~In progress June 22, 2017~~ * ~~In progress July 02, 2017~~ +* In progress July 03, 2017 **To do:** * ~~Chapter 15~~ @@ -20,7 +21,7 @@ This is the example code that accompanies Learning OpenCV 3 by Adrian Kaehler an * ~~Chapter 22~~ Checking Chapters -~~2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15~~ 16 17 18 19 20 ~~21 22 23~~ +~~2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,~~ 19, 20, ~~21 22 23~~ * Submit associated errata for ~~15 16~~ 17 18 19 20 21 22 * Throw in some bonus material diff --git a/example_16-01.cpp b/example_16-01.cpp index 316e807..eb2f80b 100644 --- a/example_16-01.cpp +++ b/example_16-01.cpp @@ -8,8 +8,10 @@ using namespace std; static const int MAX_CORNERS = 1000; void help( char** argv ) { - cout << "Call: " <\n" - << "to run this demo\n"; + cerr << "\nExample 17-2: Farnback optical flow example\n" + << "Use:\n" << argv[0] << " \n" + << "Example:\n" << argv[0] << " ../test.avi\n" + << std::endl; exit(1); } diff --git a/example_18-01.cpp b/example_18-01.cpp index 5194d89..c311568 100644 --- a/example_18-01.cpp +++ b/example_18-01.cpp @@ -14,7 +14,7 @@ void help(char **argv) { // todo rewrite this << " reading and collecting the requested number of views,\n" << " and calibrating the camera\n\n" << "Call:\n" << argv[0] << " \n\n" - << "Example:\n./example_18-01 9 6 15 500 0.5\n" + << "Example:\n" << argv[0] << " 9 6 15 500 0.5\n" << "-- to use the checkerboard9x6.png provided\n\n" << " * First it reads in checker boards and calibrates itself\n" << " * Then it saves and reloads the calibration matricies\n"