-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
CameraCalibration problems #935
Comments
In your C++ environment you very likely have a (very) different version of OpenCV installed than in your Python environment. Depending on your camera stream you might need or not need corresponding video codecs (whether your camera provides a "raw" stream (no codec required) or a compressed stream (codec required like MPEG-decoder or AVC/h.264-decoder). |
Thank you very much, bro! I am confused about codec, so I show my cpp code with which I take images form camera! Could you please tell me what should I do if possible? I took 49 images from the camera. They are used to calibrate my camera as the above code demos do. In C++ environment,
|
This code to grab and capture a frame from the camera and displaying it looks good. There is a lot happening in the background automatically (grabbing and capturing and decoding if needed to finally store each pixel into More interesting is the calibration - and how it is done. And watch the Youtube-video: sometimes you need to move the different patterns in front of the camera until you see the lines matching suddenly. First check the installed versions and variants of OpenCV you have installed; there are different versions available to download and install; when building OpenCV from source-code you can influence more parameters (e.g. "headless" without rendering&displaying capabilities; using ffmpeg or gstreamer or Intel-MediaSDK/OneVPP for decoding). |
Thank you very very much! I got promising result by set The code is elegant, really! Thank you for sharing! I learnt a lot details about calibrating. But I still feel a little confused by the parameter I also review the code in https://github.com/spmallick/learnopencv/blob/master/CameraCalibration/cameraCalibrationWithUndistortion.cpp. It may mistake the image size in line |
1 similar comment
Thank you very very much! I got promising result by set The code is elegant, really! Thank you for sharing! I learnt a lot details about calibrating. But I still feel a little confused by the parameter I also review the code in https://github.com/spmallick/learnopencv/blob/master/CameraCalibration/cameraCalibrationWithUndistortion.cpp. It may mistake the image size in line |
I download code from https://github.com/spmallick/learnopencv/tree/master/CameraCalibration
I get valid camera parameters when I use the python code. But when I run the code in vs studio 2019, it is very slow and finally get invalid parameters.
This is the result by cpp code.
python code
I guess is there something wrong?
The text was updated successfully, but these errors were encountered: