This my full code here:
import numpy as np from os.path import sep import cv2 as cv2 # load the overlay image. size should be smaller than video frame size video