Commit 429418eb authored by Alexander Alekhin's avatar Alexander Alekhin

text: fix build on windows

avoid broken min/max macros from tesseract headers
parent f26c9836
...@@ -48,6 +48,14 @@ ...@@ -48,6 +48,14 @@
#include <fstream> #include <fstream>
#include <queue> #include <queue>
#ifdef HAVE_TESSERACT
#if !defined(USE_STD_NAMESPACE)
#define USE_STD_NAMESPACE
#endif
#include <tesseract/baseapi.h>
#include <tesseract/resultiterator.h>
#endif
namespace cv namespace cv
{ {
namespace text namespace text
......
...@@ -47,12 +47,4 @@ ...@@ -47,12 +47,4 @@
#include "text_config.hpp" #include "text_config.hpp"
#ifdef HAVE_TESSERACT
#if !defined(USE_STD_NAMESPACE)
#define USE_STD_NAMESPACE
#endif
#include <tesseract/baseapi.h>
#include <tesseract/resultiterator.h>
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment