digiKam
Digikam::RecognitionTrainingProvider Class Reference
+ Inheritance diagram for Digikam::RecognitionTrainingProvider:

Public Member Functions

ImageListProviderimages (const Identity &) override
 
ImageListProvidernewImages (const Identity &id) override
 
 RecognitionTrainingProvider (const Identity &identity, const QList< QImage * > &newImages)
 
 ~RecognitionTrainingProvider () override
 

Public Attributes

QListImageListProvider m_empty
 
Identity m_identity
 
QListImageListProvider m_toTrain
 

Detailed Description

A simple QImage training data container used by RecognitionDatabase::train(Identity, QImage, QString)

Constructor & Destructor Documentation

◆ RecognitionTrainingProvider()

Digikam::RecognitionTrainingProvider::RecognitionTrainingProvider ( const Identity identity,
const QList< QImage * > &  newImages 
)
explicit

◆ ~RecognitionTrainingProvider()

Digikam::RecognitionTrainingProvider::~RecognitionTrainingProvider ( )
override

Member Function Documentation

◆ images()

ImageListProvider * Digikam::RecognitionTrainingProvider::images ( const Identity identity)
overridevirtual

Provides all images known for the given identity. Ownership of the returned object stays with the TrainingDataProvider.

Implements Digikam::TrainingDataProvider.

References m_empty.

◆ newImages()

ImageListProvider * Digikam::RecognitionTrainingProvider::newImages ( const Identity identity)
overridevirtual

Provides those images for the given identity that have not yet been supplied for training. Ownership of the returned object stays with the TrainingDataProvider.

Implements Digikam::TrainingDataProvider.

References m_empty, m_identity, m_toTrain, and Digikam::QListImageListProvider::reset().

Member Data Documentation

◆ m_empty

QListImageListProvider Digikam::RecognitionTrainingProvider::m_empty

Referenced by images(), and newImages().

◆ m_identity

Identity Digikam::RecognitionTrainingProvider::m_identity

Referenced by newImages().

◆ m_toTrain

QListImageListProvider Digikam::RecognitionTrainingProvider::m_toTrain

Referenced by newImages().


The documentation for this class was generated from the following files: