Rasberry PI camera error

3 次查看(过去 30 天)
Dennis
Dennis 2016-4-15
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 个评论
Walter Roberson
Walter Roberson 2016-4-15
what is min(mySnap(:)) and max(mySnap(:))
Dennis
Dennis 2016-4-16
min(mySnap(:)) is 0 and max(mySnap(:)) is 217

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by