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!