代码拉取完成,页面将自动刷新
同步操作将从 xiaodelea/CodeRecognition 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<hdevelop file_version="1.0" halcon_version="10.0" cs="192813799">
<procedure name="main">
<interface/>
<body>
<l>read_image (Image, 'D:/实习/图片/1028/VLG-02C(8794691718)3.bmp')</l>
<l>rgb1_to_gray (Image, GrayImage)</l>
<l>dots_image (GrayImage, DotImage, 3, 'dark', 2)</l>
<l>threshold (DotImage, Region, 110, 255)</l>
<l>emphasize (GrayImage, ImageEmphasize, 7, 7, 2)</l>
<l>threshold (ImageEmphasize, Region1, 0, 100)</l>
<l>closing_rectangle1 (Region1, RegionClosing, 5, 1)</l>
<l>connection (RegionClosing, ConnectedRegions)</l>
<l>select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 10, 500)</l>
<l>intersection (Region, SelectedRegions, RegionIntersection)</l>
<l>closing_circle (RegionIntersection, RegionClosing1, 5.5)</l>
<l>closing_rectangle1 (RegionClosing1, RegionClosing2, 10, 10)</l>
<l>connection (RegionClosing2, ConnectedRegions2)</l>
<l>select_shape (ConnectedRegions2, SelectedRegions1, 'area', 'and', 1200, 8000)</l>
<l>intersection (Region, SelectedRegions1, RegionIntersection1)</l>
<l>gen_rectangle2 (Rectangle2, 10, 10, rad(80), 3, 0)</l>
<l>closing (RegionIntersection1, Rectangle2, RegionClosing5)</l>
<l>gen_rectangle2 (Rectangle21, 10, 10, rad(95), 3, 0)</l>
<l>closing (RegionClosing5, Rectangle21, RegionClosing6)</l>
<l>connection (RegionClosing6, ConnectedRegions3)</l>
<c></c>
<l>hom_mat2d_identity (HomMat2DIdentity)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, 0.15, 0, 0, HomMat2DRotate)</l>
<l>affine_trans_region (ConnectedRegions3, RegionAffineTrans, HomMat2DRotate, 'false')</l>
<l>partition_dynamic (RegionAffineTrans, Partitioned1, 20, 1)</l>
<l>hom_mat2d_rotate (HomMat2DIdentity, -0.15, 0, 0, HomMat2DRotate1)</l>
<l>affine_trans_region (Partitioned1, RegionAffineTrans1, HomMat2DRotate1, 'false')</l>
<c></c>
<l>shape_trans (ConnectedRegions3, RegionTrans, 'convex')</l>
<l>partition_rectangle (RegionTrans, Partitioned, 22, 50)</l>
<l>select_shape (Partitioned, SelectedRegions2, 'height', 'and', 40, 60)</l>
<l>intersection (SelectedRegions2, Region1, RegionIntersection2)</l>
<l>sort_region (RegionIntersection2, SortedRegions, 'first_point', 'true', 'column')</l>
<l>count_obj (SortedRegions, Number)</l>
<l>read_ocr_class_mlp ('DotPrint_0-9.omc', OCRHandle)</l>
<l>do_ocr_multi_class_mlp (SortedRegions, GrayImage, OCRHandle, Class, Confidence)</l>
<l>clear_ocr_class_mlp (OCRHandle)</l>
</body>
<docu id="main">
<parameters/>
</docu>
</procedure>
</hdevelop>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。