Can we upload image to Thingspeak?
Afficher commentaires plus anciens
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 commentaires
Rene Chan
le 31 Mar 2020
I’m interested in knowing more about your use case. Specifically, I want to understand more of the following if you don’t mind sharing:
- 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?
Mei Sing Wang
le 1 Avr 2020
Rene Chan
le 3 Avr 2020
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.
Réponse acceptée
Plus de réponses (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')))
Communautés
Plus de réponses dans ThingSpeak Community
Catégories
En savoir plus sur ThingSpeak dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
