digiKam
recognitiontrainingprovider.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam
4  *
5  * Date : 2010-06-16
6  * Description : A convenience class to train faces
7  *
8  * Copyright (C) 2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
9  * Copyright (C) 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_RECOGNITION_TRAINING_PROVIDER_H
26 #define DIGIKAM_RECOGNITION_TRAINING_PROVIDER_H
27 
28 // Qt includes
29 
30 #include <QList>
31 #include <QImage>
32 
33 // Local includes
34 
35 #include "dataproviders.h"
36 #include "identity.h"
37 
38 namespace Digikam
39 {
40 
46 {
47 public:
48 
49  explicit RecognitionTrainingProvider(const Identity& identity,
50  const QList<QImage*>& newImages);
52 
53  ImageListProvider* newImages(const Identity& id) override;
54 
55  ImageListProvider* images(const Identity&) override;
56 
57 public:
58 
62 
63 private:
64 
65  // Disable
67  RecognitionTrainingProvider& operator=(const RecognitionTrainingProvider&) = delete;
68 };
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_RECOGNITION_TRAINING_PROVIDER_H
Definition: identity.h:41
Definition: dataproviders.h:46
Definition: dataproviders.h:70
Definition: recognitiontrainingprovider.h:46
ImageListProvider * newImages(const Identity &id) override
Definition: recognitiontrainingprovider.cpp:41
QListImageListProvider m_toTrain
Definition: recognitiontrainingprovider.h:60
ImageListProvider * images(const Identity &) override
Definition: recognitiontrainingprovider.cpp:53
QListImageListProvider m_empty
Definition: recognitiontrainingprovider.h:61
Identity m_identity
Definition: recognitiontrainingprovider.h:59
RecognitionTrainingProvider(const Identity &identity, const QList< QImage * > &newImages)
Definition: recognitiontrainingprovider.cpp:30
~RecognitionTrainingProvider() override
Definition: recognitiontrainingprovider.cpp:37
Definition: dataproviders.h:127
Definition: datefolderview.cpp:43