error in findHomography with RANSAC [closed]

asked 2020-08-25 03:24:21 -0500

hoseinimage gravatar image

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 http://127.0.0.1:63342 urlopen(url, buffer)

return opener.open(url, 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()

response.begin()

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2020-08-25 03:46:11.524518

Comments

1

none of your errors are related to opencv

(and we cannot help with your socket or pycharm problems)

(error hints at a misconfigured pycharm /matplotlib / remote rebugging)

berak gravatar imageberak ( 2020-08-25 03:47:53 -0500 )edit