From 8287e5b91dff39a8c88f37004040a25ac5f3f488 Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期三, 30 九月 2020 15:12:18 +0800
Subject: [PATCH] 1. KeyIndicator显示字体加粗

---
 M071B配置/Calculations/Test.hdev |   69 ++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)

diff --git "a/M071B\351\205\215\347\275\256/Calculations/Test.hdev" "b/M071B\351\205\215\347\275\256/Calculations/Test.hdev"
new file mode 100644
index 0000000..928ac0e
--- /dev/null
+++ "b/M071B\351\205\215\347\275\256/Calculations/Test.hdev"
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<hdevelop file_version="1.1" halcon_version="12.0">
+<procedure name="main">
+<interface/>
+<body>
+<c>*杈撳叆鍥剧墖璺緞锛屼緥濡傦細'D:/test/1.tif',娉ㄦ剰浣跨敤鍙嶆枩鏉�'/'</c>
+<l>Path1 := ''</l>
+<l>read_image (Image1, 'D:/PROJECTS/M071/Images/20200819/Origin/132913772.tif')</l>
+<l>Path2 := ''</l>
+<l>read_image (Image2, 'D:/PROJECTS/M071/Images/20200819/Origin/132917302.tif')</l>
+<l>Number1 := 0</l>
+<l>Number2 := 0</l>
+<c></c>
+<c>*绗嚑寮犲浘</c>
+<l>Pic := 2</l>
+<c>*绗嚑涓敭</c>
+<l>KeyNum := 12</l>
+<c></c>
+<l>SinglePic := 0</l>
+<l>if (SinglePic == 0)</l>
+<l>    if (KeyNum &lt;= 0 or KeyNum &gt; 43)</l>
+<l>        throw ('KeyNum is illegal!')</l>
+<l>    endif</l>
+<c>    </c>
+<l>    if (Pic == 1)</l>
+<l>        try</l>
+<l>        M071_CutImage1 (Image1, OUTPUT_Images)</l>
+<l>        count_obj (OUTPUT_Images, Number1)</l>
+<l>        select_obj (OUTPUT_Images, ObjectSelected, KeyNum)</l>
+<l>        catch (Exception)</l>
+<l>            throw ('鎴浘1寮傚父')</l>
+<l>            stop ()</l>
+<l>        endtry</l>
+<c>    </c>
+<l>    elseif (Pic == 2)</l>
+<l>        try</l>
+<l>        M071_CutImage2 (Image2, OUTPUT_Images)</l>
+<l>        count_obj (OUTPUT_Images, Number2)</l>
+<l>        select_obj (OUTPUT_Images, ObjectSelected, KeyNum)</l>
+<l>        catch (Exception)</l>
+<l>            throw ('鎴浘2寮傚父')</l>
+<l>            stop ()</l>
+<l>        endtry</l>
+<c>        </c>
+<l>    else</l>
+<l>        throw('Image number is illegal!')</l>
+<l>    endif</l>
+<c>    </c>
+<l>    if (Number1 == 43 or Number2 == 36)</l>
+<l>        try</l>
+<l>        M071_GetResults (ObjectSelected, 0.056, 0.0008,0, OUTPUT_Results)</l>
+<l>        catch (Exception)</l>
+<l>            throw ('鏁版嵁璁$畻寮傚父')</l>
+<l>            stop ()</l>
+<l>        endtry</l>
+<l>    endif</l>
+<l>else</l>
+<l>    M071_GetResults (Image2, 0.056, 0.0008,0, OUTPUT_Results)</l>
+<l>endif</l>
+<c></c>
+<c></c>
+<c></c>
+<c></c>
+</body>
+<docu id="main">
+<parameters/>
+</docu>
+</procedure>
+</hdevelop>

--
Gitblit v1.8.0