- read_image (Image, ImageFiles[Index])
- get_image_size(Image, Width, Height)
- edges_sub_pix(Image, Edges, 'canny', 1, 20, 40)
- segment_contours_xld(Edges, ContoursSplit, 'lines', 25, 4, 2)
- select_shape_xld(ContoursSplit, SelectedXLD1, ['contlength', 'width'], 'and', [120, 0], [99999,5])
- select_shape_xld(ContoursSplit, SelectedXLD2, ['contlength', 'width'], 'and', [120, 120], [99999,130])
- concat_obj(SelectedXLD1, SelectedXLD2, ObjectsConcat)
- radial_distortion_self_calibration(ObjectsConcat, SelectedContours, Width, Height, 0.06, 42, 'division', 'adaptive', 0, CameraParam)
复制代码 HALCON算子错误
当在函数 'main' 中调用 'radial_distortion_self_calibration'时.line: 28.
Not enough contours for calibration: please select contours manually (HALCON错误代码: 3663)
|