40 #pragma warning(push, 0) // no warnings from includes 45 #ifdef DLL_CORE_EXPORT 46 #define DllCoreExport Q_DECL_EXPORT 48 #define DllCoreExport Q_DECL_IMPORT 59 class SeparatorRegion;
68 virtual QString toString()
const override;
70 void setRemoveWeakTextLines(
bool remove);
71 bool removeWeakTextLines()
const;
73 void setMinSuperPixelsPerBlock(
int minPx);
74 int minSuperixelsPerBlock()
const;
76 void setLocalBlockOrientation(
bool lor);
77 bool localBlockOrientation()
const;
79 void setComputeSeparators(
bool cs);
80 bool computeSeparators()
const;
82 void setClassiferPath(
const QString& cp);
83 QString classifierPath()
const;
87 void load(
const QSettings& settings)
override;
88 void save(QSettings& settings)
const override;
90 bool mRemoveWeakTextLines =
true;
91 int mMinSuperPixelsPerBlock = 15;
92 bool mLocalBlockOrientation =
false;
93 bool mComputeSeparators =
true;
94 QString mClassifierPath =
"";
102 bool isEmpty()
const override;
103 bool compute()
override;
104 QSharedPointer<LayoutAnalysisConfig>
config()
const;
106 cv::Mat draw(
const cv::Mat& img,
const QColor& col = QColor())
const;
107 QString toString()
const override;
109 void setRootRegion(
const QSharedPointer<RootRegion>& region);
112 QVector<SeparatorRegion> stopLines()
const;
115 QSharedPointer<ScaleFactory> scaleFactory()
const;
118 bool checkInput()
const override;
122 QSharedPointer<RootRegion> mRoot;
126 QVector<Line> mStopLines;
127 QSharedPointer<ScaleFactory> mScaleFactory;
130 QVector<Line> createStopLines()
const;
131 bool computeLocalStats(
PixelSet& pixels)
const;
Definition: LayoutAnalysis.h:97
Definition: BaseModule.h:63
#define DllCoreExport
Definition: BaseImageElement.h:43
PixelSet stores and manipulates pixel collections.
Definition: PixelSet.h:172
config
Definition: DependencyCollector.py:271
Definition: LayoutAnalysis.h:63
DllCoreExport bool save(const QImage &img, const QString &savePath, int compression=-1)
Saves the specified QImage img.
Definition: Image.cpp:180
Stores all text blocks. This class is used to group super pixels with respect to layout constrains (e...
Definition: PixelSet.h:346
DllCoreExport QImage load(const QString &path, bool *ok=0)
Definition: Image.cpp:152
This is the base class for all modules. It provides all functions which are implemented by the module...
Definition: BaseModule.h:126
Definition: Algorithms.cpp:45