Displaying video in a App Designer's tab

조회 수: 10 (최근 30일)
Michal Wieczorek
Michal Wieczorek 2018년 10월 22일
댓글: Kevin Chng 2018년 11월 9일
I want to display a live video preview in app made by App Designer, using preview(), but I don't want it to create seperate window, just display the image in one of the tabs. Is it even possible using App Designer. Do I have to create any objects to make it possible?
  댓글 수: 4
Kevin Chng
Kevin Chng 2018년 10월 24일
it does not affect framerate
You are right, it make me headache sometimes on the inconsistent updating frame rate. I use tic(),toc() and pause().
for loop
tic()
time=toc()
let say you wannt maintain it 0.1 updating rate
pause(0.1-time)
end
However it must ensure 0.1-time is not negative value.
How to make your updating rate faster?
In my memory, i use cla(axes,'reset') in the loop, clear some unused variables, and make the code in the loop more simple and straight forward.
Or,
sacrifice some of your frame to make your display look like faster in playing.
Or,
I heard system object may help, but i haven tried it.
Kevin Chng
Kevin Chng 2018년 11월 8일
Michael Wieczorek,
If you want your video running faster, you may consider programmatically GUI instead of app designer.

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

답변 (1개)

Ahmer Shahid
Ahmer Shahid 2018년 11월 4일
I am using the above code but this very slowly works I want to run it fastly as a live camera. Thanks in advance.
  댓글 수: 3
Ahmer Shahid
Ahmer Shahid 2018년 11월 8일
Yes I am using App Designer and I want to preview camera on an axis.
Kevin Chng
Kevin Chng 2018년 11월 9일
I'm not sure with other's opinion. But if you use programmatically GUI, it will be much more faster without the lag in app designer.

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

Community Treasure Hunt

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

Start Hunting!

Translated by