Import image or image processing performed on Raspberry Pi into Matlab

6 次查看(过去 30 天)
I want to process images as I want using OpenCV on Raspberry Pi and import the processed images into Matlab.
In the example, it is possible to simply show the Raspberry Pi's camera in Matlab.
I want to process images as I want using OpenCV on Raspberry Pi and import the processed images into Matlab.
However, I would like to binarize and thin the images captured with the Raspberry Pi and output them to Matlab.
Of course, I know that I can simply load the image from Raspberry Pi into Matlab and do the same processing.
However, if the number of Raspberry Pis increases from 4 to 8, it will take a long time to process everything in Matlab, so I plan to process as many images as I want on the Raspberry Pi and collect the rest in Matlab.
If it is impossible to load the preprocessed image from the Raspberry Pi with Matlab, I am also thinking of saving the image on the Raspberry Pi and loading the image as a variable in Matlab.
However, neither method came up through examples or searches.
Is there any way?In the example, it is possible to simply show the Raspberry Pi's camera in Matlab.

回答(1 个)

Shubh
Shubh 2024-1-18
Hi,
To achieve your goal of processing images using OpenCV on Raspberry Pi and then importing these processed images into Matlab, you can follow these steps:
1. Capture and Process Images with OpenCV on Raspberry Pi:
  • Use Python and OpenCV on the Raspberry Pi to capture images from the camera, binarize, and thin them.
  • Save the processed images to a file on the Raspberry Pi.
2. Transfer Images to a Location Accessible by Matlab:
  • You can save the processed images to a shared network location or use a direct file transfer method to move them to a system where Matlab is running.
3. Load and Use Images in Matlab:
  • In Matlab, write code to load these processed images from the saved location and use them as needed.
For using MATLAB with a Raspberry Pi, you can refer to this video link too:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by