-
Notifications
You must be signed in to change notification settings - Fork 39
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
Camera parameters? #33
Comments
You can do it with the floor... it's a grid! |
@kwea123 thanks for your reply and the tip! Won't it be a problem that the tiles seen in the texture of the floor are uneven, though? |
Gotcha, now I get it! Thanks a lot! |
@kwea123 one more question. Have you been using opencv for the calibration or a custom implementation? Because it doesn't seem to work with less than 3x3 image points. |
I use opencv, and it worked with only 6 points. After that you need to guess a little about the parameters because 6 points are too few to get precise parameters. Basically it's just |
Alright, that's good to know. I get a weird error that I can't find any docs on and was wondering if the number of points was an issue (because it is if you were to try and detect e.g. (2,3) points with Feel free to ignore this though, since it goes past the original issue. Just for completeness' sake here is the code and error: ret, mtx, dist, rvecs, tvecs = cv.calibrateCamera(objp.reshape(-1,1,3
...: ).astype(np.float32), imgp.reshape(-1,1,2).astype(np.float32), gray.
...: shape[::-1],None,None)
with objp.reshape(-1, 1, 3).shape
(6, 1, 3)
imgp.reshape(-1, 1, 2).shape
(6, 1, 2) Thank you, again. |
Try to use list and pay attention to the shapes. I use By the way, you need to set |
Awesome, thanks for the generous support. I'm sure I'll figure it out eventually. Edit: |
Hey @awjuliani Great to hear! |
Any chance we could get the results of a camera calibration with the ingame 3rd-person camera. Specifically the camera matrix (focal lengths and optical center) would be of interest for some approaches seen in robotics.
The text was updated successfully, but these errors were encountered: