mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
text: fix build on windows
avoid broken min/max macros from tesseract headers
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user