Raspberry pi camera not detected in MATLAB, works with Simulink
조회 수: 6 (최근 30일)
이전 댓글 표시
I am using following sketch in simulink with rpi camera which works fine.
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
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!