フィルターのクリア

MATLAB Visualizations in ThingSpeak

2 ビュー (過去 30 日間)
Nipuna
Nipuna 2020 年 8 月 16 日
コメント済み: Vinod 2020 年 8 月 17 日
Hi,
It used an image stored in the web load it using the following command
picture = imread('https://www.mathworks.com/help/examples/thingspeak/win64/CreateHeatmapOverlayImageTSExample_02.png');
What is the most convenient way to host a custom image to use the imread() command. Can anyone explain it with steps.
  3 件のコメント
Nipuna
Nipuna 2020 年 8 月 16 日
I have an image, a map of a farmland. I have set up sensors to collect soil moisture values on this farm. I need to create a soil moisture map combining my IOT soil moisture sensors with the plan/image of the farm. I planned to show this map on a field in a channel of ThingSpeak using MatLab vusualization.
The issue I have is where to save the image that I have.. I tried Google photos, Onedrive but the imread() function can not read the image from them.
Also I uploaded it to MatLab drive and tried with the shared file link, it worked/can access until I keep the image on a preview window in MatLab drive. What is the method of image save/host in internet/cloud if I need to access it whenever I use MatLab visulisation.
Walter Roberson
Walter Roberson 2020 年 8 月 17 日
It is possible to imread() a photo from Google Photos. However, the way to get the correct URL is obscure; the test I just did, the secret URL was over 800 characters of pretty random characters like P8PeurrnqmOMvBwVWkia-jeJQL6HPYz8boUvfvQ3GE

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

回答 (1 件)

Vinod
Vinod 2020 年 8 月 17 日
You can upload your files into your MATLAB Drive for sharing. It will require the user to log in to MATLAB Drive to access it. MATLAB can also save files into DropBox and read file out of DropBox programmatically using a dropbox token.
If you are looking for an alternative only for images - one that does not require a login, there are many options out there.
  2 件のコメント
Nipuna
Nipuna 2020 年 8 月 17 日
Hi Vinod,
Thanks for that image hosting links. Out of the 11 options in that links I was able to sucessfully read image files using the imread() command only from https://publit.io/ image hoster. I found most of other image sharing services sharing links do not support the format the imread() command as mentioned in https://www.mathworks.com/help/matlab/ref/imread.html. I did not tried the DropBox option since I only have to access an image file.
Thanks for the feedback
Vinod
Vinod 2020 年 8 月 17 日
I've used Imgur in the past successfully. The key there is to post the image, then right click on the image in the browser and select "copy image url" and use the image url in MATLAB. See:
img = imread('https://i.imgur.com/IEkjCYz.jpg');
imshow(img);

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

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeThingSpeak についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by