Import image or image processing performed on Raspberry Pi into Matlab

13 views (last 30 days)
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.

Answers (1)

Shubh
Shubh on 18 Jan 2024
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!

Categories

Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!