필터 지우기
필터 지우기

Rasberry PI camera error

조회 수: 3 (최근 30일)
Dennis
Dennis 2016년 4월 15일
답변: Krishna Moorthy 2016년 7월 17일
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