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

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Sept. de 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 https://play.google.com/store/apps/details?id=com.icecoldapps.sshserver&hl=en . Note that you need the Android side to be running SCP server not SCP client

6 comentarios

Thanks for answering. can you share me any other link to do so.. I'll be very thankful to you..
Thanks! but as of my code is that when there is someone in picture i have to immediately display picture on an android phone in this case ftp wont work or will it?
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.
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...
Yes, TCP or UDP blocks for Raspberry should be okay.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

el 1 de Sept. de 2016

Comentada:

el 8 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by