<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Halcon 生成標(biāo)定板

      Halcon生成標(biāo)定板:

      gen_caltab(7, 7, 0.0125, 0.5, 'caltab.descr', 'caltab.ps')

      XNum:X軸圓點數(shù)量
      YNum:Y軸圓點數(shù)量
      MarkDist:圓點間距,單位為米
      DiameterRatio:圓點直徑與間距的比率
      CalPlateDescr:標(biāo)定板描述文件
      CalPlatePSFile:標(biāo)定板PostScript圖案,可以用PhotoShop打開。

      Halcon12開始,可以使用新版蜂窩標(biāo)定板,生成代碼:

      create_caltab(27, 31, 0.00258065, [13,6,6,20,20], [15,6,24,6,24], 'light_on_dark', 'calplate.cpd', 'calplate.ps')

      NumRows:圓點行數(shù)
      MarksPerRow:每行圓點數(shù)
      Diameter:圓點直徑,單位為米
      FinderRow:所有尋位標(biāo)志的行號
      FinderColumn:所有尋位標(biāo)志的列號
      Polarity:背景色,黑或白

      新版蜂窩標(biāo)定板的行列數(shù)可以任意設(shè)置,圓心距為圓點直徑的2倍,尋位標(biāo)志不能多于5個
      標(biāo)定板的精度建議比檢測精度高5-10倍,以下是不同標(biāo)定板制作工藝的大致精度:
      (1)菲林印制,精度大致能做到0.05mm - 0.1mm,菲林就是電影底片,厚度一般為0.18mm,白色部分透明,需要用玻璃板壓平;
      (2)氧化鋁標(biāo)定板,精度一般為0.01 - 0.001mm,用玻璃或陶瓷做基板,白色部分不透明,表面漫反射;
      (3)玻璃標(biāo)定板,精度能做到0.001mm,圖案用光刻工藝加工,表面平整度很高,白色部分透明,黑色部分反光,可以用背光。
      標(biāo)定板的尺寸選擇:
      老版標(biāo)定板圖案尺寸為視場的1/2到3/4,新版蜂窩標(biāo)定板需要視場覆蓋1/3到2/3圖案區(qū)域,必須拍到至少1個尋位點
      圓點直徑所占像素要大于50個,例如相機分辨率1280x960pix,視場大小40x30mm,則圓點直徑大概1.5mm。

      Halcon標(biāo)定相機外參也可使用棋盤格標(biāo)定板,下面為代碼:

      dev_update_off()
      read_image(Image, 'chessboard.png')
      gen_rectangle1 (ROI, 108.076, 86.0433, 406.842, 505.387)
      reduce_domain(Image, ROI, ImageReduced)
      dev_display(Image)
      * 1通過Harris方法提取角點
      points_harris(ImageReduced, 0.7, 4, 0.08, 1000, Rows, Cols)
      gen_cross_contour_xld(Corners, Rows, Cols, 6, 0)
      dev_set_color('red')
      dev_display(Corners)
      stop()
      * 2通過邊緣擬合直線交叉點的方式提取角點
      edges_sub_pix (ImageReduced, Edges, 'canny', 1, 20, 40)
      segment_contours_xld(Edges, ContoursSplit, 'lines_circles', 5, 4, 2)
      select_contours_xld(ContoursSplit, SelectedContours, 'contour_length', 10, 200, 0, 0)
      select_contours_xld(SelectedContours, HorizontalContours, 'direction', rad(-10), rad(10), 0, 0)
      union_adjacent_contours_xld(HorizontalContours, HorizontalContours, 10, 1, 'attr_keep')
      select_contours_xld(SelectedContours, VerticalContours, 'direction', rad(80), rad(100), 0, 0)
      union_adjacent_contours_xld(VerticalContours, VerticalContours, 10, 1, 'attr_keep')
      fit_line_contour_xld(HorizontalContours, 'tukey', -1, 0, 5, 2, RowBegin1, ColBegin1, RowEnd1, ColEnd1, Nr1, Nc1, Dist1)
      fit_line_contour_xld(VerticalContours, 'tukey', -1, 0, 5, 2, RowBegin2, ColBegin2, RowEnd2, ColEnd2, Nr2, Nc2, Dist2)
      Rows := []
      Cols := []
      for I := 0 to |RowBegin1| - 1 by 1
          for J := 0 to |RowBegin2| - 1 by 1
              intersection_lines(RowBegin1[I], ColBegin1[I], RowEnd1[I], ColEnd1[I], RowBegin2[J], ColBegin2[J], RowEnd2[J], ColEnd2[J], Row, Col, IsOverlapping)
              Rows := [Rows, Row]
              Cols := [Cols, Col]
          endfor
      endfor
      gen_cross_contour_xld(Corners, Rows, Cols, 6, 0)
      dev_set_color('green')
      dev_display(Corners)
      stop()
      * 擬合棋盤格平面位姿
      WorldX := []
      WorldY := []
      WorldZ := []
      for X := 0 to 10 by 1
          for Y := 0 to 7 by 1
              WorldX := [WorldX, X * 10]
              WorldY := [WorldY, Y * 10]
              WorldZ := [WorldZ, 0]
          endfor
      endfor
      read_cam_par ('cam_param.cal', CameraParam)
      vector_to_pose(WorldX, WorldY, WorldZ, Rows, Cols, CameraParam, 'iterative', 'error', Pose, Quality)

      這里用兩種方法提取棋盤格的角點,如果鏡頭畸變較大的情況下,Harris方法精度更高。

      posted @ 2022-09-24 21:08  廣闊之海  閱讀(4101)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 久久精品国内一区二区三区| 蜜臀av一区二区国产在线| 娱乐| 久久精品国产精品亚洲艾| 交口县| 国产精品成人中文字幕| 亚洲三级香港三级久久| 国产精品入口中文字幕| 影音先锋在线资源无码| 亚洲国产婷婷综合在线精品| 国产精品一二二区视在线| 激情综合网激情综合| 一区二区三区无码视频免费福利| 精品国产乱弄九九99久久| 国产精品亚洲二区亚瑟| 偷自拍另类亚洲清纯唯美| 2020国产欧洲精品网站| 又爽又黄又无遮挡的激情视频| 天天爽天天摸天天碰| 91福利国产午夜亚洲精品| 国产性三级高清在线观看| 欧美性猛交xxxx富婆| 亚洲国产午夜精品理论片| 成av人片一区二区久久| 中国老熟女重囗味hdxx| 国产婷婷综合在线视频中文| 国产精品无码久久久久AV| 亚洲国产精品色一区二区| 慈利县| 国产精品一区二区中文| 亚洲精品麻豆一二三区| 天天色综网| 日韩精品一区二区三免费| 十八岁污网站在线观看| 亚洲最大av一区二区| 韩国免费a级毛片久久| 国产性色的免费视频网站| 视频一区二区 国产视频| 亚洲国产成人精品女人久久久| 久久无码中文字幕免费影院蜜桃 | 国产尤物精品自在拍视频首页|