Track a product label through a handheld shot and pin a callout to it that moves along.
See it work
The callout follows the labelTap the parts
2follow_label.py tracks it
# follow_label.py: find the label in every frame, then write a callout that follows it as an ASS file.
# Needs: pip install opencv-python numpy
import cv2, sys
clip, x, y, w, h = sys.argv[1], *map(int, sys.argv[2:6]) # the label's box on frame 0
This comes with paid plans
The full page and its download come with every paid plan, along with the rest of the AI toolkit. “Video brand kit in one page” in this folder is free, so you can try one first.
# follow_label.py: find the label in every frame, then write a callout that follows it as an ASS file.
# Needs: pip install opencv-python numpy
import cv2, sys
clip, x, y, w, h = sys.argv[1], *map(int, sys.argv[2:6]) # the label's box on frame 0
This comes with paid plans
The full page and its download come with every paid plan, along with the rest of the AI toolkit. “Video brand kit in one page” in this folder is free, so you can try one first.