facebookresearch / co-tracker

CoTracker is a model for tracking any point (pixel) on a video.
https://co-tracker.github.io/
Other
2.52k stars 175 forks source link

how to track a specified x-y point? #77

Open mikebilly opened 2 months ago

mikebilly commented 2 months ago

I'm creating a car edit. I want to move around the car and focus on the logo. Suppose at the first frame, the logo is at (x0, y0). How to track the point (x0, y0) and then output as a list of coordinates, for example [(x1, y1), (x2, y2),...] (which means that the initial logo point (x0, y0) has moved to (x1, y1) at the second frame, to (x2, y2) at the third frame, etc,...) for every frames from second frame to the last frame of the video. So that later I can re-position the frames in such a way that those points in the list are centered in the screen.

nikitakaraevv commented 2 months ago

Hi @mikebilly, you can check out our Colab demo that shows how to track a single query point from any frame in a video. Please look at the section "Tracking manually selected points" and let me know if that's what you need. Also, could you send this car video?

mikebilly commented 2 months ago

@nikitakaraevv sorry for my late reply, please try to track and stabilize the motion moving around the car logo: https://drive.google.com/drive/folders/1FdO9T3qEyaXvt7dUIkCTJZP2AMtIvTt0?usp=sharing