MATLAB Answers

0

Converting matlab code to python

Asked by Osumanu Ra-is on 14 Mar 2016
Latest activity Commented on by Osumanu Ra-is on 15 Mar 2016
Please is it possible to convert Matlab codes to python and put it on a raspberry pi. Am working on face detection and i have the codes written in matlab but i wanted to convert to python and run on raspberry pi

  0 Comments

Sign in to comment.

1 Answer

Answer by Michelle Hirsch on 14 Mar 2016

I'm not sure about converting the code, but there are a few other ways you might be able to connect your MATLAB algorithms with your RaspberryPi. There are support packages for connecting MATLAB to RaspberryPi and for running Simulink algorithms on RaspberryPi. With the MATLAB connection, you can send the camera and other sensor data from the Pi directly to an algorithm running in MATLAB. With Simulink, you can compile your algorithms to run natively on the Pi.
Here's a video on using MATLAB for face detection with a RaspberryPi: MATLAB and Raspberry Pi for Face Detection
More info on using MATLAB and Simulink with the RaspberryPi is here:
BTW, happy (Raspberry)Pi day! (in the US - 3.14)

  3 Comments

ok. But matlab has a way of converting matlab code to jar file. supposing i convert the matlab codes to jar file and i install java runtime environment on the raspberry pi. Will that help also?
No, that won't work. The MATLAB Runtime is not currently supported on the RaspberryPi. It just runs on platforms where MATLAB runs.
ok bt not neccessary installing matlab runtime environment on the raspberry pi but since one can install java runtime environment on raspberry pi. my Question was, after installing java runtime environment on raspberry pi, i wanted to covert my matlab codes to jar file on windows platform and then later run it on the raspberry pi

Sign in to comment.