将 OpenCV kinect_maps 转换为 DLL
我是制作 DLL 的新手,我想将从 OpenCV2.3 项目示例中获得的 C++ kinect_maps 项目转换为 DLL,以便我可以从我的 C# 项目中使用它。我已经能够创建一个 DLL,但不幸的是它无法从我的 kinect 中获取图像。是我对库的链接错误还是有其他我不知道的东西。关于如何完成我的任务有什么解决方案吗?
太感谢了!任何帮助表示赞赏!
I'm new to making DLL's and I would like to convert the C++ kinect_maps project which i got from the OpenCV2.3 project examples to a DLL so i can use it from my C# project. I've been able to create a DLL but without luck it can't grab images from my kinect. Is it my linking to the libraries that is wrong or any other stuff I dont know. Any solutions on how can I accomplish my task?
Thank you so much! Any help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用 COM 接口,因为它们是不同的语言。找一个COM/COM+教程,先用一些简单的“Hello world”来尝试一下(COM并不是世界上最简单的技术),然后把你的代码放入COM dll中。
然后,您将能够将其添加为对 C# 项目的引用、#import 它、实例化类、调用成员对象以及所有其他操作。
You should use a COM interface because they are different languages. Find a COM/COM+ tutorial, try it at first with some simple "Hello world" (COM is not the simplest technology in the world), and then put your code in the COM dll.
Then you''ll be able to add it as reference to your C# project, #import it, instantiate classes, call member objects, and all the rest.