#include <LayoutPlugin.h>
|
| | LayoutPlugin (QObject *parent=0) |
| |
| | ~LayoutPlugin () |
| |
| QString | id () const override |
| |
| QImage | image () const override |
| |
| QList< QAction * > | createActions (QWidget *parent) override |
| |
| QList< QAction * > | pluginActions () const override |
| |
| QSharedPointer< nmc::DkImageContainer > | runPlugin (const QString &runID, QSharedPointer< nmc::DkImageContainer > imgC, const nmc::DkSaveInfo &saveInfo, QSharedPointer< nmc::DkBatchInfo > &batchInfo) const override |
| |
| virtual void | preLoadPlugin () const override |
| |
| virtual void | postLoadPlugin (const QVector< QSharedPointer< nmc::DkBatchInfo > > &) const override |
| |
| Enumerator |
|---|
| id_layout_draw |
|
| id_layout_xml |
|
| id_text_block |
|
| id_text_block_xml |
|
| id_lines |
|
| id_line_img |
|
| id_layout_collect_features |
|
| id_layout_train |
|
| id_end |
|
| rdm::LayoutPlugin::LayoutPlugin |
( |
QObject * |
parent = 0 | ) |
|
| rdm::LayoutPlugin::~LayoutPlugin |
( |
| ) |
|
| void rdm::LayoutPlugin::collectFeatures |
( |
const cv::Mat & |
src, |
|
|
const rdf::PageXmlParser & |
parser, |
|
|
QSharedPointer< LayoutInfo > & |
layoutInfo |
|
) |
| const |
|
protected |
| cv::Mat rdm::LayoutPlugin::compute |
( |
const cv::Mat & |
src, |
|
|
const rdf::PageXmlParser & |
parser |
|
) |
| const |
|
protected |
| rdf::LineTrace rdm::LayoutPlugin::computeLines |
( |
QSharedPointer< nmc::DkImageContainer > |
imgC | ) |
const |
|
protected |
| cv::Mat rdm::LayoutPlugin::computePageSegmentation |
( |
const cv::Mat & |
src, |
|
|
const rdf::PageXmlParser & |
parser |
|
) |
| const |
|
protected |
| QList< QAction * > rdm::LayoutPlugin::createActions |
( |
QWidget * |
parent | ) |
|
|
override |
| QString rdm::LayoutPlugin::id |
( |
| ) |
const |
|
override |
Returns unique ID for the generated dll
| QImage rdm::LayoutPlugin::image |
( |
| ) |
const |
|
override |
Returns descriptive iamge for every ID
- Parameters
-
| void rdm::LayoutPlugin::init |
( |
| ) |
|
|
protected |
| QList< QAction * > rdm::LayoutPlugin::pluginActions |
( |
| ) |
const |
|
override |
| void rdm::LayoutPlugin::postLoadPlugin |
( |
const QVector< QSharedPointer< nmc::DkBatchInfo > > & |
batchInfo | ) |
const |
|
overridevirtual |
| virtual void rdm::LayoutPlugin::preLoadPlugin |
( |
| ) |
const |
|
inlineoverridevirtual |
| QSharedPointer< nmc::DkImageContainer > rdm::LayoutPlugin::runPlugin |
( |
const QString & |
runID, |
|
|
QSharedPointer< nmc::DkImageContainer > |
imgC, |
|
|
const nmc::DkSaveInfo & |
saveInfo, |
|
|
QSharedPointer< nmc::DkBatchInfo > & |
batchInfo |
|
) |
| const |
|
override |
Main function: runs plugin based on its ID
- Parameters
-
| plugin | ID |
| image | to be processed |
| QList<QAction*> rdm::LayoutPlugin::mActions |
|
protected |
| QStringList rdm::LayoutPlugin::mMenuNames |
|
protected |
| QStringList rdm::LayoutPlugin::mMenuStatusTips |
|
protected |
| QStringList rdm::LayoutPlugin::mRunIDs |
|
protected |
The documentation for this class was generated from the following files: