- Is the image acquired and processed just once for static display? Or is it more like repeatedly acquired and processed for dynamics display?
- What kind of processing or analysis do you perform on the image?
Can we upload image to Thingspeak?
13 次查看(过去 30 天)
显示 更早的评论
Current situation:
I have saved my processed image in raspberry pi. I would like to upload the image to Thingspeak. However, I came across some posts saying that we cant upload image to Thingspeak. I wish to view my image at Thingspeak and also at Thingview(mobile app).
Questions:
1) Can we upload image to Thingspeak?
2) Or can i upload the image to Google Drive then link it back to Thingspeak ?
3) If no, any way to do it?
This is the example that show the image, but I not sure how it does.
3 个评论
Rene Chan
2020-4-3
Thanks for sharing the details!
One way to help you decide between the two next steps you are contemplating is to think about edge (on device) vs. cloud (ThingSpeak) processing.
Edge processing allows you to perform lighter duty computation on the device and then write the result to the cloud. It is easily achievable with you current implementation on the Pi and write the result to a ThingSpeak channel for basic visualization. It is a good starting point. What you will be missing is the additional analysis/processing of the images that is either impractical or impossible to do on the Pi.
Here's where the cloud processing like ThingSpeak with MATLAB comes in. For that to work, the raw data (images in this case) must be made available to ThingSpeak. ThingSpeak currently does not directly support collecting image as part of data write. But you can do what Christopher suggested by sending it to a third-party storage. You can then use MATLAB Visualization in ThingSpeak to perform computation and display the result on a channel.
采纳的回答
Christopher Stapels
2020-3-31
编辑:Christopher Stapels
2020-12-29
At present, it is not easy to upload images to ThingSpeak. You could break it up into multiple fields and feeds, but it would require a lot of code and probably small images.
I suspect you can use google drive, though I haven't yet. The plant channel you linked uses a static image in the MathWorks documentation.
I used dropbox for the image on this channel. Here is the MATLAB visualization code. If you are using Dropbox, the key part is the dl=1 at the end of the URL.
myFig=figure( 'Position',[50 10 100 1000]);
bob=imread('https://www.dropbox.com/s/xxxxxxxxxxx/LoraBox_in_Flowers.jpg?dl=1');
myFig=imshow(bob);
更多回答(1 个)
Vinod
2020-3-31
编辑:Vinod
2020-4-1
If you are using a Raspberry Pi, you can set up the IP camera functionality on it and then use the IP camera in a MATLAB visualization on ThingSpeak.
For example, try this code that reads from a public IP camera in a MATLAB visualization:
imshow(webread('http://24.73.89.162/axis-cgi/jpg/image.cgi',weboptions('ContentType','image')),'border','tight');
title(sprintf('Last updated at: %s',datetime('now')))
0 个评论
社区
更多回答在 ThingSpeak Community
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!