Compile Computer Vision Toolbox function for Python using Matlab Compiler SDK/Engine API
조회 수: 3 (최근 30일)
I have written substantial code in MATLAB using the Computer Vision Toolbox and I would like to convert the code to Python or import this code as a library using something like
in Python through 'MATLAB Engine API for Python' functionality. The specific function I am looking to convert is
from CV Toolbox but I presume the approach will apply to any future modules I wish to import.
I have tried the basic
commands in Python and they work fine but cannot find anything for CVT functions. Any help is appreciated.
Gowtham Uma Maheswari Jaganathan 2018년 5월 17일
You were doing the right thing. You have to create MATLAB engine object and then use the engine object to all function from MATLAB.
eng = matlab.engine.start_matlab()
ret = eng.sqrt(4.0) # use whatever function instead of sqrt(4.0)
More infromation can be found in the document page linked below