1 #include <windows.h>
2 #include <iostream>
3 #include <opencv2/opencv.hpp>
4
5 using namespace cv;
6 using namespace std;
7 char* WcharToChar(const wchar_t* wp)
8 {
9 char *m_char;
10 int len = WideCharToMultiByte(CP_ACP, 0, wp, wcslen(wp), NULL, 0, NULL, NULL);
11 m_char = new char[len + 1];
12 WideCharToMultiByte(CP_ACP, 0, wp, wcslen(wp), m_char, len, NULL, NULL);
13 m_char[len] = '