将矢量/列表传递给可执行的frompython

时间:2017-11-22 20:55:08

标签: python matlab exe

我有一个调用函数.EXE的Matlab BlendingFacialFeatures()文件。

此函数需要源顶点V_S和目标顶点V_T作为列表。作为输出,它也返回一个顶点列表。

现在我试图从python中调用这个.EXE文件。我试过了:

arg = "D:\\Face_Morphing\\Codes\\Exe\\V02\\exe\\BlendingFacialFeatures.exe"
result = subprocess.call([arg , V_S , V_T]) 

但是我收到了这个错误:

ValueError: The truth value of an array with more than one element
is ambiguous. Use a.any() or a.all()

我想知道如何将我的矢量/列表直接传递给Matlab .EXE文件。它甚至可能吗?

0 个答案:

没有答案