Skip to content
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 calibration #46

Open
ssw2002com opened this issue Jan 16, 2020 · 3 comments
Open

camera calibration #46

ssw2002com opened this issue Jan 16, 2020 · 3 comments

Comments

@ssw2002com
Copy link

I have a question about the camera parameter. Do we need the chessboard to estimate the intrinsic mat and extrinsic mat?
Add following code to .datasets/CampusSeq1/Calibration/producePmat.m

K = cell(1,3);
K{1} = K1; K{2} = K2; K{3} = K3;
m_RT = cell(1,3);
m_RT{1} = RT1; m_RT{2} = RT2; m_RT{3} = RT3;
save('intrinsic.mat','K');
save('m_RT.mat', 'm_RT');
save('P.mat', 'P');
save('prjectionMat','P');

generate the camera_parameter.pickle

python ./src/tools/mat2pickle.py /parameter/dir ./datasets/CampusSeq1

@siehlema
Copy link

This depends on your calibration method. Many of them use a chessboard to perform intrinsic and extrinsic calibration.

After you performed the calibration the intrinsic: K and extrinsic: RT (combination of R and T) parameters should be accessible. You can then use the matlab script or use python+pickle to create the camera_parameter.pickle file, which is needed for a custom dataset.

@yuan0101213
Copy link

Hello, I just started learning cv.
When I ran "python ./src/tools/mat2pickle.py /parameter/dir ./datasets/CampusSeq1" to generate the camera_parameter.pickle , it told me "FileNotFoundError: [Errno 2] No such file or directory: '/parameter/dir/intrinsic.mat'" .
I wonder how the file (/parameter/dir/intrinsic.mat) generated?

@Taylorminer
Copy link

@yuan0101213 Do you solve the error? I meet the same bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants