I am computing the distance of the detected object from the camera. For this I am using the code of measuring planar objects after camera calibration. Now instead of giving single image as input I want continuous camera frames from an android camera.
1. Install "IPwebcam" app from the link and connect your Android to your host PC through WiFi.
2. Run the following code in MATLAB:
%% Acquire one frame I = imread('http://192.168.2.100:8080/photo.jpg'); % IP address should be modified figure, imshow(I)