I have built a Project with Opencv inside then using it in C#.
But i cant package my project include opencv libs into Dynamic DLL then calling it in C#.
Can somebody give me some hints? :(
My Code:
#include "opencv\cv.h"
#include "opencv\highgui.h"
using namespace cv;
extern "C" _declspec(dllexport) string OpenCVTest(string fileName)
{
Mat img = imread(fileName);
IplImage image = img;
cvShowImage("Hello world", &image);
cvWaitKey(0);
cvDestroyAllWindows();
return "";
}