How to take a picture with raspberry pi in simulink?

1 view (last 30 days)
Hey, i have the Video capture block and it's conacted with a raspberry pi and how can i take a picture in simulink? Can i creat a Matlab function? Thx!

Answers (2)

Walter Roberson
Walter Roberson on 23 Nov 2017
Note from https://www.mathworks.com/help/supportpkg/raspberrypi/ref/v4l2videocapture.html "During simulation, the model outputs a moving colorbar image." In other words, the block only has useful images when deployed.
  2 Comments
Franziska Schmierer
Franziska Schmierer on 23 Nov 2017
Thanks, but how can i take a picture and save this on PC? Yes during deploying.
Walter Roberson
Walter Roberson on 23 Nov 2017
tcp block connecting back to a model running on the host.
I do not know if there is another way.

Sign in to comment.


Madhu Govindarajan
Madhu Govindarajan on 30 Nov 2017
Edited: Walter Roberson on 30 Nov 2017
Here is a link that I found that I think has the answer, let us know if this works. https://www.mathworks.com/matlabcentral/answers/122727-creating-files-on-raspberry-pi-with-simulink#answer_130766

Community Treasure Hunt

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

Start Hunting!