-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with calibrating the camera!! #203
Comments
Thanks @gsilano for the answer! Any suggestion please or clarification!! thanks |
I do not know how the suggested application in the link works, therefore, based on my experience, if I had to calibrate the Bebop 2 camera I would prefer to use the well known OpenCV function. As you can read, the code can also be used offline. You can record a video (it is mandatory to have a chessboard) and then process it using the code provided in the link I gave you. You should investigate doing reverse engineering on the |
Hi,
I need the projection matrix K to convert pixels to meters. I have calibrated the camera and actually I got the same values as in the default file but even so I am still getting the same error
and even if I change the depth and height and set them to a different values than 856 x 480 I get the same error with same values!!!
How can I solve this please I think the matrix K is critical in my work. Thanks
This is what I get after calibration:
`('D = ', [0.01855441773892149, -0.04992192012885487, -0.007079594166185704, 0.002927466912916301, 0.0])
('K = ', [534.9749658295674, 0.0, 432.80365705109926, 0.0, 523.7279535777849, 227.29982426950724, 0.0, 0.0, 1.0])
('R = ', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0])
('P = ', [530.457763671875, 0.0, 436.44346924338606, 0.0, 0.0, 524.9320068359375, 224.57206054203925, 0.0, 0.0, 0.0, 1.0, 0.0])
None
oST version 5.0 parameters
[image]
width
856
height
480
[narrow_stereo]
camera matrix
534.974966 0.000000 432.803657
0.000000 523.727954 227.299824
0.000000 0.000000 1.000000
distortion
0.018554 -0.049922 -0.007080 0.002927 0.000000
rectification
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
projection
530.457764 0.000000 436.443469 0.000000
0.000000 524.932007 224.572061 0.000000
0.000000 0.000000 1.000000 0.000000
('Wrote calibration data to', '/tmp/calibrationdata.tar.gz')
('D = ', [0.01855441773892149, -0.04992192012885487, -0.007079594166185704, 0.002927466912916301, 0.0])
('K = ', [534.9749658295674, 0.0, 432.80365705109926, 0.0, 523.7279535777849, 227.29982426950724, 0.0, 0.0, 1.0])
('R = ', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0])
('P = ', [530.457763671875, 0.0, 436.44346924338606, 0.0, 0.0, 524.9320068359375, 224.57206054203925, 0.0, 0.0, 0.0, 1.0, 0.0])
oST version 5.0 parameters
[image]
width
856
height
480
[narrow_stereo]
camera matrix
534.974966 0.000000 432.803657
0.000000 523.727954 227.299824
0.000000 0.000000 1.000000
distortion
0.018554 -0.049922 -0.007080 0.002927 0.000000
rectification
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
projection
530.457764 0.000000 436.443469 0.000000
0.000000 524.932007 224.572061 0.000000
0.000000 0.000000 1.000000 0.000000`
The text was updated successfully, but these errors were encountered: