MATLAB Answers

Matlab code on raspberry pi and display it on an android device?

3 views (last 30 days)
hey i have created a matlab script which takes several images form usb webcam running on raspberry pi(maybe on a computer).I simply want to send those images on an android device (maybe create my own application or matlab provides one) how will i do this. P.S my mobile does not have matlab. please just tell me a simple program to send an image on an android application... thanks


Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 1 Sep 2016
Have the raspberry pi use C or C++ to exec an scp command to copy the images to the destination. Or you could use ftp if you prefer. There are multiple available scp for Android including . Note that you need the Android side to be running SCP server not SCP client


Show 3 older comments
Walter Roberson
Walter Roberson on 4 Sep 2016
You write the frame to a file and scp the file which you pick up on the Android.
There might possibly be TCP or UDP Simulink blocks for Raspberry that could be used to send to a program waiting on Android. However, you indicated you are using a MATLAB script, not Simulink, so you might need to coder.ceval a complete block of code to do a tcp or udp transfer.
Hamza Idris
Hamza Idris on 8 Sep 2016
I'll be converting my script to a simulink block to work standalone on raspberry pi so then can i use TCP or UDP block? and Thank you very much for help...

Sign in to comment.

More Answers (0)

Sign in to answer this question.