Sending input when calling Matlab script from python

2 vues (au cours des 30 derniers jours)
CHINTALA NIRMAL SRINIVAS
CHINTALA NIRMAL SRINIVAS le 13 Mai 2020
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)

Réponses (0)

Catégories

En savoir plus sur Call MATLAB from Python dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by