mirror of
https://github.com/opencv/opencv.git
synced 2024-12-22 23:28:00 +08:00
32 lines
737 B
C
32 lines
737 B
C
|
//
|
|||
|
// MainPage.xaml.h
|
|||
|
// Declaration of the MainPage class.
|
|||
|
//
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include "MainPage.g.h"
|
|||
|
#include <opencv2\core\core.hpp>
|
|||
|
#include <opencv2\objdetect.hpp>
|
|||
|
|
|||
|
|
|||
|
namespace FaceDetection
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|||
|
/// </summary>
|
|||
|
public ref class MainPage sealed
|
|||
|
{
|
|||
|
public:
|
|||
|
MainPage();
|
|||
|
|
|||
|
private:
|
|||
|
void InitBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
|||
|
void detectBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
|||
|
|
|||
|
private:
|
|||
|
cv::Mat groupFaces;
|
|||
|
void UpdateImage(const cv::Mat& image);
|
|||
|
cv::CascadeClassifier face_cascade;
|
|||
|
};
|
|||
|
}
|