xxxxxxxxxx
def processFrameConcurrent(idx, frame, template, rlist):
res = cv2.matchTemplate(frame,template,cv2.TM_CCOEFF_NORMED)
rlist.append((idx,cv2.minMaxLoc(res)))
xxxxxxxxxx
# Import packages
import cv2 as cv
import numpy as np
img = cv.imread('test.jpg')
print(img.shape) # Print image shape
cv.imshow("original", img)
# Cropping an image
cropped_image = img[80:280, 150:330]