Rasberry PI camera error

1 visualizzazione (ultimi 30 giorni)
Dennis
Dennis il 15 Apr 2016
Risposto: Krishna Moorthy il 17 Lug 2016
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:
  2 Commenti
Walter Roberson
Walter Roberson il 15 Apr 2016
what is min(mySnap(:)) and max(mySnap(:))
Dennis
Dennis il 16 Apr 2016
min(mySnap(:)) is 0 and max(mySnap(:)) is 217

Accedi per commentare.

Risposte (1)

Krishna Moorthy
Krishna Moorthy il 17 Lug 2016
Increase the brightness by the command cam.Brightness = 70. You shall get the image..

Categorie

Scopri di più su MATLAB Support Package for Raspberry Pi Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by