31 lines
695 B
C++
31 lines
695 B
C++
#pragma once
|
|
#include <opencv2/opencv.hpp>
|
|
#include <opencv2/imgproc/types_c.h>
|
|
#include <opencv2/objdetect.hpp>
|
|
#include <opencv2/core.hpp>
|
|
#include <opencv2/objdetect/objdetect.hpp>
|
|
/*
|
|
Author: Pierfrancesco Soffritti https://github.com/PierfrancescoSoffritti
|
|
*/
|
|
|
|
using namespace cv;
|
|
using namespace std;
|
|
|
|
namespace computervision
|
|
{
|
|
class FaceDetector {
|
|
public:
|
|
/**
|
|
* @brief Constructor for the class FaceDetector, loads training data from a file
|
|
*
|
|
*/
|
|
FaceDetector(void);
|
|
/**
|
|
* @brief Detects faces on an image and blocks them with a black rectangle
|
|
*
|
|
* @param input Input image
|
|
* @param output Output image
|
|
*/
|
|
void removeFaces(Mat input, Mat output);
|
|
};
|
|
} |