Extract point from a video
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello. I would like to follow a point on a video by cliking on it, and getting the coordinate as an output (like getpts would do for a picture.) . Do you have any idea on how I can do that with a video, where each next click would send me to a different frame ? Thank you !
0 Kommentare
Antworten (2)
hmi amid
am 1 Mai 2017
I think you should use ginput for this. Use imshow for each frame.
uiopen('video.mp4',1)
for frame=1:size(video,4)
imshow(video(:,:,:,frame))
drawnow
[x(frame),y(frame)]=ginput(1);
end
Amid.
2 Kommentare
Imran
am 16 Mai 2020
In this case, Each frame appears for clicking but frame gets rectangular box once all frames end, that rectangular box appears on just last frame. Can i show all frames with rectangular box once area of box is clicked?
Imran
am 16 Mai 2020
As i used 4 ginput(1) four 4 positions. Last frame is working well with showing rectangular box but not from start. Rectangular box appears just on last frame.
Image Analyst
am 1 Mai 2017
See my attached video tracking solution, where I track the tip of a green colored Sharpie marker.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Display Image finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!