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

Missing files 'acircleboard.svg' and "calibr_poses.xml" in file 'calibration.py' and 'register_calibr_poses.py' #1

Open
Zhihx opened this issue Oct 10, 2023 · 1 comment

Comments

@Zhihx
Copy link

Zhihx commented Oct 10, 2023

Hello, apprecaite for this wonderful repository first. I found files 'acircleboard.svg' and "calibr_poses.xml" are missing in file 'calibration.py' and 'register_calibr_poses.py'. I am not sure what these two files look like and their roles are. Very appreciate if these two files can be added.

@mnee15
Copy link

mnee15 commented Oct 17, 2023

'acircleboard.svg' file is a checkerboard required for calibration. You can generate it by referring : https://github.com/opi-lab/tools/blob/main/notebooks/Calibration_pattern_generation.ipynb. Additionally, you should invert the background color.
acircleboard

Then, you should run 'register_calibr_poses.py' to register the poses of the board in the .xml file. When you run the script you can rotate and translate the board with common Blender controls and then press "F" every time you can capture the pose (rotation and translation). When you finish, you can press "ESC" to save the poses in the .xml.

At the end, you must run the "calibration.py" script. "cimg_path" is the path where the projected fringe images will be saved. Note that this script does not perform a calibration, it only captures the images needed to calibrate. Then, you can use the typical calibration code with openCV.

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

2 participants