我有一个调用函数.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
文件。它甚至可能吗?