Ask Your Question

Revision history [back]

error in findHomography with RANSAC

hi i wrote this codes for estimating Transformation Function between an 2d Image vs 3d Image as:

src_pts = np.float32([kp1[m.queryIdx].pt for m in matches]).reshape(-1, 1, 2)
dst_pts = np.float32([kp2[m.trainIdx].pt for m in matches]).reshape(-1, 1, 2)

compute Homography

M, mask = cv2.findHomography(src_pts, dst_pts, cv2.RANSAC, 5.0)

but pycharm gives many lines of Errors:

*Error: failed to send plot to urlopen(url, buffer)

return, data, timeout)

response = self._open(req, data)

result = self._call_chain(self.handle_open, protocol, protocol +

result = func(*args)

return self.do_open(http.client.HTTPConnection, req)

r = h.getresponse()


version, status, reason = self._read_status()

line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")

return self._sock.recv_into(b)* ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host