'Error initializing camera board.'

Hello Guys, I was running a simple image capturing code using raspberry Pi and Pi Camera with Matlab R2017a. This is the code:-
mypi = raspi; cam = cameraboard(mypi,'Resolution','1280x720') for i = 1:10 img = snapshot(cam); imagesc(img); end
The above code worked very well when I ran it for the first time after establishing the connection with raspberry pie and the camera captured an image. But whenever I run the code for the second with the same connection then I get the error as 'Error initializing camera board'. Can anyone help me with me this? I need to capture multiple images without disconnecting the Raspberry Pie in between them. It will be really helpful. Thanks. PS:- I checked all the connections and they are fine. But the code still gives the same error.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

질문:

2018년 5월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by