MATLAB: Real time image capturing with smartphone in Matlab

capturecapturingimage acquisitionreal timesmartphone

i have an issue. i want to capture an image with my smartphone and directly display in my gui matlab. is it possible to do? please tell me how to do that. big thanks for helping me. (sorry for my bad english)

Best Answer

No, that is not possible.
You have three choices:
1) have MATLAB request an image from the smart phone using a utility program (recommended utility depends on android vs ios). This is not the same as capturing an image on your phone because it requires that MATLAB initiates the sequence rather than being pushed out from the smartphone to the host.
2) create a Simulink model that uses the video capture block appropriate to the support package for the type of phone. This too is not pushing user-triggered images from the phone to the host.
3) write an application for the phone that monitors the creation of user-triggered images and immediately uses tcp or udp to send them to the host, with a MATLAB host program waiting for these occasional images and displaying them.
Stretching my memory, I do not presently recall there being any Simulink blocks for video capture on the phone that allows processing of the image on the phone, but it is possible I have overlooked appropriate blocks. I would have to research to see if there are any user interface blocks offered by the support packages, so I doubt that you could write an application in Simulink that would provide an user-triggered interface app that you would actually want to use, but I might have overlooked something.
The difference between which side requests the action is important for this purpose.
Related Question