File indexing completed on 2025-01-05 03:58:06
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-06-21 0007 * Description : GUI test program for FacesEngine 0008 * 0009 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2010 by Alex Jironkin <alexjironkin at gmail dot com> 0011 * SPDX-FileCopyrightText: 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com> 0012 * 0013 * SPDX-License-Identifier: GPL-2.0-or-later 0014 * 0015 * ============================================================ */ 0016 0017 #ifndef DIGIKAM_FACE_ENGINE_DEMO_MAIN_WINDOW_H 0018 #define DIGIKAM_FACE_ENGINE_DEMO_MAIN_WINDOW_H 0019 0020 // Qt includes 0021 0022 #include <QMainWindow> 0023 0024 namespace FaceEngineDemo 0025 { 0026 0027 class MainWindow : public QMainWindow 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 0033 explicit MainWindow(QWidget* const parent = nullptr); 0034 ~MainWindow() override; 0035 0036 public Q_SLOTS: 0037 0038 void slotOpenImage(); 0039 void slotDetectFaces(); 0040 void slotUpdateDatabase(); 0041 void slotRecognise(); 0042 void slotUpdateAccuracy(); 0043 void slotUpdateSensitivity(); 0044 0045 protected: 0046 0047 void changeEvent(QEvent* e) override; 0048 0049 private: 0050 0051 void clearScene(); 0052 0053 private: 0054 0055 class Private; 0056 Private* const d; 0057 }; 0058 0059 } // namespace FaceEngineDemo 0060 0061 #endif // DIGIKAM_FACE_ENGINE_DEMO_MAIN_WINDOW_H