Sign up and get 15% off the four courses and Lifetime.

Text, graphics and the brand look

AI toolkit

Labels that follow the product

Lesson 6 of 9 in Text, graphics and the brand look.

Checked against the makers' documentation on 4 November 2026.

Lesson

Tracks a product label through a handheld shot and writes a callout that follows it, holding still on any frame where the match is unsure.

# 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 is for members.

Become a member to open every Claude skill, prompt and workflow.

$19₹999 + GST, a single payment.

Elsewhere in the library