How to read image in web browser

5 visualizzazioni (ultimi 30 giorni)
Ihab El-Sayed
Ihab El-Sayed il 15 Lug 2011
Hello, I am new in image processing, I manage to to get the image I need from the D-Link IP Camera by : using the following in Matlab. 'web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg' I am trying now to use the command "imread" I tried the following, My question is very simple , I will really appreciate your prompt reply on this issue, How to read the image in the above web link as a variable "I"? The following is my guess but it did not succeed. Many thanks in advance for your help and support Ihab
web http://192.168.1.3/image.jpg local address or www address >> web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg >> ImageURL=web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg ??? ImageURL=web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg | Error: Unexpected MATLAB expression.
ImageURL =
ImageURL =
>> edit web >> strmatch(fname, ['netscape';'Netscape']) ??? Undefined function or variable 'fname'.
>> fname=polic11.jpg ??? Undefined variable "polic11" or class "polic11.jpg".
>> fname='polic11.jpg'
fname =
polic11.jpg
>> strmatch(fname, ['netscape';'Netscape'])
ans =
[]
>> strmatch(fname, ['netscape';'Netscape'])
ans =
[]
>> I=strmatch(fname, ['netscape';'Netscape'])
I =
[]
>> imshow(I) >> I=strmatch(fname, ['web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg'])
I =
[]
>> imshow(I) >> I=getimage(strmatch(fname,['web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg'])) ??? Error using ==> imhandles at 81 The handle must be a valid graphics handle.
Error in ==> getimage>parseInputs at 223 him = imhandles(h);
Error in ==> getimage at 86 him = parseInputs(varargin{:});
>> I=getimage(strmatch(fname,['web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg']))(strmatch(fname,['web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg'])) ??? Error: ()-indexing must appear last in an index expression.
>> I=getimage(fname) ??? Error using ==> getimage>parseInputs at 217 GETIMAGE: Invalid handle H.
Error in ==> getimage at 86 him = parseInputs(varargin{:});
>> I =imread(['web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg']) ??? Error using ==> imread at 293 Can't read URL "web <http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg >.
>> web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg >> I=imread('web http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg') ??? Error using ==> imread at 293 Can't read URL "web <http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg >.
All the above trials were unsuccessful , Please try to find a way for reading the image as a variable from the browser. Your prompt reply will be very highly appreciated Best regards, Ihab El-Sayed

Risposta accettata

Sean de Wolski
Sean de Wolski il 15 Lug 2011
I = imread('http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg');
works fine for me... no reason for web
  1 Commento
Ihab El-Sayed
Ihab El-Sayed il 15 Lug 2011
Hi Sean de,
Thank you very much.
It works fine.
Many thanks again for your prompt reply.
Ihab

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB Support Package for IP Cameras in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by