Clear Filters
Clear Filters

Hi, How can I detect and track an object while its moving in a video and want to know its position?

15 views (last 30 days)
Hi, How can I detect and track an object while its moving in a video and want to know its position?

Accepted Answer

Image Analyst
Image Analyst on 6 Nov 2022
See my attached demo where I track a green Sharpie in a video.
  16 Comments
Walter Roberson
Walter Roberson on 20 Nov 2022
That video is Microsoft ASF codec. That codec is not supported on MacOS. When I convert the video to m4v using VLC then the program runs without problem for me.
I suspect that your system is not reading the video properly.
I find some indications that historically those kinds of videos were supported by MATLAB on Windows, but that there were difficulties that the frame count could not be determined until the file had been completely read. I do not know if that is still the case.
Batuhan Istanbullu
Batuhan Istanbullu on 21 Nov 2022
I will try to search any solutions to that problem if possible, thank you for your help and attention Walter.
Have a good day!

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 6 Nov 2022

Community Treasure Hunt

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

Start Hunting!