35 #include "DkPluginInterface.h" 36 #include "DkBatchInfo.h" 55 SkewInfo(
const QString&
id = QString(),
const QString& filePath = QString());
57 void setProperty(
const QString& p);
58 QString property()
const;
60 void setSkew(
const double skew);
63 void setSkewGt(
const double skew);
64 double skewGt()
const;
75 Q_INTERFACES(nmc::DkBatchPluginInterface)
76 Q_PLUGIN_METADATA(IID
"com.nomacs.ImageLounge.SkewPlugin/5.1" FILE
"SkewPlugin.json")
82 QString id()
const override;
83 QImage image()
const override;
85 QList<QAction*> createActions(QWidget* parent)
override;
86 QList<QAction*> pluginActions()
const override;
87 QSharedPointer<nmc::DkImageContainer> runPlugin(
89 QSharedPointer<nmc::DkImageContainer> imgC,
90 const nmc::DkSaveInfo& saveInfo,
91 QSharedPointer<nmc::DkBatchInfo>& info)
const override;
93 void preLoadPlugin()
const override;
94 void postLoadPlugin(
const QVector<QSharedPointer<nmc::DkBatchInfo> >& batchInfo)
const override;
96 void setFilePath(QString fp);
97 QString filePath()
const;
118 double mMinAngle = -CV_PI/2.0;
119 double mMaxAngle = CV_PI/2.0;
123 void loadSettings(QSettings& settings);
124 void saveSettings(QSettings& settings)
const;
126 void skewNative(QSharedPointer<nmc::DkImageContainer>& imgC, QSharedPointer<SkewInfo>& skewInfo)
const;
127 void skewDoc(QSharedPointer<nmc::DkImageContainer>& imgC, QSharedPointer<SkewInfo>& skewInfo)
const;
128 void skewTextLine(QSharedPointer<nmc::DkImageContainer>& imgC, QSharedPointer<SkewInfo>& skewInfo,
const QString& runId)
const;
129 void parseGT(
const QString& fileName,
double skewAngle, QSharedPointer<SkewInfo>& skewInfo)
const;
Definition: SkewPlugin.h:100
QStringList mMenuNames
Definition: SkewPlugin.h:112
QList< QAction * > mActions
Definition: SkewPlugin.h:110
Definition: SkewEstimation.h:63
QStringList mRunIDs
Definition: SkewPlugin.h:111
QStringList mMenuStatusTips
Definition: SkewPlugin.h:113
Definition: SkewPlugin.h:52
RunID
Definition: SkewPlugin.h:99
rdf::BaseSkewEstimationConfig mBseConfig
Definition: SkewPlugin.h:116
Definition: SkewPlugin.h:103
Definition: SkewPlugin.h:102
Definition: SkewPlugin.h:101
Definition: BatchTest.cpp:45
Definition: SkewPlugin.h:73
QString mFilePath
Definition: SkewPlugin.h:115