I applied below code
"templateMap = cv.matchTemplate(img, resized_template, cv.TM_CCOEFF_NORMED)"
Before applying the image and template,apply Gaussian Blur, edge detection, and binary thresholding to both images to increase matching accuracy. Despite these efforts, I could not achieve significant improvement.
I did preprocessing on image and use cv.TM_CCOEFF_NORMED algorithm.