1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 08:44:11 +08:00

text: fix build on windows

avoid broken min/max macros from tesseract headers
This commit is contained in:
Alexander Alekhin
2019-04-11 17:28:06 +03:00
parent f26c98365d
commit 429418ebea
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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