フィルターのクリア

How do i draw a line into a video

4 ビュー (過去 30 日間)
Daniel Hamilton
Daniel Hamilton 2018 年 1 月 24 日
コメント済み: Walter Roberson 2018 年 1 月 24 日
I need to draw a line into a video feed that i can use to count the amount of people that cross that line. I can see its very simple to do this with an image but struggling slightly with a video.

採用された回答

Image Analyst
Image Analyst 2018 年 1 月 24 日
Can't you just call the line() function? How are you showing the video? Is it a live stream from a camera, or a replay from a stored video file, like an .avi, .mpg, .mp4 or whatever? Or are you calling implay() or movie()?
  2 件のコメント
Daniel Hamilton
Daniel Hamilton 2018 年 1 月 24 日
So I’m using a video clip (.avi) Would the line() function allow me to check when something happens over the line? Also I need the line in specific areas can that function be placed by the user?
Walter Roberson
Walter Roberson 2018 年 1 月 24 日
Unless you are using preview(), handling movies always comes down to somehow capturing a frame of the movie into an array and then processing the array the same way that you would process an array that had been created by imread() of an image.
If you want to examine the data along a line in an array, you can use improfile, passing in the coordinates of the endpoints of the line.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by