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 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Chandu
2022-3-16
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for IP Cameras 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!