Display live video in UI axes in app
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I just want to display a gigecam video in a matlab app in axesim matlab R2018a. For that, I just created this code but when I run it doesn't display the image correctly:
g=gigecam('xxx.xx.xxx.x'); % Create a gigecam object using his IP address
im=image(zeros(size(snapshot(g)),'uint8'),'Parent',app.Display);
preview(g,im);
I don't achieve to display my camera, the uiaxes become blue but don't show any images.
Any idea what's wrong and how to display it correctly?
Thanks!
8 个评论
采纳的回答
Kevin Chng
2018-12-4
You may refer to my other solution : https://www.mathworks.com/matlabcentral/answers/425492-displaying-video-in-a-app-designer-s-tab by imshow.
*Change the "getsnapshot(img)" function to "snapshot(img)" for your gigecam cameras.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GigE Vision Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!