Display live video in UI axes in app

조회 수: 3 (최근 30일)
Beñat Estala
Beñat Estala 2018년 12월 3일
댓글: Beñat Estala 2018년 12월 4일
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
Kevin Chng 2018년 12월 4일
Do you mind accept my answer and it will give me reputation point.
Beñat Estala
Beñat Estala 2018년 12월 4일
Of course! Thank you again.

댓글을 달려면 로그인하십시오.

채택된 답변

Kevin Chng
Kevin Chng 2018년 12월 4일
*Change the "getsnapshot(img)" function to "snapshot(img)" for your gigecam cameras.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by