Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

your img_template is 1 channel, greyscale, while your img_rotated has 3 channels. so, it should work with:

img_rotated = imutils.rotate(img_gray, rect[2])