<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Intelligent Recognition and Visual Measurement System Based on Workpiece Primitives to be Measured</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Senwei Li</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tianxiang Zhai</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shukai Yin</string-name>
          <email>shukaiyin1122@g.ucla.edu</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaolong Huang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xue Mei</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Nanjing Dashu Intelligent Technology Co. Ltd</institution>
          ,
          <addr-line>No. 9 Qiande Road Jiangning National High Tech Park, Nanjing,211122</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Nanjing Tech University</institution>
          ,
          <addr-line>No. 30 Puzhu South Road Jiangbei new area, Nanjing, 211816</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of California, Los Angeles</institution>
          ,
          <addr-line>405 Hilgard Avenue, Los Angeles, CA 90095-1405, the</addr-line>
          <country country="US">United States of America</country>
        </aff>
      </contrib-group>
      <fpage>156</fpage>
      <lpage>161</lpage>
      <abstract>
        <p>With the improvement of industrial manufacturing level, there are many kinds of workpieces and complex parameters. Traditional measurement methods are inefficient in the face of new products or different customer needs. It is urgent to develop a general and efficient measurement system. Based on primitive extraction technology of the workpiece to be measured, the intelligent recognition and vision system can automatically identify the type of workpiece and measure and calculate the relevant parameters. The core of this system is image processing and automatic recognition. On the premise of ensuring high precision and high stability, it has stronger universality and higher intelligence.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Primitive extraction</kwd>
        <kwd>workpiece</kwd>
        <kwd>image processing</kwd>
        <kwd>automatic recognition</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>With the development of intelligent technology, the automation level and status of industrial
manufacturing are becoming higher and higher. Accordingly, higher requirements are put forward for
the inspection specifications of industrial products. In the actual inspection process of workpiece,
because the types of workpieces to be tested and the types of parameters to be measured are different,
the manual inspection is time-consuming and laborious, and the non-contact measurement method
based on machine vision emerged as the times require [1-5].</p>
      <p>However, the degree of system automation is low; The non-contact measurement method can not
only be applied to the measurement of traditional mechanical workpiece, but also widely used in
geography, agriculture, medicine and other aspects [6-10].</p>
      <p>The system uses the non-contact measurement method based on primitive extraction and
identification [11] to improve the detection efficiency and universality. Taking the workpiece primitive
(line, curve, circle, ellipse, rectangle, arc, etc.) to be measured as the detection unit, the intelligent
recognition of workpiece and automatic measurement of parameters can be realized; This system is
convenient for adding different types of workpieces, and can realize the measurement of various sizes
and irregular workpieces.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Intelligent identification and measurement of workpiece</title>
      <p>The intelligent recognition and visual measurement system is based on the primitive of the
workpiece to be tested. According to the type and number of primitives and the surface area of the
workpiece to be measured, the intelligent recognition of the workpiece to be measured is realized.</p>
    </sec>
    <sec id="sec-3">
      <title>2.1. Image acquisition and preprocessing</title>
      <p>The example of the image acquired by the system for the measured workpiece is shown in Figure 1.
The hardware of the system is mainly composed of optical platform, linear motor, servo motor, laser
scanner and industrial computer. The intelligent recognition and visual measurement system is based
on machine vision. The principle of workpiece size measurement is relatively complex. The system is
mainly composed of four functional modules: image acquisition, image data processing, result display
and data communication. In order to make the whole system operate coordinately and have accurate,
fast and stable measurement ability, it is necessary for all modules to work together efficiently. Among
them, the image acquisition module and the image data processing module play a vital role in the whole
visual measurement system.</p>
      <p>( ,  ,  ) = ∑ =−01   2 = ∑ =−01[( 2 +   2 +    +    +  )] (2)</p>
      <p>Therefore, the problem of identifying circular primitives can also be transformed into an
optimization problem. That is, solve  ̃,  ̃,  ̃such that  ( ̃,  ̃,  ̃) =   ( ,  ,  ), calculate the partial
derivative of equation (4) and make it equal to 0:
Let
 ( , , )
 ( , , )
 ( , , )



= ∑ =−01 2( 2 +   2 +    +    +  )
2
2
 =  ∑ =0  2 − [∑ =−01   ]
 −1
 −1  −1
 =  ∑ =0     − ∑ =0   ∑
 −1
 =0  
 =  ∑ =0  3 +  ∑ =0     2 − ∑
 −1  −1
 =−01( 2 +   2) ⋅ ∑ =0  
 −1
 =  ∑ =0   2 − [∑ =−01   ]</p>
      <p>−1
The solution is:
 =
 =



−
− 2
−
 2−
{
 = − 1 [∑ =−01  ∑ =0   +  ∑ =0</p>
      <p>−1  −1

( 2 +   2) +</p>
      <p>]</p>
      <p>Then the final solution is:  = − /2,  = − /2,  = 1/2√ 2 +  2 − 4 , in this way, the equation
of the circle is obtained, that is, the identification of the circle primitive is completed.</p>
      <p>The primitive features in the background database of the system can be updated in real time. If the
primitive library does not contain extracted primitive types and new primitives need to be added, the
new primitive features will be dynamically added to the primitive feature library, and then the primitive
will be trained to optimize the extraction and recognition program and improve the primitive recognition
rate.</p>
    </sec>
    <sec id="sec-4">
      <title>2.2. Intelligent recognition of workpiece</title>
      <p>The extraction, identification and calculation process of the system based on the workpiece primitive
to be tested are as follows:</p>
      <p>qualified.
1.
2.</p>
      <p>The preprocessed image is input into the image processing module, and then threshold
segmentation and edge extraction of workpiece image;
Call the primitive processing program, segment the edge contour to obtain the workpiece
primitive, and identify the primitive and calculate the parameters;
3. If the primitive type is identified as ellipse, the primitive processing program will
automatically determine the parameters to be calculated, including ellipse center coordinates,
major axis, minor axis, area, inclination;</p>
      <p>Determining the type of workpiece, call the corresponding processing program to display and
store the measurement results according to the measurement requirements of the workpiece;
Compare with the standard data of the workpiece to judge whether the measured workpiece is
The workpiece feature library designed by the system for a factory is shown in Figure 2.</p>
    </sec>
    <sec id="sec-5">
      <title>2.3. System test and analysis</title>
      <p>In the actual measurement process, the system can realize the automatic identification of workpiece
types and the automatic measurement of parameters. Especially for the measurement of irregular shaped
workpiece, compared with the traditional manual non-contact measurement method, the measurement
efficiency and accuracy have been greatly improved.</p>
      <p>For a new workpiece, after acquiring the workpiece image, it is processed by the image processing
module to extract and segment the primitive of the measured workpiece image, as shown in Figure 3 a);
The workpiece primitive to be measured has identified two pairs of parallel line segments and five
circular holes. Call the relevant primitive processing program to calculate the hole center distance and
hole edge distance of the workpiece. The measurement parameters are marked as shown in Figure 3 b);
Since the workpiece does not exist in the system database, it is automatically defined as a new
workpiece (Model-X) and the staff is notified to prepare for the new workpiece.</p>
      <p>a) Image processing b) Measurement parameters
Figure 3: Example of new workpiece (Model-X) parameter measurement</p>
      <p>In order to better verify the performance of the system and analyze the measurement effect of
relevant parameters of the workpiece, Figure 4 shows the measurement example of the system for angle,
curvature and radius parameters, and Figure 5 shows the measurement example of the system for
complex parameters. The experimental results show that the system can effectively measure various
complex parameters of the workpiece and accurately judge whether the workpiece is qualified or not.</p>
    </sec>
    <sec id="sec-6">
      <title>2.4. Conclusion</title>
      <p>The system can be widely applied to the measurement of various workpieces, especially the
measurement of irregular workpieces. It overcomes many shortcomings of manual measurement, such
as poor consistency, large measurement error and no legal person measurement. At the same time, the
system greatly improves the measurement efficiency; It can intelligently identify the type of workpiece
to be measured, and realize the non-contact measurement of three-dimensional dimension of workpiece
with high precision.</p>
      <p>The system can also be used as an intelligent node in a modern factory or workshop. The detected
data of this system can be transmitted to the cloud of the factory, and the system receive instructions
from the cloud as an intelligent scene of an intelligent manufacturing enterprise.</p>
      <p>The newly added measuring workpieces of this system are simple and fast, with a wide range of
applications. It has good portability and is easy to migrate to different scenarios. It is especially suitable
for industries with a large number of mechanical workpieces, or for the intelligent identification and
measurement of workpieces in warehouses, such as automobile production lines, high-speed rail
production lines, aviation production lines, military production lines, and so on. It has a broad
application prospect.</p>
    </sec>
    <sec id="sec-7">
      <title>3. Acknowledgements</title>
    </sec>
    <sec id="sec-8">
      <title>4. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>(China) under Grant</surname>
            <given-names>SRC</given-names>
          </string-name>
          -Open
          <string-name>
            <surname>Project</surname>
          </string-name>
          ([
          <year>2020</year>
          ]001]). [1]
          <string-name>
            <given-names>Shuaishuai</given-names>
            <surname>Song</surname>
          </string-name>
          ;
          <article-title>Feng Huang;Yanbin Jiang. Analysis on the research progress of geometric</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Technology</surname>
          </string-name>
          ,
          <year>2021</year>
          ,
          <volume>44</volume>
          (
          <issue>03</issue>
          ):
          <fpage>22</fpage>
          -
          <lpage>26</lpage>
          . [2]
          <string-name>
            <given-names>Wenhui</given-names>
            <surname>Yang</surname>
          </string-name>
          .
          <source>Research and System Development of Part Geometry Measurement Technology</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <source>Based on Machine Vision [D]. Xi'an University of Technology</source>
          ,
          <year>2020</year>
          . [3]
          <string-name>
            <given-names>Yingying</given-names>
            <surname>Zhu</surname>
          </string-name>
          .
          <article-title>Research on geometric measurement technology of axis workpiece based on machine</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>vision</surname>
          </string-name>
          [D]. Nanjing University of Science and Technology,
          <year>2019</year>
          . [4]
          <string-name>
            <given-names>Shaoping</given-names>
            <surname>Liu</surname>
          </string-name>
          ;
          <article-title>Yongbo Yang;Dongsheng Zhang;Fang Zhao;Yu Zou</article-title>
          .
          <article-title>An improved method of the</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Surveying</surname>
          </string-name>
          and Mapping,
          <year>2021</year>
          (
          <volume>10</volume>
          ):
          <fpage>98</fpage>
          -
          <lpage>102</lpage>
          . [5]
          <string-name>
            <given-names>Jiarun</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>Development of non-contact measurement system for roundness of deep hole section</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <article-title>and straightness of axis [D]</article-title>
          . Huazhong University of Science and Technology,
          <year>2020</year>
          . [6]
          <string-name>
            <given-names>Ye</given-names>
            <surname>Zhou</surname>
          </string-name>
          ;
          <article-title>Aiping Song;Kunpeng Zhao;Chenwei Yu</article-title>
          . Laser Noncontact Measurement Method for
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Elliptical</given-names>
            <surname>Arc-toothed Cylindrical</surname>
          </string-name>
          <string-name>
            <surname>Gear</surname>
          </string-name>
          [J].
          <source>Journal of Mechanical Transmission</source>
          ,
          <year>2020</year>
          ,
          <volume>44</volume>
          (
          <issue>02</issue>
          ):
          <fpage>138</fpage>
          -
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          143. [7]
          <string-name>
            <given-names>Yuan</given-names>
            <surname>Tian</surname>
          </string-name>
          .
          <source>Application of Non-contact Measuring Technology in Profile Measurement of Cutting</source>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Drum</surname>
          </string-name>
          [J].
          <source>Coal Mine Machinery</source>
          ,
          <year>2019</year>
          ,
          <volume>40</volume>
          (
          <issue>09</issue>
          ):
          <fpage>130</fpage>
          -
          <lpage>132</lpage>
          . [8]
          <string-name>
            <given-names>Jiehe</given-names>
            <surname>Ye</surname>
          </string-name>
          ;Yong Liu;Guocheng Xu;
          <article-title>Xiaopeng Gu;Juan Dong;Bo Peng;Lingbo Wei</article-title>
          . Evaluation of
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <source>of Lasers</source>
          ,
          <year>2019</year>
          ,
          <volume>46</volume>
          (
          <issue>10</issue>
          ):
          <fpage>155</fpage>
          -
          <lpage>162</lpage>
          . [9]
          <string-name>
            <given-names>Xiaoxiao</given-names>
            <surname>Li</surname>
          </string-name>
          ;Zhiheng Zhang;Xiaoyu Zhang;Jiejun Cao;Zhaolou Cao.
          <article-title>Non-contact thickness</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <article-title>measurement of optical elements based on astigmatism</article-title>
          [J].
          <source>Laser Technology</source>
          ,
          <year>2019</year>
          ,
          <volume>43</volume>
          (
          <issue>06</issue>
          ):
          <fpage>741</fpage>
          -
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          746. [10]
          <string-name>
            <surname>Zhenfen</surname>
            <given-names>Sun;Shaobo</given-names>
          </string-name>
          <string-name>
            <surname>Wu</surname>
          </string-name>
          .
          <article-title>Application of machine vision technology in industrial intelligent</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>production</surname>
          </string-name>
          [J].
          <source>Internet of Things Technologies</source>
          ,
          <year>2020</year>
          ,
          <volume>10</volume>
          (
          <issue>08</issue>
          ):
          <fpage>103</fpage>
          -
          <lpage>105</lpage>
          +
          <fpage>108</fpage>
          . [11]
          <string-name>
            <given-names>Xinrui</given-names>
            <surname>Ma</surname>
          </string-name>
          .
          <article-title>Research on image recognition algorithm based on primitive feature analysis [D]</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          Xidian University,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>