Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
705e776f
Commit
705e776f
authored
Jul 19, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6816 from phunsukwangdu:devbranch1
parents
b0cc4956
d9134639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
py_calibration.markdown
...torials/py_calib3d/py_calibration/py_calibration.markdown
+2
-2
py_pose.markdown
doc/py_tutorials/py_calib3d/py_pose/py_pose.markdown
+3
-3
No files found.
doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown
View file @
705e776f
...
...
@@ -130,11 +130,11 @@ for fname in images:
if ret == True:
objpoints.append(objp)
cv2.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria)
c
orners2=c
v2.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria)
imgpoints.append(corners)
# Draw and display the corners
cv2.drawChessboardCorners(img, (7,6), corners, ret)
cv2.drawChessboardCorners(img, (7,6), corners
2
, ret)
cv2.imshow('img', img)
cv2.waitKey(500)
...
...
doc/py_tutorials/py_calib3d/py_pose/py_pose.markdown
View file @
705e776f
...
...
@@ -70,15 +70,15 @@ for fname in glob.glob('left*.jpg'):
corners2 = cv2.cornerSubPix(gray,corners,(11,11),(-1,-1),criteria)
# Find the rotation and translation vectors.
r
vecs, tvecs, inliers = cv2.solvePnPRansac
(objp, corners2, mtx, dist)
r
et,rvecs, tvecs, inliers = cv2.solvePnP
(objp, corners2, mtx, dist)
# project 3D points to image plane
imgpts, jac = cv2.projectPoints(axis, rvecs, tvecs, mtx, dist)
img = draw(img,corners2,imgpts)
cv2.imshow('img',img)
k = cv2.waitKey(0) & 0x
ff
if k ==
's'
:
k = cv2.waitKey(0) & 0x
FF
if k ==
ord('s')
:
cv2.imwrite(fname[:6]+'.png', img)
cv2.destroyAllWindows()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment