1 Star 2 Fork 2

xiaodelea/CodeRecognition

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CodeRecognitionColor.hdev 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
<?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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaodelea/CodeRecognition.git
git@gitee.com:xiaodelea/CodeRecognition.git
xiaodelea
CodeRecognition
CodeRecognition
master

搜索帮助