I need to execute C++ code to acquire images to process in python.
I need to use these commands from python:
- make and
- ./name_of_the_executable
Could anybody please help know me how to do it?
Look For python.net which is cable of making a call to the interfaces written in .net supported languages. What all you need to do is
Steps:
Download and put it two files Python.Runtime.dll and clr.pyd in your DLLs folder.
From you >>>(triple greater than prompt )Python prompt Try
>>>import clr
if it doesn't gives any error you are good to go .
Next You need to do is put Your C++ Dll inside Lib/site-packages Folder .
(This is not mandatory but good for beginners).
import clr try importing your Dll as a module import YourDllNameIf step 5 doesn't gives you a error . Hola You are done That's All Folks :)
makeutility you wish to run?), in which case they need to be run in another process, see subprocess module in the standard library: docs.python.org/2/library/subprocess.html. How are the images to be passed into python? If you get problems, post what you have tried so far.