digiKam
facesdetector.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2010-07-18
7  * Description : batch face detection
8  *
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_FACES_DETECTOR_H
26 #define DIGIKAM_FACES_DETECTOR_H
27 
28 // Qt includes
29 
30 #include <QList>
31 #include <QObject>
32 
33 // Local includes
34 
35 #include "maintenancetool.h"
36 #include "iteminfo.h"
37 
38 namespace Digikam
39 {
40 
41 class DImg;
42 class FacePipelinePackage;
43 class FaceScanSettings;
44 
46 {
47  Q_OBJECT
48 
49 public:
50 
52  {
53  Albums = 0,
55  Ids
56  };
57 
58 public:
59 
60  explicit FacesDetector(const FaceScanSettings& settings,
61  ProgressItem* const parent = nullptr);
62  ~FacesDetector() override;
63 
64 private Q_SLOTS:
65 
66  void slotStart() override;
67  void slotContinueAlbumListing();
68  void slotItemsInfo(const ItemInfoList&);
69  void slotImagesSkipped(const QList<ItemInfo>&);
70  void slotShowOneDetected(const FacePipelinePackage&);
71  void slotDone() override;
72  void slotCancel() override;
73 
74 private:
75 
76  class Private;
77  Private* const d;
78 };
79 
80 } // namespace Digikam
81 
82 #endif // DIGIKAM_FACES_DETECTOR_H
Definition: facepipelinepackage.h:123
Definition: facescansettings.h:37
Definition: facesdetector.h:46
InputSource
Definition: facesdetector.h:52
@ Infos
Definition: facesdetector.h:54
@ Ids
Definition: facesdetector.h:55
@ Albums
Definition: facesdetector.h:53
FacesDetector(const FaceScanSettings &settings, ProgressItem *const parent=nullptr)
Definition: facesdetector.cpp:121
~FacesDetector() override
Definition: facesdetector.cpp:268
Definition: iteminfolist.h:47
Definition: maintenancetool.h:41
Definition: progressmanager.h:45
ProgressItem * parent() const
Definition: progressmanager.cpp:299
Definition: datefolderview.cpp:43