Tanmoy Ghosh
Tanmoy Ghosh

Reputation: 82

How to use python code in .NET as a module or package

I have a python code that take an image as input and output an image, I want to use this code from .NET.

I search online and most of them suggest IronPython.

But my code contains tensorflow, opencv and numpy array. So I couldnot import tensorflow, opencv and numpy array in Ironpython. IronPython use python version 2.7.

And I want to use my python code in .NET as a module or package.

How can I do that??

Can anyone help please??

Thanks.

Upvotes: 0

Views: 300

Answers (1)

Kabir
Kabir

Reputation: 61

You can use https://visualstudio.microsoft.com/downloads/ai-tools-vscode/. It's an extension available for visual studio. Then you can easily write python applications as you do for any console app or library.

Upvotes: 2

Related Questions