How can I use my cellphone as a webcam for Image recognition?

2 visualizzazioni (ultimi 30 giorni)
Hello everyone, the problem is that my webcam seems not to work on Windows10 (iSlim 300x), and what I needed to do is to capture video and detect anything and use it to control the GUI. The lines where I captured video are these:
video=videoinput('winvideo',1,'RGB24_640x480');
set(video, 'ReturnedColorSpace', 'rgb');
preview(video)
But as I said, it's not working on Windows10, so I tried to capture video with IpWebcam Apk, like this:
url = 'http://192.168.1.10:8080/shot.jpg';
ri = imread(url);
fh = image(ri);
while(1)
ri = imread(url);
set(fh,'CData',ri);
drawnow;
end
But it just doesn't work, so I was wondering if there's another way to do so, to get a stream directly, not just a bunch of pictures, in order to use the 'video' variable as I was using it. Or perhaps if there's a way to make the webcam work on W10 (I've tried almost everuthing), that would be swell. Thanks a lot.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by