代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<hdevelop file_version="1.0" halcon_version="10.0" cs="393775701">
<procedure name="main">
<interface/>
<body>
<l>read_image (Image, 'D:/实习/图片/1109/0.bmp')</l>
<l>emphasize (Image, ImageEmphasize, 7, 7, 1)</l>
<l>threshold (ImageEmphasize, Region, 0, 20)</l>
<l>closing_circle (Region, RegionClosing, 7.5)</l>
<l>closing_rectangle1 (RegionClosing, RegionClosing1, 30, 20)</l>
<l>connection (RegionClosing1, ConnectedRegions)</l>
<l>select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 8000, 12500)</l>
<l>intersection (Region, SelectedRegions, RegionIntersection)</l>
<l>smallest_rectangle2 (RegionIntersection, Row1, Column1, Phi, Length1, Length2)</l>
<l>hom_mat2d_identity (HomMat2DIdentity)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, -Phi, 0, 0, HomMat2DRotate)</l>
<l>affine_trans_region (RegionIntersection, RegionAffineTrans, HomMat2DRotate, 'false')</l>
<l>affine_trans_image (Image, ImageAffinTrans, HomMat2DRotate, 'bilinear', 'false')</l>
<l>area_center (RegionAffineTrans, Area, Row, Column)</l>
<l>connection (RegionAffineTrans, ConnectedRegions1)</l>
<l>select_shape (ConnectedRegions1, SelectedRegions1, 'row', 'and', Row-30, Row)</l>
<l>union1 (SelectedRegions1, RegionUnion)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, -0.1, 0, 0, HomMat2DRotate1)</l>
<l>affine_trans_region (RegionUnion, RegionAffineTrans1, HomMat2DRotate1, 'false')</l>
<l>dilation_circle (RegionAffineTrans1, RegionDilation1, 1.5)</l>
<l>dilation_rectangle1 (RegionDilation1, RegionDilation, 3, 3)</l>
<l>connection (RegionDilation, ConnectedRegions2)</l>
<l>shape_trans (ConnectedRegions2, RegionTrans, 'convex')</l>
<l>partition_dynamic (RegionTrans, Partitioned, 30, 20)</l>
<l>select_shape (Partitioned, SelectedRegions2, 'height', 'and', 22, 32)</l>
<l>intersection (SelectedRegions2, RegionAffineTrans1, RegionIntersection1)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, 0.1, 0, 0, HomMat2DRotate2)</l>
<l>affine_trans_region (RegionIntersection1, RegionAffineTrans2, HomMat2DRotate2, 'false')</l>
<l>sort_region (RegionAffineTrans2, SortedRegions1, 'first_point', 'true', 'column')</l>
<l>count_obj (SortedRegions1, Number1)</l>
<c></c>
<l>select_shape (ConnectedRegions1, SelectedRegions2, 'row', 'and', Row, Row+30)</l>
<l>union1 (SelectedRegions2, RegionUnion2)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, -0.1, 0, 0, HomMat2DRotate3)</l>
<l>affine_trans_region (RegionUnion2, RegionAffineTrans3, HomMat2DRotate3, 'false')</l>
<l>dilation_circle (RegionAffineTrans3, RegionDilation3, 1.5)</l>
<l>dilation_rectangle1 (RegionDilation3, RegionDilation4, 3, 3)</l>
<l>connection (RegionDilation4, ConnectedRegions3)</l>
<l>shape_trans (ConnectedRegions3, RegionTrans2, 'convex')</l>
<l>partition_dynamic (RegionTrans2, Partitioned2, 30, 20)</l>
<l>select_shape (Partitioned2, SelectedRegions3, 'height', 'and', 22, 32)</l>
<l>intersection (SelectedRegions3, RegionAffineTrans3, RegionIntersection2)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, 0.1, 0, 0, HomMat2DRotate4)</l>
<l>affine_trans_region (RegionIntersection2, RegionAffineTrans4, HomMat2DRotate4, 'false')</l>
<l>sort_region (RegionAffineTrans4, SortedRegions2, 'first_point', 'true', 'column')</l>
<l>count_obj (SortedRegions2, Number2)</l>
<c></c>
<l>read_ocr_class_mlp ('C:/Program Files/MVTec/HALCON-10.0/ocr/Industrial_0-9A-Z.omc', OCRHandle)</l>
<l>do_ocr_multi_class_mlp (SortedRegions1, ImageAffinTrans, OCRHandle, Class, Confidence)</l>
<l>do_ocr_multi_class_mlp (SortedRegions2, ImageAffinTrans, OCRHandle, Class1, Confidence1)</l>
<c></c>
</body>
<docu id="main">
<parameters/>
</docu>
</procedure>
</hdevelop>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。