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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by