MATLAB Answers

Is it possible to acquire still images for analysis from a raspberry pi using Simulink only?

3 views (last 30 days)
Keith Madsen
Keith Madsen on 30 Jun 2017
Commented: Keith Madsen on 5 Jul 2017
I need to acquire still images from a raspberry pi in Simulink in order to do image processing on them. I know this is possible through MATLAB using the webcam and snapshot commands, but I need still images from a raspberry pi using Simulink only. There is a V4L2 video capture block for the raspberry pi, but I don't see any blocks for still images. Is it possible to get still images using Simulink only? The goal is to run all the code natively on the pi.

  0 Comments

Sign in to comment.

Answers (1)

Abhisek Roy
Abhisek Roy on 5 Jul 2017
Hi Keith,
Have you installed Simulink support package for Raspberry Pi Hardware? If you have installed them them you should have a library for the same in your library browser.
You can have a look at the following example -
In this example, the image inversion algorithm runs on RPi and the result will be displayed in our computer.
Regards,
Abhisek

  1 Comment

Keith Madsen
Keith Madsen on 5 Jul 2017
Thank you for the response. The image inversion example uses a live video feed, but I am trying to get still photos from the camera. Does Simulink support still photos from a pi?

Sign in to comment.


Translated by