我的是参数调用错误
原来是这样的
[DllImport("face_eye_nose_mouse.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int eye_nose_mouse_detect(string pathname);
eye_nose_mouse_detect(string pathname);
不知道为什么string 传进去错误
就去掉这个参数就能运行了