| 1 |
/* ============================================================ |
| 2 |
* |
| 3 |
* This file is a part of digiKam project |
| 4 |
* https://www.digikam.org |
| 5 |
* |
| 6 |
* Date : 2024-11-10 |
| 7 |
* Description : Performs face detection and recognition |
| 8 |
* |
| 9 |
* SPDX-FileCopyrightText: 2024-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 10 |
* SPDX-FileCopyrightText: 2024-2025 by Michael Miller <michael underscore miller at msn 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 "facepipelinebase.h" |
| 21 |
#include "facedetector.h" |
| 22 |
|
| 23 |
namespace Digikam |
| 24 |
{ |
| 25 |
|
| 26 |
class FacePipelineRecognize : public FacePipelineBase |
| 27 |
{ |
| 28 |
Q_OBJECT |
| 29 |
|
| 30 |
public: |
| 31 |
|
| 32 |
explicit FacePipelineRecognize(const FaceScanSettings& _settings); |
| 33 |
~FacePipelineRecognize() override = default; |
| 34 |
|
| 35 |
public: |
| 36 |
|
| 37 |
bool start() override; |
| 38 |
|
| 39 |
protected: |
| 40 |
|
| 41 |
bool finder() override; |
| 42 |
bool loader() override; |
| 43 |
bool extractor() override; |
| 44 |
bool classifier() override; |
| 45 |
|
| 46 |
bool trainer() override |
| 47 |
{ |
| 48 |
return false; |
| 49 |
} |
| 50 |
|
| 51 |
bool writer() override; |
| 52 |
|
| 53 |
void addMoreWorkers() override; |
| 54 |
|
| 55 |
private: |
| 56 |
|
| 57 |
FaceDetector detector; |
| 58 |
|
| 59 |
private: |
| 60 |
|
| 61 |
/// @note disabled |
| 62 |
FacePipelineRecognize() = delete; |
| 63 |
FacePipelineRecognize(QObject* const) = delete; |
| 64 |
FacePipelineRecognize(const FacePipelineRecognize&) = delete; |
| 65 |
FacePipelineRecognize& operator=(const FacePipelineRecognize&) = delete; |
| 66 |
}; |
| 67 |
|
| 68 |
} // namespace Digikam |