how to get two different images from a real time video?

1 回表示 (過去 30 日間)
haya yousuf
haya yousuf 2016 年 5 月 26 日
回答済み: Image Analyst 2016 年 8 月 8 日
In my project i have to take two images from a live video for edge detection, and i'm using getsnapshot() function but the two images taken are the same without change. Is there different function i can use for the same purpose?

回答 (2 件)

Vandana Rajan
Vandana Rajan 2016 年 8 月 8 日
編集済み: Vandana Rajan 2016 年 8 月 8 日
Hi,
A demo code is available in MATLAB, 'demoimaq_GetSnapshot.m'. Type 'demoimaq_GetSnapshot.m' in your MATLAB editor. This has examples of how to get multiple frames using the same video object.

Image Analyst
Image Analyst 2016 年 8 月 8 日
If you called it twice, they should be different images. You may not see a difference if nothing in your scene changes, but there should be a difference though it may be only video noise and very slight.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by