필터 지우기
필터 지우기

How to display previous or next frame in a video file in App Designer GUI?

조회 수: 6 (최근 30일)
Zachary Swinnerton
Zachary Swinnerton 2020년 7월 7일
답변: Raunak Gupta 2020년 8월 8일
Hello,
I have read many articles on the matlab forum, but so far I have found that with the new matlab update they are getting rid of the read(video, iter) and read(video, [15 inf]) functions.
The "new" function is readFrames(). After researching it seems like this function is much less powerful and has no functionallity to read a video from a specific time.
My goal is to have a GUI that has Next Frame and Previous Frame and the user can click the button as many times as they want to continuously step forward or backwards in a video file.
Currently I only have the code written for the GUI to be able to handle stepping back one frame, not mutliple frames. Previous frame is just set as the last current frame value. I would prever not to have thousands of frame variables incase the video file is much larger.
With read() function no longer allowed on matlab how do I go about getting nextframe or previous frame or even trimming a video for that matter? Seems like matlab decided to eliminate a perfectly good function for video editing.
If you can provide any help that would be great.
Thanks

답변 (1개)

Raunak Gupta
Raunak Gupta 2020년 8월 8일
Hi Zachary,
While looking into the R2020a documentation of read I don’t see anywhere it is mentioned that this function will be removed in future release. You will see this kind of Warning on top of the page if some function will be removed from future release or are not recommended to use. Since no warning is present for read function be sure that it will not get removed in near future.

Community Treasure Hunt

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

Start Hunting!

Translated by