我的是参数调用错误
原来是这样的
[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 传进去错误
就去掉这个参数就能运行了
参数调用错误问题分析
博客主要讲述遇到参数调用错误的情况,代码中使用 [DllImport] 导入 'face_eye_nose_mouse.dll' 并定义了 'eye_nose_mouse_detect' 方法,传入 string 参数时出错,去掉该参数后程序可运行。
我的是参数调用错误
原来是这样的
[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 传进去错误
就去掉这个参数就能运行了
您可能感兴趣的与本文相关的镜像
ACE-Step
ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言
2758

被折叠的 条评论
为什么被折叠?