How to read images from firebase?
2 ビュー (過去 30 日間)
古いコメントを表示
I have captured images using rasberry pi and uploaded these images to firebase. Now I need MATLAB to read the images from firebase so I can classify them using a pre-trained model I have developed.
1 件のコメント
Constantino Carlos Reyes-Aldasoro
2023 年 5 月 6 日
If you have a url, you can read directly with imread
a = imread('https://upload.wikimedia.org/wikipedia/commons/3/3a/Grand_Palace_of_Bangkok_1860s.jpg');
imagesc(a); colormap gray
回答 (1 件)
Sachin
2023 年 5 月 8 日
Hi
I understand that you want to read images from firebase database using MATLAB.
You can try any one of the following workarounds:
- As you can execute the Python code within the MATLAB IDE, I recommend using the firebase python client to access the data. Once the data is retrieved ,you can then process it as needed .
- Refer this page - python - how to show image after fetching from firebase - Stack Overflow
- Another method is to use firebase REST API to send a GET request to the firebase realtime url.
Here are some general steps to follow:
- Get the firebase realtime url.
- Add “.json” to the end of the url
- Use “webread” function in MATLAB to access the data.
- Parse the json string using “jsondecode” function.
Refer the firebase documentation for more information
Hope this helps you
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!