-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(intrinsic_camera_calibrator): eval mode and specific camera prof…
…iles (#220) * [fix] speed filter option wrong type, added params to config camera calibration file * [wip] functions to get training coverage percentage for skew, board size * [New] added UI indicators for speed, skew and size coverage of the board * [wip] Added Linear error rows/cols indicator * [wip] manually fix problem loading intrinsics file, enabling disabling elements for eval mode * [New] Added percentage linear error indicator rows cols * [New] Aspect ratio measurement and heatmap for linearity added * [New]Clear linearity hetmap, aspect ratio, board angles, save points and calibration parameters into a file, change ui elements in eval mode. * ci(pre-commit): autofix * [wip] Adding menu to load profile parameters * Fixing Typo errors an formatting * [Fix] Fixing more typo errors and spelling * [Fix] disabling cspell for one line to pass check * [Fix] Removing capital from boolean yaml values because yamllint failure * Disabling rule:truthy for yamllint check * fix: solved runtime errors but disabled some features Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]> * [wip] menu to load 3 camera parameters profile * [fix] eval mode working with new ceres solver, aspect ratio working * [New] Added set_parameters fcn to chessboard detection, params added to yaml files * [fix] fixed mistake on the previous commit when adding files * ci(pre-commit): autofix * refactor: first changes according to the PR comments * ci(pre-commit): autofix * refactor: all comments form the discussion were addressed here * ci(pre-commit): autofix * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/board_detections/board_detection.py accepting the suggestion Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/board_detections/board_detection.py accepting the suggestion Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/board_detections/board_detection.py accepting the suggestion of changing the grammar Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/data_collector.py accepting the suggestion of changing the grammar Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/data_collector.py accepting the suggestion of changing the grammar Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/views/image_view.py accepting the suggestion of changing the grammar Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/views/image_view.py accepting the suggestion Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * Update calibrators/intrinsic_camera_calibrator/intrinsic_camera_calibrator/intrinsic_camera_calibrator/data_collector.py accepting suggestion Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> * fix: correcting misspelled * refactor: fixing some spelling errors * refactor: change parameters file for c2 camera --------- Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]> Co-authored-by: yabuta <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenzo Lobos-Tsunekawa <[email protected]>
- Loading branch information
1 parent
9a5d36e
commit 116ada0
Showing
16 changed files
with
1,031 additions
and
159 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...rinsic_camera_calibrator/intrinsic_camera_calibrator/config/c1_intrinsics_calibrator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# yamllint disable-line rule:truthy | ||
board_type: chess_board | ||
board_parameters: | ||
cols: 8 | ||
rows: 6 | ||
cell_size: 0.1 | ||
|
||
calibration_parameters: | ||
use_ransac_pre_rejection: true # yamllint disable-line rule:truthy | ||
pre_rejection_iterations: 100 | ||
pre_rejection_min_hypotheses: 6 | ||
pre_rejection_max_rms_error: 0.35 | ||
max_calibration_samples: 80 | ||
max_fast_calibration_samples: 20 | ||
use_entropy_maximization_subsampling: true # yamllint disable-line rule:truthy | ||
subsampling_pixel_cells: 16 | ||
subsampling_tilt_resolution: 15.0 | ||
subsampling_max_tilt_deg: 45.0 | ||
use_post_rejection: true # yamllint disable-line rule:truthy | ||
post_rejection_max_rms_error: 0.35 | ||
plot_calibration_data_statistics: true # yamllint disable-line rule:truthy | ||
plot_calibration_results_statistics: true # yamllint disable-line rule:truthy | ||
viz_pixel_cells: 16 | ||
viz_tilt_resolution: 15.0 | ||
viz_max_tilt_deg: 45.0 | ||
viz_z_cells: 12 | ||
radial_distortion_coefficients: 3 | ||
rational_distortion_coefficients: 0 | ||
use_tangential_distortion: true | ||
enable_prism_model: false | ||
fix_principal_point: false | ||
fix_aspect_ratio: false | ||
use_lu_decomposition: false | ||
use_qr_decomposition: false | ||
|
||
calibrator_type: opencv | ||
|
||
data_collector: | ||
max_samples: 500 | ||
decorrelate_eval_samples: 5 # cspell:disable-line | ||
max_allowed_tilt: 45.0 | ||
filter_by_speed: true # yamllint disable-line rule:truthy | ||
max_allowed_pixel_speed: 10.0 | ||
max_allowed_speed: 0.1 | ||
filter_by_reprojection_error: true # yamllint disable-line rule:truthy | ||
max_allowed_max_reprojection_error: 0.5 | ||
max_allowed_rms_reprojection_error: 0.3 | ||
filter_by_2d_redundancy: true # yamllint disable-line rule:truthy | ||
min_normalized_2d_center_difference: 0.05 | ||
min_normalized_skew_difference: 0.05 | ||
min_normalized_2d_size_difference: 0.05 | ||
filter_by_3d_redundancy: true # yamllint disable-line rule:truthy | ||
min_3d_center_difference: 1.0 | ||
min_tilt_difference: 15.0 | ||
heatmap_cells: 16 | ||
rotation_heatmap_angle_res: 10 | ||
point_2d_hist_bins: 20 | ||
point_3d_hist_bins: 20 | ||
|
||
chess_board_detector: | ||
adaptive_thresh: false | ||
normalize_image: false | ||
fast_check: false | ||
resized_detection: false | ||
resized_max_resolution: 1000 | ||
sub_pixel_refinement: true |
68 changes: 68 additions & 0 deletions
68
...rinsic_camera_calibrator/intrinsic_camera_calibrator/config/c2_intrinsics_calibrator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# yamllint disable-line rule:truthy | ||
board_type: chess_board | ||
board_parameters: | ||
cols: 8 | ||
rows: 6 | ||
cell_size: 0.1 | ||
|
||
calibration_parameters: | ||
use_ransac_pre_rejection: true # yamllint disable-line rule:truthy | ||
pre_rejection_iterations: 100 | ||
pre_rejection_min_hypotheses: 6 | ||
pre_rejection_max_rms_error: 0.5 | ||
max_calibration_samples: 80 | ||
max_fast_calibration_samples: 20 | ||
use_entropy_maximization_subsampling: true # yamllint disable-line rule:truthy | ||
subsampling_pixel_cells: 16 | ||
subsampling_tilt_resolution: 15.0 | ||
subsampling_max_tilt_deg: 45.0 | ||
use_post_rejection: true # yamllint disable-line rule:truthy | ||
post_rejection_max_rms_error: 0.5 | ||
plot_calibration_data_statistics: true # yamllint disable-line rule:truthy | ||
plot_calibration_results_statistics: true # yamllint disable-line rule:truthy | ||
viz_pixel_cells: 16 | ||
viz_tilt_resolution: 15.0 | ||
viz_max_tilt_deg: 45.0 | ||
viz_z_cells: 12 | ||
radial_distortion_coefficients: 3 | ||
rational_distortion_coefficients: 3 | ||
use_tangential_distortion: true | ||
pre_calibration_num_samples: 40 | ||
regularization_weight: 0.2 | ||
enable_prism_model: false | ||
fix_principal_point: false | ||
fix_aspect_ratio: false | ||
use_lu_decomposition: false | ||
use_qr_decomposition: false | ||
|
||
calibrator_type: ceres | ||
|
||
data_collector: | ||
max_samples: 500 | ||
decorrelate_eval_samples: 5 # cspell:disable-line | ||
max_allowed_tilt: 45.0 | ||
filter_by_speed: true # yamllint disable-line rule:truthy | ||
max_allowed_pixel_speed: 10.0 | ||
max_allowed_speed: 0.1 | ||
filter_by_reprojection_error: true # yamllint disable-line rule:truthy | ||
max_allowed_max_reprojection_error: 2.0 | ||
max_allowed_rms_reprojection_error: 0.5 | ||
filter_by_2d_redundancy: true # yamllint disable-line rule:truthy | ||
min_normalized_2d_center_difference: 0.05 | ||
min_normalized_skew_difference: 0.05 | ||
min_normalized_2d_size_difference: 0.05 | ||
filter_by_3d_redundancy: false # yamllint disable-line rule:truthy | ||
min_3d_center_difference: 1.0 | ||
min_tilt_difference: 15.0 | ||
heatmap_cells: 16 | ||
rotation_heatmap_angle_res: 10 | ||
point_2d_hist_bins: 20 | ||
point_3d_hist_bins: 20 | ||
|
||
chess_board_detector: | ||
adaptive_thresh: false | ||
normalize_image: false | ||
fast_check: false | ||
resized_detection: false | ||
resized_max_resolution: 1000 | ||
sub_pixel_refinement: true |
63 changes: 63 additions & 0 deletions
63
...sic_camera_calibrator/intrinsic_camera_calibrator/config/ceres_intrinsics_calibrator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# yamllint disable-line rule:truthy | ||
board_type: chess_board | ||
board_parameters: | ||
cols: 8 | ||
rows: 6 | ||
cell_size: 0.1 | ||
|
||
calibration_parameters: | ||
use_ransac_pre_rejection: true # yamllint disable-line rule:truthy | ||
pre_rejection_iterations: 100 | ||
pre_rejection_min_hypotheses: 6 | ||
pre_rejection_max_rms_error: 0.35 | ||
max_calibration_samples: 80 | ||
max_fast_calibration_samples: 20 | ||
use_entropy_maximization_subsampling: true # yamllint disable-line rule:truthy | ||
subsampling_pixel_cells: 16 | ||
subsampling_tilt_resolution: 15.0 | ||
subsampling_max_tilt_deg: 45.0 | ||
use_post_rejection: true # yamllint disable-line rule:truthy | ||
post_rejection_max_rms_error: 0.35 | ||
plot_calibration_data_statistics: true # yamllint disable-line rule:truthy | ||
plot_calibration_results_statistics: true # yamllint disable-line rule:truthy | ||
viz_pixel_cells: 16 | ||
viz_tilt_resolution: 15.0 | ||
viz_max_tilt_deg: 45.0 | ||
viz_z_cells: 12 | ||
radial_distortion_coefficients: 3 | ||
rational_distortion_coefficients: 3 | ||
use_tangential_distortion: true | ||
pre_calibration_num_samples: 40 | ||
regularization_weight: 0.2 | ||
|
||
calibrator_type: ceres | ||
|
||
data_collector: | ||
max_samples: 500 | ||
decorrelate_eval_samples: 5 # cspell:disable-line | ||
max_allowed_tilt: 45.0 | ||
filter_by_speed: true # yamllint disable-line rule:truthy | ||
max_allowed_pixel_speed: 10.0 | ||
max_allowed_speed: 0.1 | ||
filter_by_reprojection_error: true # yamllint disable-line rule:truthy | ||
max_allowed_max_reprojection_error: 0.5 | ||
max_allowed_rms_reprojection_error: 0.3 | ||
filter_by_2d_redundancy: true # yamllint disable-line rule:truthy | ||
min_normalized_2d_center_difference: 0.05 | ||
min_normalized_skew_difference: 0.05 | ||
min_normalized_2d_size_difference: 0.05 | ||
filter_by_3d_redundancy: false # yamllint disable-line rule:truthy | ||
min_3d_center_difference: 1.0 | ||
min_tilt_difference: 15.0 | ||
heatmap_cells: 16 | ||
rotation_heatmap_angle_res: 10 | ||
point_2d_hist_bins: 20 | ||
point_3d_hist_bins: 20 | ||
|
||
chess_board_detector: | ||
adaptive_thresh: false | ||
normalize_image: false | ||
fast_check: false | ||
resized_detection: false | ||
resized_max_resolution: 1000 | ||
sub_pixel_refinement: true |
66 changes: 66 additions & 0 deletions
66
...c_camera_calibrator/intrinsic_camera_calibrator/config/general_intrinsics_calibrator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# yamllint disable-line rule:truthy | ||
board_type: chess_board | ||
board_parameters: | ||
cols: 8 | ||
rows: 6 | ||
cell_size: 0.1 | ||
|
||
calibration_parameters: | ||
use_ransac_pre_rejection: true # yamllint disable-line rule:truthy | ||
pre_rejection_iterations: 100 | ||
pre_rejection_min_hypotheses: 6 | ||
pre_rejection_max_rms_error: 0.35 | ||
max_calibration_samples: 80 | ||
max_fast_calibration_samples: 20 | ||
use_entropy_maximization_subsampling: true # yamllint disable-line rule:truthy | ||
subsampling_pixel_cells: 16 | ||
subsampling_tilt_resolution: 15.0 | ||
subsampling_max_tilt_deg: 45.0 | ||
use_post_rejection: true # yamllint disable-line rule:truthy | ||
post_rejection_max_rms_error: 0.35 | ||
plot_calibration_data_statistics: true # yamllint disable-line rule:truthy | ||
plot_calibration_results_statistics: true # yamllint disable-line rule:truthy | ||
viz_pixel_cells: 16 | ||
viz_tilt_resolution: 15.0 | ||
viz_max_tilt_deg: 45.0 | ||
viz_z_cells: 12 | ||
radial_distortion_coefficients: 2 | ||
rational_distortion_coefficients: 0 | ||
use_tangential_distortion: true | ||
enable_prism_model: false | ||
fix_principal_point: false | ||
fix_aspect_ratio: false | ||
use_lu_decomposition: false | ||
use_qr_decomposition: false | ||
|
||
calibrator_type: opencv | ||
|
||
data_collector: | ||
max_samples: 500 | ||
decorrelate_eval_samples: 5 # cspell:disable-line | ||
max_allowed_tilt: 45.0 | ||
filter_by_speed: true # yamllint disable-line rule:truthy | ||
max_allowed_pixel_speed: 10.0 | ||
max_allowed_speed: 0.1 | ||
filter_by_reprojection_error: true # yamllint disable-line rule:truthy | ||
max_allowed_max_reprojection_error: 0.5 | ||
max_allowed_rms_reprojection_error: 0.3 | ||
filter_by_2d_redundancy: true # yamllint disable-line rule:truthy | ||
min_normalized_2d_center_difference: 0.05 | ||
min_normalized_skew_difference: 0.05 | ||
min_normalized_2d_size_difference: 0.05 | ||
filter_by_3d_redundancy: true # yamllint disable-line rule:truthy | ||
min_3d_center_difference: 1.0 | ||
min_tilt_difference: 15.0 | ||
heatmap_cells: 16 | ||
rotation_heatmap_angle_res: 10 | ||
point_2d_hist_bins: 20 | ||
point_3d_hist_bins: 20 | ||
|
||
chess_board_detector: | ||
adaptive_thresh: false | ||
normalize_image: false | ||
fast_check: false | ||
resized_detection: false | ||
resized_max_resolution: 1000 | ||
sub_pixel_refinement: true |
5 changes: 0 additions & 5 deletions
5
...intrinsic_camera_calibrator/intrinsic_camera_calibrator/config/intrinsics_calibrator.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.