代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<hdevelop file_version="1.0" halcon_version="10.0" cs="928665552">
<procedure name="main">
<interface/>
<body>
<l>read_image (Image0, 'D:/实习/图片/20181017/201806101612F1_6.bmp')</l>
<l>decompose3 (Image0, ImageB, ImageG, ImageR)</l>
<l>trans_from_rgb (ImageR, ImageG, ImageB, ImageHSV1, ImageHSV2, ImageHSV3, 'hsv')</l>
<l>emphasize (ImageHSV3, ImageEmphasize, 7, 7, 3)</l>
<l>binomial_filter (ImageEmphasize, ImageBinomial, 3, 3)</l>
<l>threshold (ImageBinomial, Region0, 0, 90)</l>
<l>closing_circle (Region0, RegionClosing, 3.5)</l>
<l>closing_rectangle1 (RegionClosing, RegionClosing1, 20, 10)</l>
<l>connection (RegionClosing1, ConnectedRegions)</l>
<l>select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 4000, 7000)</l>
<l>intersection (SelectedRegions, Region0, RegionIntersection)</l>
<l>smallest_rectangle2 (RegionIntersection, Row, Column, Phi, Length1, Length2)</l>
<l>tuple_deg (Phi, Deg)</l>
<l>rotate_image (ImageBinomial, rotateImage, -Deg, 'constant')</l>
<l>rotate_image (ImageHSV3, rotateImage1, -Deg, 'constant')</l>
<l>threshold (rotateImage, Region, 0, 90)</l>
<l>closing_circle (Region, RegionClosing3, 3.5)</l>
<l>closing_rectangle1 (RegionClosing3, RegionClosing2, 20, 10)</l>
<l>connection (RegionClosing2, ConnectedRegions1)</l>
<l>select_shape (ConnectedRegions1, SelectedRegions1, ['area','height'], 'and', [3000,30], [7000,50])</l>
<l>intersection (SelectedRegions1, Region, RegionIntersection1)</l>
<l>smallest_rectangle1 (RegionIntersection1, Row1, Column1, Row2, Column2)</l>
<l>gen_rectangle1 (Rectangle, Row1, Column1, Row2, Column2)</l>
<l>reduce_domain (rotateImage1, Rectangle, ImageReduced)</l>
<l>emphasize (ImageReduced, ImageEmphasize1, 7, 7, 3)</l>
<l>threshold (ImageEmphasize1, Region1, 0, 100)</l>
<c></c>
</body>
<docu id="main">
<parameters/>
</docu>
</procedure>
</hdevelop>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。