digiKam
recognitionpreprocessor.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 : 2019-07-09
7  * Description : Preprocessor for face recognition
8  *
9  * Copyright (C) 2019 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com>
10  * Copyright (C) 2019-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_PREPROCESSOR_H
26 #define DIGIKAM_RECOGNITION_PREPROCESSOR_H
27 
28 #include "facepreprocessor.h"
29 
30 // Local includes
31 
32 #include "digikam_export.h"
33 
34 namespace Digikam
35 {
36 
38 {
39  OPENFACE = 0
40 };
41 
42 class DIGIKAM_EXPORT RecognitionPreprocessor: public FacePreprocessor
43 {
44 
45 public:
46 
47  explicit RecognitionPreprocessor();
48  ~RecognitionPreprocessor() override;
49 
50 public:
51 
52  void init(PreprocessorSelection mode);
53 
54  cv::Mat preprocess(const cv::Mat& image) const override;
55 
56 private:
57 
58  // Disable
60  RecognitionPreprocessor& operator=(const RecognitionPreprocessor&) = delete;
61 
62 private:
63 
64  class Private;
65  Private* const d;
66 };
67 
68 } // namespace Digikam
69 
70 #endif // DIGIKAM_RECOGNITION_PREPROCESSOR_H
Definition: facepreprocessor.h:37
Definition: recognitionpreprocessor.h:43
Definition: datefolderview.cpp:43
PreprocessorSelection
Definition: recognitionpreprocessor.h:38
@ OPENFACE
Definition: recognitionpreprocessor.h:39