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
32737df1
Commit
32737df1
authored
Dec 16, 2015
by
flp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print found calibration data
parent
b6ce4a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
calibrate.py
samples/python2/calibrate.py
+3
-3
No files found.
samples/python2/calibrate.py
View file @
32737df1
...
@@ -91,9 +91,9 @@ if __name__ == '__main__':
...
@@ -91,9 +91,9 @@ if __name__ == '__main__':
# calculate camera distortion
# calculate camera distortion
rms
,
camera_matrix
,
dist_coefs
,
rvecs
,
tvecs
=
cv2
.
calibrateCamera
(
obj_points
,
img_points
,
(
w
,
h
),
None
,
None
)
rms
,
camera_matrix
,
dist_coefs
,
rvecs
,
tvecs
=
cv2
.
calibrateCamera
(
obj_points
,
img_points
,
(
w
,
h
),
None
,
None
)
# print("
RMS:", rms)
print
(
"
\n
RMS:"
,
rms
)
#
print("camera matrix:\n", camera_matrix)
print
(
"camera matrix:
\n
"
,
camera_matrix
)
#
print("distortion coefficients: ", dist_coefs.ravel())
print
(
"distortion coefficients: "
,
dist_coefs
.
ravel
())
# undistort the image with the calibration
# undistort the image with the calibration
print
(
''
)
print
(
''
)
...
...
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