forked from opencv/opencv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made samples build independent from nonfree module.
(cherry picked from commit bba8c0b)
- Loading branch information
1 parent
42447a7
commit 966d35a
Showing
18 changed files
with
302 additions
and
111 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,31 @@ | |
* Author: Liu Liu | ||
* [email protected] | ||
*/ | ||
#include "opencv2/objdetect/objdetect.hpp" | ||
#include "opencv2/features2d/features2d.hpp" | ||
#include "opencv2/highgui/highgui.hpp" | ||
#include "opencv2/calib3d/calib3d.hpp" | ||
#include "opencv2/nonfree/nonfree.hpp" | ||
#include "opencv2/imgproc/imgproc_c.h" | ||
#include "opencv2/legacy/legacy.hpp" | ||
#include "opencv2/legacy/compat.hpp" | ||
|
||
#include <iostream> | ||
#include <vector> | ||
|
||
#include "opencv2/opencv_modules.hpp" | ||
#include <stdio.h> | ||
|
||
#ifndef HAVE_OPENCV_NONFREE | ||
|
||
int main(int, char**) | ||
{ | ||
printf("The sample requires nonfree module that is not available in your OpenCV distribution.\n"); | ||
return -1; | ||
} | ||
|
||
#else | ||
|
||
# include "opencv2/objdetect/objdetect.hpp" | ||
# include "opencv2/features2d/features2d.hpp" | ||
# include "opencv2/highgui/highgui.hpp" | ||
# include "opencv2/calib3d/calib3d.hpp" | ||
# include "opencv2/nonfree/nonfree.hpp" | ||
# include "opencv2/imgproc/imgproc_c.h" | ||
# include "opencv2/legacy/legacy.hpp" | ||
# include "opencv2/legacy/compat.hpp" | ||
|
||
# include <vector> | ||
|
||
using namespace std; | ||
static void help() | ||
{ | ||
|
@@ -320,3 +332,5 @@ int main(int argc, char** argv) | |
|
||
return 0; | ||
} | ||
|
||
#endif |
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
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
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
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
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
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
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
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
Oops, something went wrong.