openCV matching two object python and tracking

I have image with my object enter image description here
and my object
enter image description here

when i execute my code

    import cv2
import numpy as np
cap = cv2.VideoCapture("c.mp4")
while(True):
    ret, img_rgb = cap.read()
    img_rgb = img_rgb[400:1200,10:1000]
    img_rgb = cv2.imread('ccc.jpg')
    img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)
    template = cv2.imread('job/ff2.jpg',0)
    w, h = template.shape[::-1]
    res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED)
    threshold = 0.8
    loc = np.where( res >= threshold)
    for pt in zip(*loc[::-1]):
        print("yes")
        cv2.rectangle(img_gray, pt, (pt[0] + w, pt[1] + h), (0,0,255), 2)

    cv2.imshow('res.png',img_gray)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cv2.waitKey(0)
cap.release()
cv2.destroyAllWindows()

My object is detected
enter image description here

but when i use video its not find my object in video https://youtu.be/O1IB0dnDrWw

Any help please

openCV matching two object python and tracking