I have an smartphone device with a camera. I would like to obtain and process this image data in MATLAB.
(Specifically, I have an Android device).
No products are associated with this question.
The general solution would need two parts, one to broadcast the data from the device and another part to read this data into MATLAB.
A specific solution for Android:
url = 'http://<ip address>/shot.jpg'; ss = imread(url);
fh = image(ss); while(1) ss = imread(url); set(fh,'CData',ss); drawnow; end
(If you find faster ways/solutions for other devices, post it here!)
With the iPhone, using the App suggested by Ashish above (IP Cam), you can achieve the same pretty easily! The code is exactly the same:
url = 'http://<ipaddress>:8020/image.jpg'; ss = imread(url); fh = image(ss); while(1) ss = imread(url); set(fh,'CData',ss); drawnow; end