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

text: fix build on windows

avoid broken min/max macros from tesseract headers
parent f26c9836
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -48,6 +48,14 @@
#include <fstream>
#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 text
+0 −8
Original line number Diff line number Diff line
@@ -47,12 +47,4 @@

#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