update function rename/ignore mapping
MODIFY
gen_rust.py
gen_rust.py
@@ -35,36 +35,29 @@ cross_modules_deps = {
renamed_funcs = {
# calib3D
- "cv_StereoBM_StereoBM": "default",
- "cv_StereoBM_StereoBM_int_preset_int_ndisparities_int_SADWindowSize": "new",
- "cv_StereoSGBM_StereoSGBM": "default",
- "cv_StereoSGBM_StereoSGBM_int_minDisparity_int_numDisparities_int_SADWindowSize_int_P1_int_P2_int_disp12MaxDiff_int_preFilterCap_int_uniquenessRatio_int_speckleWindowSize_int_speckleRange_bool_fullDP": "new",
- "cv_findEssentialMat_InputArray_points1_InputArray_points2_InputArray_cameraMatrix_int_method_double_prob_double_threshold_OutputArray_mask": "find_essential_map_matrix",
- "cv_findEssentialMat_InputArray_points1_InputArray_points2_double_focal_Point2d_pp_int_method_double_prob_double_threshold_OutputArray_mask": "find_essential_mat",
- "cv_findFundamentalMat_InputArray_points1_InputArray_points2_int_method_double_param1_double_param2_OutputArray_mask" : "-",
- "cv_findHomography_InputArray_srcPoints_InputArray_dstPoints_OutputArray_mask_int_method_double_ransacReprojThreshold": "find_homography",
- "cv_findHomography_InputArray_srcPoints_InputArray_dstPoints_int_method_double_ransacReprojThreshold_OutputArray_mask": "find_homography_1", # disappears in 3.0
- "cv_findHomography_InputArray_srcPoints_InputArray_dstPoints_int_method_double_ransacReprojThreshold_OutputArray_mask_int_maxIters_double_confidence" : "find_homography_full",
- "cv_fisheye_distortPoints_InputArray_undistorted_OutputArray_distorted_InputArray_K_InputArray_D_double_alpha": "distort_points",
- "cv_fisheye_projectPoints_InputArray_objectPoints_OutputArray_imagePoints_InputArray_rvec_InputArray_tvec_InputArray_K_InputArray_D_double_alpha_OutputArray_jacobian": "fisheye_project_points",
- "cv_fisheye_undistortImage_InputArray_distorted_OutputArray_undistorted_InputArray_K_InputArray_D_InputArray_Knew_Size_new_size": "fisheye_undistort_image",
- "cv_fisheye_undistortPoints_InputArray_distorted_OutputArray_undistorted_InputArray_K_InputArray_D_InputArray_R_InputArray_P": "fisheye_undistort_points",
- "cv_projectPoints_InputArray_objectPoints_InputArray_rvec_InputArray_tvec_InputArray_cameraMatrix_InputArray_distCoeffs_OutputArray_imagePoints_OutputArray_jacobian_double_aspectRatio" : "project_points",
- "cv_recoverPose_InputArray_E_InputArray_points1_InputArray_points2_InputArray_cameraMatrix_OutputArray_R_OutputArray_t_InputOutputArray_mask": "recover_pose_matrix",
- "cv_recoverPose_InputArray_E_InputArray_points1_InputArray_points2_OutputArray_R_OutputArray_t_double_focal_Point2d_pp_InputOutputArray_mask": "recover_pose",
+ # "cv_StereoBM_StereoBM": "default",
+ # "cv_StereoBM_StereoBM_int_preset_int_ndisparities_int_SADWindowSize": "new",
+ # "cv_StereoSGBM_StereoSGBM": "default",
+ # "cv_StereoSGBM_StereoSGBM_int_minDisparity_int_numDisparities_int_SADWindowSize_int_P1_int_P2_int_disp12MaxDiff_int_preFilterCap_int_uniquenessRatio_int_speckleWindowSize_int_speckleRange_bool_fullDP": "new",
+ "cv_findEssentialMat_Mat_points1_Mat_points2_Mat_cameraMatrix_int_method_double_prob_double_threshold_Mat_mask": "find_essential_map_matrix",
+ "cv_findHomography_Mat_srcPoints_Mat_dstPoints_int_method_double_ransacReprojThreshold_Mat_mask_int_maxIters_double_confidence": "find_homography_full",
+ "cv_fisheye_projectPoints_Mat_objectPoints_Mat_imagePoints_Mat_rvec_Mat_tvec_Mat_K_Mat_D_double_alpha_Mat_jacobian": "fisheye_project_points",
+ "cv_fisheye_undistortImage_Mat_distorted_Mat_undistorted_Mat_K_Mat_D_Mat_Knew_Size_new_size": "fisheye_undistort_image",
+ "cv_fisheye_undistortPoints_Mat_distorted_Mat_undistorted_Mat_K_Mat_D_Mat_R_Mat_P": "fisheye_undistort_points",
+ "cv_recoverPose_Mat_E_Mat_points1_Mat_points2_Mat_cameraMatrix_Mat_R_Mat_t_Mat_mask": "recover_pose_matrix",
# core
- "cv_Algorithm_set_String_name_Mat_value": "set_mat",
- "cv_Algorithm_set_String_name_VectorOfMat_value": "set_VectorOfMat",
- "cv_Algorithm_set_String_name_bool_value": "set_bool",
- "cv_Algorithm_set_String_name_double_value": "set_double",
- "cv_Algorithm_set_String_name_int_value": "set_int",
- "cv_Algorithm_set_String_name_String_value": "set_string",
- "cv_Algorithm_setInt_String_name_int_value" : "-",
- "cv_Algorithm_setDouble_String_name_double_value" : "-",
- "cv_Algorithm_setBool_String_name_bool_value" : "-",
- "cv_Algorithm_setString_String_name_String_value" : "-",
- "cv_Algorithm_setMat_String_name_Mat_value" : "-",
- "cv_Algorithm_setMatVector_String_name_VectorOfMat_value" : "-",
+ # "cv_Algorithm_set_String_name_Mat_value": "set_mat",
+ # "cv_Algorithm_set_String_name_VectorOfMat_value": "set_VectorOfMat",
+ # "cv_Algorithm_set_String_name_bool_value": "set_bool",
+ # "cv_Algorithm_set_String_name_double_value": "set_double",
+ # "cv_Algorithm_set_String_name_int_value": "set_int",
+ # "cv_Algorithm_set_String_name_String_value": "set_string",
+ # "cv_Algorithm_setInt_String_name_int_value" : "-",
+ # "cv_Algorithm_setDouble_String_name_double_value" : "-",
+ # "cv_Algorithm_setBool_String_name_bool_value" : "-",
+ # "cv_Algorithm_setString_String_name_String_value" : "-",
+ # "cv_Algorithm_setMat_String_name_Mat_value" : "-",
+ # "cv_Algorithm_setMatVector_String_name_VectorOfMat_value" : "-",
"cv_MatExpr_type" : "typ",
"cv_Mat_Mat": "new",
"cv_Mat_Mat_Mat_m": "copy",
@@ -77,7 +70,7 @@ renamed_funcs = {
"cv_Mat_Mat_int_rows_int_cols_int_type_Scalar_s": "new_rows_cols_with_default",
"cv_Mat_colRange_Range_r": "colrange",
"cv_Mat_colRange_int_startcol_int_endcol": "colbounds",
- "cv_Mat_copyTo_OutputArray_m_InputArray_mask": "copy_to_masked",
+ "cv_Mat_copyTo_Mat_m_Mat_mask": "copy_to_masked",
"cv_Mat_create_Size_size_int_type": "-",
"cv_Mat_create_int_rows_int_cols_int_type": "-",
"cv_Mat_diag_Mat_d": "diag_new_mat",
@@ -91,12 +84,12 @@ renamed_funcs = {
"cv_Mat_rowRange_int_startrow_int_endrow": "rowbounds",
"cv_Mat_type": "typ",
"cv_PCA_PCA": "default",
- "cv_PCA_PCA_InputArray_data_InputArray_mean_int_flags_double_retainedVariance": "new_mat_variance",
- "cv_PCA_PCA_InputArray_data_InputArray_mean_int_flags_int_maxComponents": "new_mat_max",
- "cv_PCA_backProject_InputArray_vec_OutputArray_result": "back_project_to",
- "cv_PCA_project_InputArray_vec_OutputArray_result": "project_to",
- "cv_PCACompute_InputArray_data_InputOutputArray_mean_OutputArray_eigenvectors_double_retainedVariance" : "pca_compute_variance",
- "cv_PCACompute_InputArray_data_InputOutputArray_mean_OutputArray_eigenvectors_int_maxComponents" : "pca_compute",
+ "cv_PCA_PCA_Mat_data_Mat_mean_int_flags_double_retainedVariance": "new_mat_variance",
+ "cv_PCA_PCA_Mat_data_Mat_mean_int_flags_int_maxComponents": "new_mat_max",
+ "cv_PCA_backProject_Mat_vec_Mat_result": "back_project_to",
+ "cv_PCA_project_Mat_vec_Mat_result": "project_to",
+ "cv_PCACompute_Mat_data_Mat_mean_Mat_eigenvectors_double_retainedVariance": "pca_compute_variance",
+ "cv_PCACompute_Mat_data_Mat_mean_Mat_eigenvectors_int_maxComponents": "pca_compute",
"cv_Range_Range": "default",
"cv_Range_Range_int__start_int__end": "new",
"cv_RotatedRect_RotatedRect": "default",
@@ -105,73 +98,61 @@ renamed_funcs = {
"cv_TermCriteria_TermCriteria": "default",
"cv_TermCriteria_TermCriteria_int_type_int_maxCount_double_epsilon": "new",
"cv_UMat_type": "typ",
- "cv_UMat_copyTo_OutputArray_m": "copy_to",
- "cv_UMat_copyTo_OutputArray_m_InputArray_mask": "copy_to_masked",
- "cv_calcCovarMatrix_InputArray_samples_OutputArray_covar_OutputArray_mean_int_flags_int_ctype": "calc_covar_matrix_arrays", # 2.x
- "cv_calcCovarMatrix_InputArray_samples_OutputArray_covar_InputOutputArray_mean_int_flags_int_ctype" : "calc_covar_matrix_arrays", # 3.x
+ "cv_UMat_copyTo_Mat_m": "copy_to",
+ "cv_UMat_copyTo_Mat_m_Mat_mask": "copy_to_masked",
+ "cv_calcCovarMatrix_Mat_samples_Mat_covar_Mat_mean_int_flags_int_ctype": "calc_covar_matrix_arrays",
"cv_calcCovarMatrix_Mat_samples_int_nsamples_Mat_covar_Mat_mean_int_flags_int_ctype": "calc_covar_matrix",
"cv_clipLine_Size_imgSize_Point_pt1_Point_pt2": "clip_line_size",
+ "cv_clipLine_Size2l_imgSize_Point2l_pt1_Point2l_pt2": "clip_line_size_i64",
"cv_clipLine_Rect_imgRect_Point_pt1_Point_pt2": "clip_line",
"cv_cv_abs_short_x": "-",
"cv_cv_abs_uchar_x": "-",
- "cv_divide_double_scale_InputArray_src2_OutputArray_dst_int_dtype": "divide",
- "cv_divide_InputArray_src1_InputArray_src2_OutputArray_dst_double_scale_int_dtype": "divide_mat",
+ "cv_divide_double_scale_Mat_src2_Mat_dst_int_dtype": "divide",
+ "cv_divide_Mat_src1_Mat_src2_Mat_dst_double_scale_int_dtype": "divide_mat",
"cv_ellipse_Mat_img_Point_center_Size_axes_double_angle_double_startAngle_double_endAngle_Scalar_color_int_thickness_int_lineType_int_shift": "ellipse",
"cv_ellipse_Mat_img_RotatedRect_box_Scalar_color_int_thickness_int_lineType": "ellipse_new_rotated_rect",
- "cv_eigen_InputArray_src_OutputArray_eigenvalues_int_lowindex_int_highindex" : "eigen_indexes",
- "cv_eigen_InputArray_src_bool_computeEigenvectors_OutputArray_eigenvalues_OutputArray_eigenvectors": "eigen",
- "cv_eigen_InputArray_src_OutputArray_eigenvalues_OutputArray_eigenvectors_int_lowindex_int_highindex": "eigen_vectors",
- "cv_hconcat_Mat_src_size_t_nsrc_OutputArray_dst" : "-",
+ "cv_ellipse2Poly_Point2d_center_Size2d_axes_int_angle_int_arcStart_int_arcEnd_int_delta_VectorOfPoint2d_pts": "ellipse2_poly_f64",
+ # "cv_eigen_Mat_src_Mat_eigenvalues_int_lowindex_int_highindex": "eigen_indexes", ?
+ # "cv_eigen_Mat_src_bool_computeEigenvectors_Mat_eigenvalues_Mat_eigenvectors": "eigen", ?
+ # "cv_eigen_Mat_src_Mat_eigenvalues_Mat_eigenvectors_int_lowindex_int_highindex": "eigen_vectors", ?
+ "cv_hconcat_Mat_src_size_t_nsrc_Mat_dst": "-",
"cv_max_Mat_src1_Mat_src2_Mat_dst": "max_mat_mat",
"cv_max_Mat_src1_double_src2_Mat_dst": "max_mat",
- "cv_merge_Mat_mv_size_t_count_OutputArray_dst": "-",
+ "cv_merge_Mat_mv_size_t_count_Mat_dst": "-",
"cv_min_Mat_src1_Mat_src2_Mat_dst": "min_mat_mat",
- "cv_min_Mat_src1_double_src2_Mat_dst": "min_mat",
- "cv_norm_InputArray_src1_InputArray_src2_int_normType_InputArray_mask": "norm_with_type",
- "cv_norm_InputArray_src1_int_normType_InputArray_mask": "norm",
- "cv_rectangle_Mat_img_Point_pt1_Point_pt2_Scalar_color_int_thickness_int_lineType_int_shift": "rectangle_points", # 2.0
- "cv_rectangle_InputOutputArray_img_Point_pt1_Point_pt2_Scalar_color_int_thickness_int_lineType_int_shift": "rectangle_points", # 3.0
+ "cv_norm_Mat_src1_Mat_src2_int_normType_Mat_mask": "norm_with_type",
+ "cv_norm_Mat_src1_int_normType_Mat_mask": "norm",
+ "cv_rectangle_Mat_img_Point_pt1_Point_pt2_Scalar_color_int_thickness_int_lineType_int_shift": "rectangle_points",
"cv_rectangle_Mat_img_Rect_rec_Scalar_color_int_thickness_int_lineType_int_shift": "rectangle",
- "cv_repeat_InputArray_src_int_ny_int_nx_OutputArray_dst": "repeat_to",
+ "cv_repeat_Mat_src_int_ny_int_nx_Mat_dst": "repeat_to",
"cv_repeat_Mat_src_int_ny_int_nx": "repeat",
- "cv_size_t" : "-",
"cv_split_Mat_m_VectorOfMat_mv": "split",
"cv_split_Mat_src_Mat_mvbegin": "split_at",
- "cv_vconcat_Mat_src_size_t_nsrc_OutputArray_dst" : "-",
+ "cv_vconcat_Mat_src_size_t_nsrc_Mat_dst": "-",
# features2d
- "cv_AGAST_InputArray_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression": "AGAST",
- "cv_AGAST_InputArray_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression_int_type": "AGAST_with_type",
+ "cv_AGAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression": "AGAST",
+ "cv_AGAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression_int_type": "AGAST_with_type",
"cv_BOWKMeansTrainer_cluster": "default",
"cv_BOWKMeansTrainer_cluster_Mat_descriptors": "new",
"cv_BOWKMeansTrainer_BOWKMeansTrainer_int_clusterCount_TermCriteria_termcrit_int_attempts_int_flags": "new_with_criteria",
- "cv_BOWImgDescriptorExtractor_compute_InputArray_keypointDescriptors_OutputArray_imgDescriptor_VectorOfVectorOfint_pointIdxsOfClusters": "compute",
- "cv_BOWImgDescriptorExtractor_compute_InputArray_image_VectorOfKeyPoint_keypoints_OutputArray_imgDescriptor_VectorOfVectorOfint_pointIdxsOfClusters_Mat_descriptors": "compute_desc",
+ "cv_BOWImgDescriptorExtractor_compute_Mat_keypointDescriptors_Mat_imgDescriptor_VectorOfVectorOfint_pointIdxsOfClusters": "compute",
+ "cv_BOWImgDescriptorExtractor_compute_Mat_image_VectorOfKeyPoint_keypoints_Mat_imgDescriptor_VectorOfVectorOfint_pointIdxsOfClusters_Mat_descriptors": "compute_desc",
"cv_DMatch_DMatch": "default",
"cv_DMatch_DMatch_int__queryIdx_int__trainIdx_float__distance": "new",
"cv_DMatch_DMatch_int__queryIdx_int__trainIdx_int__imgIdx_float__distance": "new_index",
- "cv_DescriptorExtractor_compute_Mat_image_VectorOfKeyPoint_keypoints_Mat_descriptors": "compute",
- "cv_DescriptorExtractor_compute_VectorOfMat_images_VectorOfVectorOfKeyPoint_keypoints_VectorOfMat_descriptors": "compute_n",
+ # "cv_DescriptorExtractor_compute_Mat_image_VectorOfKeyPoint_keypoints_Mat_descriptors": "compute",
+ # "cv_DescriptorExtractor_compute_VectorOfMat_images_VectorOfVectorOfKeyPoint_keypoints_VectorOfMat_descriptors": "compute_n",
"cv_DescriptorMatcher_knnMatch_Mat_queryDescriptors_Mat_trainDescriptors_VectorOfVectorOfDMatch_matches_int_k_Mat_mask_bool_compactResult": "knn_train_matches",
"cv_DescriptorMatcher_knnMatch_Mat_queryDescriptors_VectorOfVectorOfDMatch_matches_int_k_VectorOfMat_masks_bool_compactResult": "knn_matches",
- "cv_DescriptorMatcher_match_Mat_queryDescriptors_Mat_trainDescriptors_VectorOfDMatch_matches_Mat_mask": "train_matches",
"cv_DescriptorMatcher_match_Mat_queryDescriptors_VectorOfDMatch_matches_VectorOfMat_masks": "matches",
- "cv_DescriptorMatcher_match_InputArray_queryDescriptors_InputArray_trainDescriptors_VectorOfDMatch_matches_InputArray_mask": "matches",
+ "cv_DescriptorMatcher_match_Mat_queryDescriptors_Mat_trainDescriptors_VectorOfDMatch_matches_Mat_mask": "train_matches",
"cv_DescriptorMatcher_radiusMatch_Mat_queryDescriptors_Mat_trainDescriptors_VectorOfVectorOfDMatch_matches_float_maxDistance_Mat_mask_bool_compactResult": "train_radius_matches",
"cv_DescriptorMatcher_radiusMatch_Mat_queryDescriptors_VectorOfVectorOfDMatch_matches_float_maxDistance_VectorOfMat_masks_bool_compactResult": "radius_matches",
- "cv_FREAK_FREAK_FREAK_rhs": "copy",
- "cv_FREAK_FREAK_bool_orientationNormalized_bool_scaleNormalized_float_patternScale_int_nOctaves_VectorOfint_selectedPairs": "new",
- "cv_FAST_InputArray_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression" : "FAST",
- "cv_FAST_InputArray_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression_int_type": "FAST_with_type",
- "cv_FeatureDetector_detect_Mat_image_VectorOfKeyPoint_keypoints_Mat_mask": "detect",
- "cv_FeatureDetector_detect_VectorOfMat_images_VectorOfVectorOfKeyPoint_keypoints_VectorOfMat_masks": "detect_n",
- "cv_GenericDescriptorMatcher_classify_Mat_queryImage_VectorOfKeyPoint_queryKeypoints": "classify",
- "cv_GenericDescriptorMatcher_classify_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_Mat_trainImage_VectorOfKeyPoint_trainKeypoints": "train_classify",
- "cv_GenericDescriptorMatcher_knnMatch_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_Mat_trainImage_VectorOfKeyPoint_trainKeypoints_VectorOfVectorOfDMatch_matches_int_k_Mat_mask_bool_compactResult": "train_classify_matches",
- "cv_GenericDescriptorMatcher_knnMatch_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_VectorOfVectorOfDMatch_matches_int_k_VectorOfMat_masks_bool_compactResult": "knn_matches",
- "cv_GenericDescriptorMatcher_match_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_Mat_trainImage_VectorOfKeyPoint_trainKeypoints_VectorOfDMatch_matches_Mat_mask": "train_matches",
- "cv_GenericDescriptorMatcher_match_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_VectorOfDMatch_matches_VectorOfMat_masks": "matches",
- "cv_GenericDescriptorMatcher_radiusMatch_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_Mat_trainImage_VectorOfKeyPoint_trainKeypoints_VectorOfVectorOfDMatch_matches_float_maxDistance_Mat_mask_bool_compactResult": "train_radius_matches",
- "cv_GenericDescriptorMatcher_radiusMatch_Mat_queryImage_VectorOfKeyPoint_queryKeypoints_VectorOfVectorOfDMatch_matches_float_maxDistance_VectorOfMat_masks_bool_compactResult": "radius_matches",
+ # "cv_FREAK_FREAK_FREAK_rhs": "copy",
+ # "cv_FREAK_FREAK_bool_orientationNormalized_bool_scaleNormalized_float_patternScale_int_nOctaves_VectorOfint_selectedPairs": "new",
+ "cv_FAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression": "FAST",
+ "cv_FAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression_int_type": "FAST_with_type",
+ "cv_Feature2D_detect_VectorOfMat_images_VectorOfVectorOfKeyPoint_keypoints_VectorOfMat_masks": "detect_n",
"cv_KeyPoint_KeyPoint": "default",
"cv_KeyPoint_KeyPoint_Point2f__pt_float__size_float__angle_float__response_int__octave_int__class_id": "new_point",
"cv_KeyPoint_KeyPoint_float_x_float_y_float__size_float__angle_float__response_int__octave_int__class_id": "new_coords",
@@ -180,100 +161,89 @@ renamed_funcs = {
"cv_MatStep_MatStep": "default",
"cv_MatStep_MatStep_size_t_s": "new",
"cv_drawMatches_Mat_img1_VectorOfKeyPoint_keypoints1_Mat_img2_VectorOfKeyPoint_keypoints2_VectorOfDMatch_matches1to2_Mat_outImg_Scalar_matchColor_Scalar_singlePointColor_VectorOfchar_matchesMask_int_flags": "draw_matches",
- "cv_drawMatches_InputArray_img1_VectorOfKeyPoint_keypoints1_InputArray_img2_VectorOfKeyPoint_keypoints2_VectorOfDMatch_matches1to2_InputOutputArray_outImg_Scalar_matchColor_Scalar_singlePointColor_VectorOfchar_matchesMask_int_flags": "draw_matches",
"cv_drawMatches_Mat_img1_VectorOfKeyPoint_keypoints1_Mat_img2_VectorOfKeyPoint_keypoints2_VectorOfVectorOfDMatch_matches1to2_Mat_outImg_Scalar_matchColor_Scalar_singlePointColor_VectorOfVectorOfchar_matchesMask_int_flags": "draw_vector_matches",
- "cv_drawMatches_InputArray_img1_VectorOfKeyPoint_keypoints1_InputArray_img2_VectorOfKeyPoint_keypoints2_VectorOfVectorOfDMatch_matches1to2_InputOutputArray_outImg_Scalar_matchColor_Scalar_singlePointColor_VectorOfVectorOfchar_matchesMask_int_flags": "draw_vector_matches",
"cv_setImpl_int_flags": "-",
"cv_setUseCollection_bool_flag": "-",
"cv_useCollection": "-",
- # highgui
- "cv_VideoCapture_VideoCapture": "default",
- "cv_VideoCapture_VideoCapture_int_index": "index",
- "cv_VideoCapture_VideoCapture_string_filename": "filename",
- "cv_VideoCapture_VideoCapture_String_filename_int_apiPreference": "filename_api",
- "cv_VideoCapture_open_int_device": "open_device",
- "cv_VideoCapture_open_int_index": "open_index",
- "cv_VideoCapture_open_string_filename": "open_filename",
- "cv_VideoCapture_open_String_filename_int_apiPreference": "open_filename_api",
- "cv_VideoWriter_VideoWriter": "default",
- "cv_VideoWriter_VideoWriter_string_filename_int_fourcc_double_fps_Size_frameSize_bool_isColor": "new",
+ # imgcodecs
"cv_imdecode_Mat_buf_int_flags": "decode",
"cv_imdecode_Mat_buf_int_flags_Mat_dst": "decode_to",
- "cv_imdecode_InputArray_buf_int_flags": "-",
- "cv_imdecode_InputArray_buf_int_flags_Mat_dst": "-",
- "cv_addText_Mat_img_String_text_Point_org_String_nameFont_int_pointSize_Scalar_color_int_weight_int_style_int_spacing" : "-",
# imgproc
- "cv_Canny_InputArray_image_OutputArray_edges_double_threshold1_double_threshold2_int_apertureSize_bool_L2gradient": "-",
- "cv_FilterEngine_start_Mat_src_Rect_srcRoi_bool_isolated_int_maxBufRows": "start_mat",
- "cv_FilterEngine_start_Size_wholeSize_Rect_roi_int_maxBufRows": "start_size",
- "cv_GeneralizedHough_detect_InputArray_image_OutputArray_positions_OutputArray_votes_int_cannyThreshold": "detect",
- "cv_GeneralizedHough_detect_InputArray_edges_InputArray_dx_InputArray_dy_OutputArray_positions_OutputArray_votes": "detect_edges",
- "cv_GeneralizedHough_setTemplate_Mat_edges_Mat_dx_Mat_dy_Point_templCenter": "set_template_edges",
- "cv_GeneralizedHough_setTemplate_Mat_templ_int_cannyThreshold_Point_templCenter": "set_template_templ",
- "cv_GeneralizedHough_setTemplate_InputArray_templ_int_cannyThreshold_Point_templCenter" : "-",
+ "cv_Canny_Mat_dx_Mat_dy_Mat_edges_double_threshold1_double_threshold2_bool_L2gradient": "canny_derivative",
+ # "cv_GeneralizedHough_detect_Mat_image_Mat_positions_Mat_votes_int_cannyThreshold": "detect",
+ # "cv_GeneralizedHough_detect_Mat_edges_Mat_dx_Mat_dy_Mat_positions_Mat_votes": "detect_edges",
+ # "cv_GeneralizedHough_setTemplate_Mat_edges_Mat_dx_Mat_dy_Point_templCenter": "set_template_edges",
+ # "cv_GeneralizedHough_setTemplate_Mat_templ_int_cannyThreshold_Point_templCenter": "set_template_templ",
"cv_Moments_Moments": "default",
"cv_Moments_Moments_double_m00_double_m10_double_m01_double_m20_double_m11_double_m02_double_m30_double_m21_double_m12_double_m03": "new",
"cv_Subdiv2D_Subdiv2D": "default",
"cv_Subdiv2D_Subdiv2D_Rect_rect": "new",
"cv_Subdiv2D_insert_Point2f_pt": "insert",
"cv_Subdiv2D_insert_VectorOfPoint2f_ptvec": "insert_n",
- "cv_connectedComponentsWithStats_InputArray_image_OutputArray_labels_OutputArray_stats_OutputArray_centroids_int_connectivity_int_ltype_int_ccltype": "-",
- "cv_connectedComponents_InputArray_image_OutputArray_labels_int_connectivity_int_ltype_int_ccltype": "-",
- "cv_distanceTransform_InputArray_src_OutputArray_dst_OutputArray_labels_int_distanceType_int_maskSize_int_labelType": "distance_transform_labels",
- "cv_distanceTransform_InputArray_src_OutputArray_dst_int_distanceType_int_maskSize": "distance_transform",
- "cv_integral_InputArray_src_OutputArray_sum_OutputArray_sqsum_OutputArray_tilted_int_sdepth_int_sqdepth": "integral_titled_sq",
- "cv_integral_InputArray_src_OutputArray_sum_OutputArray_sqsum_OutputArray_tilted_int_sdepth" : "integral_tilted",
- "cv_integral_InputArray_src_OutputArray_sum_OutputArray_sqsum_int_sdepth_int_sqdepth": "integral_sq_depth",
- "cv_integral_InputArray_src_OutputArray_sum_OutputArray_sqsum_int_sdepth": "integral_sq",
- "cv_integral_InputArray_src_OutputArray_sum_int_sdepth": "integral",
+ "cv_findContours_Mat_image_VectorOfMat_contours_Mat_hierarchy_int_mode_int_method_Point_offset": "find_contours_with_hierarchy",
+ "cv_distanceTransform_Mat_src_Mat_dst_Mat_labels_int_distanceType_int_maskSize_int_labelType": "distance_transform_labels",
+ "cv_distanceTransform_Mat_src_Mat_dst_int_distanceType_int_maskSize": "distance_transform",
+ "cv_integral_Mat_src_Mat_sum_Mat_sqsum_Mat_tilted_int_sdepth_int_sqdepth": "integral_titled_sq",
+ "cv_integral_Mat_src_Mat_sum_Mat_sqsum_Mat_tilted_int_sdepth": "integral_tilted",
+ "cv_integral_Mat_src_Mat_sum_Mat_sqsum_int_sdepth_int_sqdepth": "integral_sq_depth",
+ "cv_integral_Mat_src_Mat_sum_Mat_sqsum_int_sdepth": "integral_sq",
+ "cv_integral_Mat_src_Mat_sum_int_sdepth": "integral",
# ml
"cv_ml_ParamGrid_ParamGrid_double__minVal_double__maxVal_double__logStep": "for_range",
# objdetect": "",
"cv_CascadeClassifier_CascadeClassifier": "default",
- "cv_CascadeClassifier_CascadeClassifier_string_filename": "new",
"cv_CascadeClassifier_detectMultiScale_Mat_image_VectorOfRect_objects_VectorOfint_rejectLevels_VectorOfdouble_levelWeights_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize_bool_outputRejectLevels": "detect_multi_scale_levels",
- "cv_CascadeClassifier_detectMultiScale_InputArray_image_VectorOfRect_objects_VectorOfint_numDetections_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize": "detect_multi_scale_num",
- "cv_CascadeClassifier_detectMultiScale_InputArray_image_VectorOfRect_objects_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize": "detect_multi_scale",
+ "cv_CascadeClassifier_detectMultiScale_Mat_image_VectorOfRect_objects_VectorOfint_numDetections_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize": "detect_multi_scale_num",
"cv_CascadeClassifier_detectMultiScale_Mat_image_VectorOfRect_objects_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize": "detect_multi_scale",
- "cv_CascadeClassifier_detectMultiScale_InputArray_image_VectorOfRect_objects_VectorOfint_rejectLevels_VectorOfdouble_levelWeights_double_scaleFactor_int_minNeighbors_int_flags_Size_minSize_Size_maxSize_bool_outputRejectLevels": "detect_multi_scale_reject",
- "cv_HOGDescriptor_HOGDescriptor": "default",
"cv_HOGDescriptor_HOGDescriptor_HOGDescriptor_d": "copy",
- "cv_HOGDescriptor_HOGDescriptor_Size__winSize_Size__blockSize_Size__blockStride_Size__cellSize_int__nbins_int__derivAperture_double__winSigma_int__histogramNormType_double__L2HysThreshold_bool__gammaCorrection_int__nlevels": "new",
"cv_HOGDescriptor_detectMultiScale_Mat_img_VectorOfRect_foundLocations_VectorOfdouble_foundWeights_double_hitThreshold_Size_winStride_Size_padding_double_scale_double_finalThreshold_bool_useMeanshiftGrouping": "detect_multi_scale",
"cv_HOGDescriptor_detectMultiScale_Mat_img_VectorOfRect_foundLocations_double_hitThreshold_Size_winStride_Size_padding_double_scale_double_finalThreshold_bool_useMeanshiftGrouping": "detect_multi_scale_weights",
- "cv_HOGDescriptor_detectMultiScale_InputArray_img_VectorOfRect_foundLocations_double_hitThreshold_Size_winStride_Size_padding_double_scale_double_finalThreshold_bool_useMeanshiftGrouping": "detect_multi_scale_weights",
"cv_HOGDescriptor_detect_Mat_img_VectorOfPoint_foundLocations_VectorOfdouble_weights_double_hitThreshold_Size_winStride_Size_padding_VectorOfPoint_searchLocations": "detect_weights",
"cv_HOGDescriptor_detect_Mat_img_VectorOfPoint_foundLocations_double_hitThreshold_Size_winStride_Size_padding_VectorOfPoint_searchLocations": "detect",
- "cv_LatentSvmDetector_LatentSvmDetector": "default",
- "cv_LatentSvmDetector_LatentSvmDetector_VectorOfstring_filenames_VectorOfstring_classNames": "new",
- "cv_LatentSvmDetector_ObjectDetection_ObjectDetection": "default",
- "cv_LatentSvmDetector_ObjectDetection_ObjectDetection_Rect_rect_float_score_int_classID": "new",
"cv_groupRectangles_VectorOfRect_rectList_VectorOfint_rejectLevels_VectorOfdouble_levelWeights_int_groupThreshold_double_eps": "group_rectangles_weights_rejects",
"cv_groupRectangles_VectorOfRect_rectList_VectorOfint_weights_int_groupThreshold_double_eps": "group_rectangle_weights",
"cv_groupRectangles_VectorOfRect_rectList_int_groupThreshold_double_eps": "group_rectangle",
"cv_groupRectangles_VectorOfRect_rectList_int_groupThreshold_double_eps_VectorOfint_weights_VectorOfdouble_levelWeights": "group_rectangle_levelweights",
- "cv_linemod_ColorGradient_ColorGradient": "default",
- "cv_linemod_ColorGradient_ColorGradient_float_weak_threshold_size_t_num_features_float_strong_threshold": "new",
- "cv_linemod_DepthNormal_DepthNormal": "default",
- "cv_linemod_DepthNormal_DepthNormal_int_distance_threshold_int_difference_threshold_size_t_num_features_int_extract_threshold": "new",
- "cv_linemod_Feature_Feature": "default",
- "cv_linemod_Feature_Feature_int__x_int__y_int__label": "-",
- "cv_linemod_Feature_Feature_int_x_int_y_int_label": "new",
+ # "cv_linemod_ColorGradient_ColorGradient": "default",
+ # "cv_linemod_ColorGradient_ColorGradient_float_weak_threshold_size_t_num_features_float_strong_threshold": "new",
+ # "cv_linemod_DepthNormal_DepthNormal": "default",
+ # "cv_linemod_DepthNormal_DepthNormal_int_distance_threshold_int_difference_threshold_size_t_num_features_int_extract_threshold": "new",
+ # "cv_linemod_Feature_Feature": "default",
+ # "cv_linemod_Feature_Feature_int__x_int__y_int__label": "-",
+ # "cv_linemod_Feature_Feature_int_x_int_y_int_label": "new",
# photo
- "cv_fastNlMeansDenoisingColored_InputArray_src_OutputArray_dst_float_h_float_hColor_int_templateWindowSize_int_searchWindowSize": "fast_nl_means_denoising_color",
- "cv_fastNlMeansDenoising_InputArray_src_OutputArray_dst_VectorOffloat_h_int_templateWindowSize_int_searchWindowSize_int_normType": "fast_nl_means_denoising_vec",
- "cv_fastNlMeansDenoising_InputArray_src_OutputArray_dst_float_h_int_templateWindowSize_int_searchWindowSize": "fast_nl_means_denoising_window",
+ "cv_fastNlMeansDenoisingColored_Mat_src_Mat_dst_float_h_float_hColor_int_templateWindowSize_int_searchWindowSize": "fast_nl_means_denoising_color",
+ "cv_fastNlMeansDenoising_Mat_src_Mat_dst_VectorOffloat_h_int_templateWindowSize_int_searchWindowSize_int_normType": "fast_nl_means_denoising_vec",
+ "cv_fastNlMeansDenoising_Mat_src_Mat_dst_float_h_int_templateWindowSize_int_searchWindowSize": "fast_nl_means_denoising_window",
# video
- "cv_BackgroundSubtractorMOG2_BackgroundSubtractorMOG2": "default",
- "cv_BackgroundSubtractorMOG2_BackgroundSubtractorMOG2_int_history_float_varThreshold_bool_bShadowDetection": "new",
- "cv_BackgroundSubtractorMOG_BackgroundSubtractorMOG": "default",
- "cv_BackgroundSubtractorMOG_BackgroundSubtractorMOG_int_history_int_nmixtures_double_backgroundRatio_double_noiseSigma": "new",
+ # "cv_BackgroundSubtractorMOG2_BackgroundSubtractorMOG2": "default",
+ # "cv_BackgroundSubtractorMOG2_BackgroundSubtractorMOG2_int_history_float_varThreshold_bool_bShadowDetection": "new",
+ # "cv_BackgroundSubtractorMOG_BackgroundSubtractorMOG": "default",
+ # "cv_BackgroundSubtractorMOG_BackgroundSubtractorMOG_int_history_int_nmixtures_double_backgroundRatio_double_noiseSigma": "new",
"cv_KalmanFilter_KalmanFilter": "default",
"cv_KalmanFilter_KalmanFilter_int_dynamParams_int_measureParams_int_controlParams_int_type": "new",
- "cv_calcOpticalFlowSF_Mat_from_Mat_to_Mat_flow_int_layers_int_averaging_block_size_int_max_flow": "new",
- "cv_calcOpticalFlowSF_Mat_from_Mat_to_Mat_flow_int_layers_int_averaging_block_size_int_max_flow_double_sigma_dist_double_sigma_color_int_postprocess_window_double_sigma_dist_fix_double_sigma_color_fix_double_occ_thr_int_upscale_averaging_radius_double_upscale_sigma_dist_double_upscale_sigma_color_double_speed_up_thr": "new_sigmas",
+ # "cv_calcOpticalFlowSF_Mat_from_Mat_to_Mat_flow_int_layers_int_averaging_block_size_int_max_flow": "new",
+ # "cv_calcOpticalFlowSF_Mat_from_Mat_to_Mat_flow_int_layers_int_averaging_block_size_int_max_flow_double_sigma_dist_double_sigma_color_int_postprocess_window_double_sigma_dist_fix_double_sigma_color_fix_double_occ_thr_int_upscale_averaging_radius_double_upscale_sigma_dist_double_upscale_sigma_color_double_speed_up_thr": "new_sigmas",
# videostab
- "cv_videostab_GaussianMotionFilter_GaussianMotionFilter_int__radius_float__stdev" : "-",
+ # "cv_videostab_GaussianMotionFilter_GaussianMotionFilter_int__radius_float__stdev" : "-",
+ # videoio
+ "cv_VideoCapture_VideoCapture": "default",
+ "cv_VideoCapture_VideoCapture_int_index": "index",
+ "cv_VideoCapture_VideoCapture_String_filename": "filename",
+ "cv_VideoCapture_VideoCapture_String_filename_int_apiPreference": "filename_api",
+ "cv_VideoCapture_open_int_index": "open_index",
+ "cv_VideoCapture_open_String_filename": "open_filename",
+ "cv_VideoCapture_open_String_filename_int_apiPreference": "open_filename_api",
+ "cv_VideoWriter_VideoWriter": "default",
+ # line_descriptor
+ "cv_line_descriptor_BinaryDescriptorMatcher_match_Mat_queryDescriptors_Mat_trainDescriptors_VectorOfDMatch_matches_Mat_mask": "train_matches",
+ "cv_line_descriptor_BinaryDescriptorMatcher_match_Mat_queryDescriptors_VectorOfDMatch_matches_VectorOfMat_masks": "matches",
+ # utility
+ "cv_getImpl_VectorOfint_impl_VectorOfString_funName": "-",
+ # dnn
+ "cv_dnn_<unnamed>_is_neg_int_i": "-",
+ "cv_dnn_NMSBoxes_VectorOfRotatedRect_bboxes_VectorOffloat_scores_float_score_threshold_float_nms_threshold_VectorOfint_indices_float_eta_int_top_k": "nms_boxes_rotated",
+ "cv_dnn_NMSBoxes_VectorOfRect2d_bboxes_VectorOffloat_scores_float_score_threshold_float_nms_threshold_VectorOfint_indices_float_eta_int_top_k": "nms_boxes_rotated_f64",
}
class_ignore_list = (
@@ -316,6 +286,10 @@ class_ignore_list = (
"cv::videostab::KeypointBasedMotionEstimatorGpu",
"cv::videostab::MoreAccurateMotionWobbleSuppressorGpu",
"cv::videostab::SparsePyrLkOptFlowEstimatorGpu",
+ # ml
+ "cv::ml::SimulatedAnnealingSolverSystem", # only defined in docs
+ # dnn
+ "cv::dnn::_Range",
)
aliases_types = {

update function rename/ignore mapping