File indexing completed on 2025-01-05 03:58:11
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 28/08/2021 0007 * Description : an unit-test to detect image quality level 0008 * 0009 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2021-2022 by Phuoc Khanh Le <phuockhanhnk94 at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_DETECT_AESTHETIC_UTEST_H 0017 #define DIGIKAM_DETECT_AESTHETIC_UTEST_H 0018 0019 // Qt includes 0020 0021 #include <QObject> 0022 #include <QString> 0023 0024 // Local includes 0025 0026 #include "imgqsorttest.h" 0027 0028 using namespace Digikam; 0029 0030 class ImgQSortTestDetectQesthetic : public ImgQSortTest 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit ImgQSortTestDetectQesthetic(QObject* const parent = nullptr); 0037 0038 private Q_SLOTS: 0039 0040 void testParseTestImagesForAestheticDetection(); 0041 }; 0042 0043 DataTestCases const dataTestCases = 0044 { 0045 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("aesthetic_1.jpg"), 3)}, 0046 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("aesthetic_2.jpg"), 3)}, 0047 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("aesthetic_3.jpg"), 3)}, 0048 0049 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("general_bad_image_1.jpg"), 1)}, 0050 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("general_bad_image_2.jpg"), 1)}, 0051 {QLatin1String("aestheticDetection"), PairImageQuality(QLatin1String("general_bad_image_3.jpg"), 1)}, 0052 }; 0053 0054 #endif // DIGIKAM_DETECT_AESTHETIC_UTEST_H