jenkins-bot has submitted this change and it was merged.

Change subject: bugfix; solve minor issue with different 
versions/implementations returning tuples of len 2 or 3
......................................................................


bugfix; solve minor issue with different versions/implementations returning 
tuples of len 2 or 3

Change-Id: I86b27fbb7e9682956e57f34d87086d48de89f233
---
M catimages.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  DrTrigon: Verified; Looks good to me, but someone else must approve
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/catimages.py b/catimages.py
index bdfa7bd..dbb4a8f 100644
--- a/catimages.py
+++ b/catimages.py
@@ -864,7 +864,7 @@
         rvec, tvec = cv2.solvePnP(np.array(D3points).astype('float32'),
                                   np.array(D2points).astype('float32'),
                                   np.array(cameraMatrix).astype('float32'),
-                                  None)
+                                  None)[-2:]
 
         # compare to 2D points
         err = []

-- 
To view, visit https://gerrit.wikimedia.org/r/129927
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I86b27fbb7e9682956e57f34d87086d48de89f233
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <[email protected]>
Gerrit-Reviewer: DrTrigon <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to