How to read image in web browser
10 ビュー (過去 30 日間)
古いコメントを表示
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 =
[]
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
0 件のコメント
採用された回答
Sean de Wolski
2011 年 7 月 15 日
I = imread('http://l1.yimg.com/i/i/ab-mk/metro/polic11.jpg');
works fine for me... no reason for web
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for IP Cameras についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!