As a start, I installed Matlab on my PC together with the Raspberry PI support Package , following the instructions posted by Madhu Govindarajan in the first post of his blog posts.
The Raspberry PI is then connected to the camera board, LAN cable and micro USB cable to the PC.
following the instructions from this link from Mathworks, as the method from the help page of the Record function on Matlab didn't work for me !!
Here is the Code I used to capture the video (attached), the code also includes one line in the end to turn off the Raspberry PI Board after the execution is done.
it needs to download the ffmpeg codec from here
the output I got after running the code, is as this:
and here is the video I got:
I also found another useful MATLAB command to open the Raspberry PI linux shell: openShell(rpi)
Top Comments