设置首页收藏本站
开启左侧

求助求助--畸变矫正老是报错改不好

[复制链接]
qweerzhou 发表于 2025-4-29 15:59:44 | 显示全部楼层 |阅读模式
  1. read_image (Image, ImageFiles[Index])
  2. get_image_size(Image, Width, Height)
  3. edges_sub_pix(Image, Edges, 'canny', 1, 20, 40)
  4. segment_contours_xld(Edges, ContoursSplit, 'lines', 25, 4, 2)
  5. select_shape_xld(ContoursSplit, SelectedXLD1, ['contlength', 'width'], 'and', [120, 0], [99999,5])
  6. select_shape_xld(ContoursSplit, SelectedXLD2, ['contlength', 'width'], 'and', [120, 120], [99999,130])
  7. concat_obj(SelectedXLD1, SelectedXLD2, ObjectsConcat)
  8. 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)
微信截图_20250429155920.png
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
新凉无处暑 发表于 2025-4-30 16:51:49 | 显示全部楼层
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
hankchang 发表于 2025-5-3 07:17:48 | 显示全部楼层
你的xld 裡面都空空的
當然錯
select_shape_xld(ContoursSplit, SelectedXLD1, ['contlength', 'width'], 'and', [29, 20], [60,50])
select_shape_xld(ContoursSplit, SelectedXLD2, ['contlength', 'height'], ['and'], [29, 20], [90,50])
試試這個參數
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表