A class to handle AI tools processing pipeline.
|
| void | signalProcessingFinished (const QString &filePath, bool success) |
| | Signal emitted when processing has finished.
|
| |
| void | signalProcessingStarted (const QString &filePath) |
| | Signal emitted when processing has started.
|
| |
| void | signalTransform (const QList< ItemInfo > &infos, MetaEngineRotation::TransformationAction action) |
| | Signal emitted to transform an image.
|
| |
|
void | finished () |
| | Emitted when the last package has finished processing.
|
| |
|
void | processed (const MLPipelinePackageNotify::Ptr &package) |
| | Emitted when one package has finished processing.
|
| |
|
void | processing (const MLPipelinePackageNotify::Ptr &package) |
| | Emitted when one package begins processing.
|
| |
|
void | progressValueChanged (float progress) |
| |
|
void | scheduled () |
| | Emitted when processing is scheduled.
|
| |
|
void | signalAddMoreWorkers () |
| |
|
void | signalUpdateItemCount (const qlonglong itemCount) |
| |
|
void | skipped (const MLPipelinePackageNotify::Ptr &package) |
| | Emitted when one or several packages were skipped, usually because they have already been scanned.
|
| |
|
void | started (const QString &message) |
| | Emitted when processing has started.
|
| |
|
| void | addMoreWorkers () override |
| | Implementation of the addMoreWorkers method.
|
| |
| bool | classifier () override |
| | Implementation of the classifier stage.
|
| |
| bool | extractor () override |
| | Implementation of the extractor stage.
|
| |
| bool | finder () override |
| | Implementation of the finder stage.
|
| |
| ProgressItem * | getProgressItem () |
| | Check if there's an existing progress item for AIToolPipeline or create a new one.
|
| |
| bool | loader () override |
| | Implementation of the loader stage.
|
| |
| bool | process (const DImg &image, AIToolsPipelinePackage::AITool tool, ProgressItem *const progress=nullptr) |
| | Process a pre-loaded image with the AI tools pipeline.
|
| |
| bool | process (const ItemInfo &info, AIToolsPipelinePackage::AITool tool, ProgressItem *const progress=nullptr) |
| | Process an item with the AI tools pipeline.
|
| |
| bool | trainer () override |
| | Implementation of the trainer stage.
|
| |
| bool | writer () override |
| | Implementation of the writer stage.
|
| |
|
bool | addWorker (const MLPipelineStage &stage) |
| |
|
bool | checkMoreWorkers (int totalItemCount, int currentItemCount, bool useFullCpu) |
| |
|
void | clearAllQueues () |
| |
|
virtual MLPipelinePackageFoundation * | dequeue (MLPipelineQueue *thisQueue) |
| |
|
void | emitSignalUpdateItemCount (const qlonglong itemCount) |
| | Helper methods to perform signal emitting through the MLPIPELINE_FINDER_END mocro with the moc processor.
|
| |
|
virtual bool | enqueue (MLPipelineQueue *thisQueue, MLPipelinePackageFoundation *package) |
| |
|
virtual void | notify (MLPipelineNotification notification, const QString &_name, const QString &_path, const QString &_displayData, int _processed, const DImg &_thumbnail) |
| |
|
virtual void | notify (MLPipelineNotification notification, const QString &_name, const QString &_path, const QString &_displayData, int _processed, const QIcon &_thumbnail) |
| |
|
virtual void | notify (MLPipelineNotification notification, const QString &_name, const QString &_path, const QString &_displayData, int _processed, const QImage &_thumbnail) |
| |
|
void | pipelinePerformanceEnd (const MLPipelineStage &stage, int totalItemCount, QElapsedTimer &timer) |
| |
|
void | pipelinePerformanceEnd (const MLPipelineStage &stage, QElapsedTimer &timer) |
| |
|
void | pipelinePerformanceStart (const MLPipelineStage &stage, QElapsedTimer &timer) |
| | Methods to profile the Pipeline performance.
|
| |
|
MLPipelinePackageFoundation * | queueEndSignal () const |
| | Queue helper functions.
|
| |
|
void | showPipelinePerformance () const |
| |
|
void | stageEnd (MLPipelineStage thisStage, MLPipelineStage nextStage) |
| |
|
void | stageStart (QThread::Priority threadPriority, MLPipelineStage thisStage, MLPipelineStage nextStage, MLPipelineQueue *&thisQueue, MLPipelineQueue *&nextQueue) |
| |
|
void | waitForStart () |
| |