Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
a30fb44d
Commit
a30fb44d
authored
Nov 20, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1447 from sturkmen72:optional_dependencies
parents
ccfca156
90555dbd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
11 deletions
+46
-11
CMakeLists.txt
modules/datasets/CMakeLists.txt
+1
-1
tr_chars_benchmark.cpp
modules/datasets/samples/tr_chars_benchmark.cpp
+15
-2
tr_icdar_benchmark.cpp
modules/datasets/samples/tr_icdar_benchmark.cpp
+15
-4
tr_svt_benchmark.cpp
modules/datasets/samples/tr_svt_benchmark.cpp
+15
-4
No files found.
modules/datasets/CMakeLists.txt
View file @
a30fb44d
set
(
the_description
"datasets framework"
)
ocv_define_module
(
datasets opencv_core opencv_imgcodecs opencv_ml opencv_flann opencv_text WRAP python
)
ocv_define_module
(
datasets opencv_core opencv_imgcodecs opencv_ml opencv_flann
OPTIONAL
opencv_text WRAP python
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4267
)
# flann, Win64
modules/datasets/samples/tr_chars_benchmark.cpp
View file @
a30fb44d
...
...
@@ -39,10 +39,13 @@
//
//M*/
#include "opencv2/datasets/tr_chars.hpp"
#include <iostream>
#include <opencv2/opencv_modules.hpp>
#i
nclude <opencv2/core.hpp>
#i
fdef HAVE_OPENCV_TEXT
#include "opencv2/datasets/tr_chars.hpp"
#include <opencv2/core.hpp>
#include "opencv2/text.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
...
...
@@ -127,3 +130,13 @@ int main(int argc, char *argv[])
return
0
;
}
#else
int
main
()
{
std
::
cerr
<<
"OpenCV was built without text module"
<<
std
::
endl
;
return
0
;
}
#endif // HAVE_OPENCV_TEXT
modules/datasets/samples/tr_icdar_benchmark.cpp
View file @
a30fb44d
...
...
@@ -39,10 +39,13 @@
//
//M*/
#include "opencv2/datasets/tr_icdar.hpp"
#include <iostream>
#include <opencv2/opencv_modules.hpp>
#i
nclude <opencv2/core.hpp>
#i
fdef HAVE_OPENCV_TEXT
#include "opencv2/datasets/tr_icdar.hpp"
#include <opencv2/core.hpp>
#include "opencv2/text.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
...
...
@@ -50,8 +53,6 @@
#include <cstdio>
#include <cstdlib> // atoi
#include <iostream>
#include <string>
#include <vector>
...
...
@@ -509,3 +510,13 @@ int main(int argc, char *argv[])
return
0
;
}
#else
int
main
()
{
std
::
cerr
<<
"OpenCV was built without text module"
<<
std
::
endl
;
return
0
;
}
#endif // HAVE_OPENCV_TEXT
modules/datasets/samples/tr_svt_benchmark.cpp
View file @
a30fb44d
...
...
@@ -39,10 +39,13 @@
//
//M*/
#include "opencv2/datasets/tr_svt.hpp"
#include <iostream>
#include <opencv2/opencv_modules.hpp>
#i
nclude <opencv2/core.hpp>
#i
fdef HAVE_OPENCV_TEXT
#include "opencv2/datasets/tr_svt.hpp"
#include <opencv2/core.hpp>
#include "opencv2/text.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
...
...
@@ -50,8 +53,6 @@
#include <cstdio>
#include <cstdlib> // atoi
#include <iostream>
#include <string>
#include <vector>
...
...
@@ -309,3 +310,13 @@ int main(int argc, char *argv[])
return
0
;
}
#else
int
main
()
{
std
::
cerr
<<
"OpenCV was built without text module"
<<
std
::
endl
;
return
0
;
}
#endif // HAVE_OPENCV_TEXT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment