File indexing completed on 2025-01-19 03:57:55

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-09-03
0007  * Description : Integrated, multithread face detection / recognition
0008  *
0009  * SPDX-FileCopyrightText: 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_FACE_ITEM_RETRIEVER_H
0016 #define DIGIKAM_FACE_ITEM_RETRIEVER_H
0017 
0018 // Local includes
0019 
0020 #include "facepipeline_p.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class Q_DECL_HIDDEN FaceItemRetriever
0026 {
0027 public:
0028 
0029     explicit FaceItemRetriever(FacePipeline::Private* const d);
0030     ~FaceItemRetriever();
0031 
0032     void cancel();
0033 
0034     QList<QImage*> getDetails(const DImg& src, const QList<QRectF>& rects)                   const;
0035     QList<QImage*> getDetails(const DImg& src, const QList<FaceTagsIface>& faces)            const;
0036     QList<QImage*> getThumbnails(const QString& filePath, const QList<FaceTagsIface>& faces) const;
0037 
0038 protected:
0039 
0040     ThumbnailImageCatcher* catcher;
0041 
0042 private:
0043 
0044     // Disable
0045     FaceItemRetriever(const FaceItemRetriever&)            = delete;
0046     FaceItemRetriever& operator=(const FaceItemRetriever&) = delete;
0047 };
0048 
0049 } // namespace Digikam
0050 
0051 #endif // DIGIKAM_FACE_ITEM_RETRIEVER_H