Raspberry pi camera not detected in MATLAB, works with Simulink

조회 수: 14 (최근 30일)
Siddhesh Rane
Siddhesh Rane 2019년 2월 28일
답변: Angelo Yeo 2023년 8월 18일
I am using following sketch in simulink with rpi camera which works fine.MATLAB_Question.PNG
But when i am tryinf to use below mentioned command I get an error message
mycam = cameraboard(rpi,'Resolution','1280x720')
Warning: Connection to SSH server at 192.168.0.101 closed. Clear the hardware communication object and re-create it to establish connection.
> In raspi.internal.cameraboard/get.CameraAvailable (line 256)
In raspi.internal.cameraboard (line 141)
In raspi.internal.raspiBase/cameraboard (line 592)
In raspi/cameraboard (line 835)
Failed to detect a Camera Board connected to the Raspberry Pi hardware. If you connected a Camera Board, check that:
1. The ribbon cable connecting the camera module to the board is securely seated at both ends
2. The connectors on the ribbon cable are inserted to the CSI connector and the camera PCB the right way
3. Camera Board is enabled in the "raspi-config" Linux utility

답변 (1개)

Angelo Yeo
Angelo Yeo 2023년 8월 18일
There are a few things to check.
1) Did you correctly install Raspberry Pi Support package? This can be found with a command below.
>> matlabshared.supportpkg.getInstalled
2) What does the command below show?
>> rpi = raspi
Does the command show you available camera correctly? Or are there multiple available cameras?
3) Did you correctly check what the error message suggests?
4) Another troubleshooting guide can be found in the doc below.
- Troubleshoot Raspberry Pi Camera Board
5) Last but not least, do you use USB camera by any chance? The cameraboard function is supposed to be used with CSI camera and may not support USB camera.

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by