Raspberry pi camera not detected in MATLAB, works with Simulink

6 vues (au cours des 30 derniers jours)
Siddhesh Rane
Siddhesh Rane le 28 Fév 2019
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

Réponses (1)

Angelo Yeo
Angelo Yeo le 18 Août 2023
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.

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by