how to give path to save my result data in a directory

1 回表示 (過去 30 日間)
Tiwa Romuald
Tiwa Romuald 2015 年 9 月 24 日
コメント済み: Star Strider 2015 年 10 月 2 日
hi, I'm new in matlab. please I would like to save the result of this function in a precilly directory. so that i could take it's this is have a this function:
url = 'http://192.168.0.3:8080/shot.jpg';
ss=imread(url);
fh = imshow(ss, 'Parent', handles.axes1);
while(1)
ss=imread(url);
set(fh,'CData',ss);
drawnow;
end

採用された回答

Star Strider
Star Strider 2015 年 9 月 24 日
Try this:
url = 'http://192.168.0.3:8080/shot.jpg';
file_name = 'shot.jpg';
status = urlwrite(url, file_name);
ss=imread(filename);
This is inadvertently untested. I got the error:
Error using urlreadwrite (line 98)
Error downloading URL. Your network connection may be down or your proxy settings improperly
configured.
However you may be able to access it.
  4 件のコメント
Tiwa Romuald
Tiwa Romuald 2015 年 10 月 2 日
Hi,now iwould like to have Video stream from my same ipcam. please escuse my english because i'm speak french language Thank you
Star Strider
Star Strider 2015 年 10 月 2 日
My pleasure.
Please begin a new Question about the video stream from your ipcam. That is not an area of my expertise. Others here are likely better able to Answer it.
In your new Question, describe what you want to do, including the details of your ipcam network connectivity and protocols, what you have already attempted (please include or attach the relevant parts of your code), and what you have done that has or has not worked. If your code has thrown an error, please also copy all the red text from the Command Window and include it in your Question. Also, mention what relevant Toolboxes you have (for example, the ‘Computer Vision System Toolbox’ if you have it).
You need not apologise. Your English is almost infinitely better than my French!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by