我需要将两幅(实际上数百张)图像和一米图像与开放式录像带(我从未听说过过)相匹配。 我首先要估计这一转变将适用如下,然后将其应用到一种形象上(含和重复数百次)。 然而,哪怕是最简单的
import cv2
img1 = cv2.imread("img1.jpg", cv2.IMREAD_COLOR)
img2 = cv2.imread("img2.jpg", cv2.IMREAD_COLOR)
cv2.estimateAffinePartial2D(img1, img2)
页: 1
cv2.error: OpenCV(4.9.0) /io/opencv/modules/calib3d/src/ptsetreg.cpp:1108: error: (-215:Assertion failed) count >= 0 && to.checkVector(2) == count in function estimateAffinePartial2D
除了在
如何进行这一估算?