I am trying to do simple program for Rasberry Pi camera but the image is white blank when i use imagesc? How can i solve this problem?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/515027/image.png)
0 Commenti
Risposte (1)
Chandu
il 16 Mar 2022
Hi,
As per my understanding, you want to read images from the camera and display the captured images but the variable “img” in “imagesc” function is not getting recognized correctly (in line 3). This issue can be resolved by assigning the “cam” variable to an available webcam. Try installing MATLAB Support Package for USB Webcams in Add-On Manager and try the following script,
cam = webcam
for i = 1:100
img=snapshot(cam)
imagesc(img)
drawnow
end
Use the command webcamlist to see all the available cameras. Refer to webcam MathWorks Documentation for future reference. Hope it helps!
0 Commenti
Vedere anche
Categorie
Scopri di più su MATLAB Support Package for IP Cameras 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!