MATLAB Answers

Sending input when calling Matlab script from python

7 views (last 30 days)
CHINTALA NIRMAL SRINIVAS
CHINTALA NIRMAL SRINIVAS on 13 May 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)

  0 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by