Sending input when calling Matlab script from python

I have a python code which is linked with Matlab. The python code when it runs uses the output of Matlab code. I want to decide which image to be read in Matlb from python. I want to give that image address as an input in python code so that when Matlb code runs, it takes that input and reads it through imread(). Can somebody please help me how can I do that?
This is the part of my python code which is used to call matlab script.
import matlab.engine
eng = matlab.engine.start_matlab()
xys="C:\\Users\\User\\Desktop\\tkinter_codes\\floorplans\\ROBIN\\Dataset_3roomsmall\\Cat1_1.jpg"
eng.boundingbox_Aroundrooms(nargout=0)

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

질문:

2020년 5월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by