digiKam
Loading...
Searching...
No Matches
facepreprocessor.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 : Abstract class for preprocessor of facesengine
8 *
9 * SPDX-FileCopyrightText: 2019 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com>
10 * SPDX-FileCopyrightText: 2019-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local includes
19
20#include "digikam_opencv.h"
21#include "digikam_export.h"
22
23namespace Digikam
24{
25
26class DIGIKAM_EXPORT FacePreprocessor
27{
28
29public:
30
31 FacePreprocessor() = default;
32 virtual ~FacePreprocessor() = default;
33
34 virtual cv::Mat preprocess(const cv::Mat& image) const = 0;
35
36private:
37
38 // Disable
39 FacePreprocessor(const FacePreprocessor&) = delete;
40 FacePreprocessor& operator=(const FacePreprocessor&) = delete;
41};
42
43} // namespace Digikam
Definition facepreprocessor.h:27
virtual ~FacePreprocessor()=default
virtual cv::Mat preprocess(const cv::Mat &image) const =0
Definition datefolderview.cpp:34