Rasberry PI camera error
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am connecting my raspberry pi2 to matlab in order to do some image processing. However, when I run the following commands all I get is a black screen. I know the issue is not the camera because I tested it on the pi os and it gives me pictures just fine. Please help.
The code is:
mypi=raspi();
myCam=cameraboard(mypi,'Resolution', '640x480');
mySnap=snapshot(myCam);
imshow(mySnap);
hold on
Here is a picture of the screen:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161318/image.jpeg)
2 comentarios
Respuestas (1)
Krishna Moorthy
el 17 de Jul. de 2016
Increase the brightness by the command cam.Brightness = 70. You shall get the image..
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!