是否可以在C#中构建接口并将其与Python集成? [英] Is it possible to build an interface in C# and integrate it with Python ?

查看:228
本文介绍了是否可以在C#中构建接口并将其与Python集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于图像处理(图像分割)的应用程序。我们计划在Python中使用OpenCV。至于界面,是否可以用C#构建它或者我们应该使用像Kivy这样的框架吗?



谢谢。

It's for an application on image processing (Image segmentation). We're planning to use OpenCV with Python. As for the interface, is it possible to build it in C# or should we use a framework like Kivy ?

Thank you.

推荐答案

是的,很容易找到: python .net - Google搜索 [ ^ ]。
Yes, and easy to find: python .net - Google Search[^].


如果你想在.NET应用程序中托管OpenCV代码,你真的不需要Python;这将是太长的路。 OpenCV是用C ++编写的,所以你最好在.NET中使用这个实现。已经为您完成了在.NET程序集中嵌入OpenCV代码的工作。人们通常使用开源和多平台Emgu CV:

Emgu CV下载| SourceForge.net [ ^ ],

Emgu CV:.NET中的OpenCV(C#,VB,C ++等) [< a href =http://www.emgu.com/wiki/index.php/Main_Page#Advantage_of_Emgu_CVtarget =_ blanktitle =New Window> ^ ]。



然而,目前尚不清楚你真正想做什么。也许您想使用.NET UI开发Python应用程序。但这也是一个漫长的过程。也许你想要这个,因为你有更多的Python经验;我只是不知道。无论如何,如果您认为此解决方案不适合您,请澄清。从我看到的,你真的需要使用C#和OpenCV。在这个串联中,Python的作用对我来说是多余的。



-SA
If you want to host OpenCV code in a .NET application, you don't really need Python; it will be too long way around. OpenCV is written in C++, so you should better use this implementation in .NET. The work of embedding OpenCV code in a .NET assemblies is already done for you. People usually use open-source and multi-platform Emgu CV:
Emgu CV download | SourceForge.net[^],
Emgu CV: OpenCV in .NET (C#, VB, C++ and more)[^].

However, it's not clear what you really want to do. Perhaps you wanted to develop Python application using .NET UI. But that would also be too long way around. Perhaps you want this because you have more experience with Python; I just don't know. Anyway, if you feel that this solution won't work for you, please clarify. From what I see, you really need to use C# and OpenCV. In this tandem, the role of Python looks redundant to me.

—SA


这篇关于是否可以在C#中构建接口并将其与Python集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆