digiKam
detectionbenchmarker.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-09-03
7  * Description : Face detection benchmarker
8  *
9  * Copyright (C) 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2012-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_DETECTION_BENCH_MARKER_H
26 #define DIGIKAM_DETECTION_BENCH_MARKER_H
27 
28 // Local includes
29 
30 #include "facepipeline_p.h"
31 
32 namespace Digikam
33 {
34 
35 class Q_DECL_HIDDEN DetectionBenchmarker : public WorkerObject
36 {
37  Q_OBJECT
38 
39 public:
40 
42  QString result() const;
43 
44 public Q_SLOTS:
45 
46  void process(FacePipelineExtendedPackage::Ptr package);
47 
48 Q_SIGNALS:
49 
51 
52 protected:
53 
55  int faces;
56  double totalPixels;
57  double facePixels;
58 
61 
65 
67 };
68 
69 } // namespace Digikam
70 
71 #endif // DIGIKAM_DETECTION_BENCH_MARKER_H
Definition: detectionbenchmarker.h:36
int totalImages
Definition: detectionbenchmarker.h:54
int faces
Definition: detectionbenchmarker.h:55
int truePositiveFaces
Definition: detectionbenchmarker.h:62
int falseNegativeFaces
Definition: detectionbenchmarker.h:63
void processed(FacePipelineExtendedPackage::Ptr package)
FacePipeline::Private *const d
Definition: detectionbenchmarker.h:66
double facePixels
Definition: detectionbenchmarker.h:57
int falsePositiveFaces
Definition: detectionbenchmarker.h:64
double totalPixels
Definition: detectionbenchmarker.h:56
int trueNegativeImages
Definition: detectionbenchmarker.h:59
int falsePositiveImages
Definition: detectionbenchmarker.h:60
QExplicitlySharedDataPointer< FacePipelineExtendedPackage > Ptr
Definition: facepipelinepackage.h:168
Definition: facepipeline_p.h:50
Definition: workerobject.h:45
Definition: datefolderview.cpp:43