//dlib_cnn_facedetect.cpp: 定义控制台应用程序的入口点。//#include"stdafx.h"#include#include#include#include#include
using namespacestd;using namespacedlib;//----------------------------------------------------------------------------------------
template using con5d = con;
template using con5 = con;
template using downsampler = relu>>>>>>>>;
template using rcon5 = relu>>;using net_type = loss_mmod>>>>>>>;//----------------------------------------------------------------------------------------
int main(int argc, char**argv)
{try{if (argc == 1)
{
cout<< "Call this program like this:" <
cout<< "./dnn_mmod_face_detection_ex mmod_human_face_detector.dat faces/*.jpg" <
cout<< "\nYou can get the mmod_human_face_detector.dat file from:\n&