There are different libraries available on Matlab/Python. I wonder if there is a way to make them collaborate. The possible ways I can imagine are
- Import libraries of Matlab to Python (if possible), and only use Python.
- Import libraries of Python to Matlab (if possible), and only use Matlab.
- Run both at the same time, exchanging data.
The raw data collected here will be video frames from two webcams. Python process the frames and give an output of some points at each frame. Matlab will use the raw frames and points from Python to reconstruct a 3D scene.
The video frames from webcams can be collected via either matlab/python (or something else).
Could you recommend any idea that will work well in my situation? My intuition says that option 2 may be the best since Matlab is where I process the data as a final stage. But I am not sure whether collecting videos with Python and passing them to Matlab is easy and fast enough.