objectDetection.h 637 字节
#pragma once
//
//	objectDetection¡¤±êÍ·
//
#ifndef __OBJECTDETECTION_H
#define __OBJECTDETECTION_H

#include "opencv2/core.hpp"

class NNDetector {
public:
	NNDetector(const std::string& detector_config_path = "",
		const std::string& detector_model_path = "",
		const std::string& super_resolution_config_path = "",
		const std::string& super_resolution_model_path = "");
	NNDetector() {};

	std::vector<cv::Mat> detect(cv::InputArray img,
		std::vector<cv::Rect> &points = std::vector<cv::Rect>());

	std::vector<cv::Mat> getScaleMap(cv::InputArray img);

protected:
	class Impl;
	cv::Ptr<Impl> p;
};
#endif/* __OBJECTDETECTION_H */