mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 11:21:39 +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 <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 @@
|
|||||||
|
|
||||||
#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
|
||||||
|
Reference in New Issue
Block a user