원시데이터 수집 시스템
선정목록으로

Research on Vision Measurement System of Mechanical Workpiece Based on Machine Vision

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (14) 드라이 필름(포토레지스트)(21) 에폭시수지

기본 정보

저자
  1. Yubin Guo — School of Information and Communication Engineering, North University of China, Taiyuan, China
DOI
10.54097/hset.v1i.428
저널
Highlights in Science Engineering and Technology
발행년도
2022
발행기관
Darcy & Roy Press Co. Ltd.
피인용수
2
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.54097/hset.v1i.428
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4282826966

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(14) 드라이 필름(포토레지스트), (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Machine vision, workpiece measurement, image preprocessing, convolutional neural network, automatic and intelligent measurement
판단 근거
본 논문은 머신 비전을 이용한 기계 가공품의 자동 측정 및 검사 시스템에 관한 연구로, 코오롱인더스트리의 직접적인 제품 연구는 아니나 제조 공정 내 품질 관리 및 자동화 검사 기술로서 응용 가능성이 높습니다.
R&D 활용 포인트
필름, 컴파운드, 전자재료 등 정밀 제조 공정에서 제품의 치수, 표면 결함, 라벨 인식 등을 자동화하여 검사 정확도와 생산 효율을 높이는 스마트 팩토리 솔루션에 활용 가능합니다.
평가 입력
본문 22,512자

초록

With the rapid development of modern industrial industry, the workpiece measurement system of many industrial products gradually exceeds the operating load, and the operating efficiency is not high, the cycle is too long, and the accuracy rate is low. In order to solve the problem of automatic and intelligent measurement of mechanical workpieces in industrial production, an automatic mechanical workpiece measurement system based on machine vision is designed in this paper. The digital division of the workpiece is carried out automatically, and fast visual measurement is performed to judge whether the workpiece is qualified or not, which greatly improves the accuracy of workpiece detection. On this basis, this paper optimizes the machine vision measurement system of the workpiece based on the picture and label recognition system to make its operation efficiency higher and operation accuracy better.

본문 22,512자

본문 펼치기
<u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> # Research on Vision Measurement System of Mechanical Workpiece Based on Machine Vision ## Yubin Guo School of Information and Communication Engineering, North University of China, Taiyuan, China Abstract. With the rapid development of modern industrial industry, the workpiece measurement system of many industrial products gradually exceeds the operating load, and the operating efficiency is not high, the cycle is too long, and the accuracy rate is low. In order to solve the problem of automatic and intelligent measurement of mechanical workpieces in industrial production, an automatic mechanical workpiece measurement system based on machine vision is designed in this paper. The digital division of the workpiece is carried out automatically, and fast visual measurement is performed to judge whether the workpiece is qualified or not, which greatly improves the accuracy of workpiece detection. On this basis, this paper optimizes the machine vision measurement system of the workpiece based on the picture and label recognition system to make its operation efficiency higher and operation accuracy better. Keywords: Machine vision; Mechanical workpiece measurement; OCR. ## 1. Introduction 1.1 Calibration Method of Measuring Camera for Mechanical Workpiece The measurement method of the mechanical workpiece measurement described in this paper mainly includes the following processes. First, measure the size of the workpiece to determine whether it is affected by image distortion and algorithm instability during the input process, and perform vision correction on the images that have been entered. Then, for the input picture, it is subjected to the spatial transformation of pixel size and geometric size, and the process of scaling and pixel digitization is performed to ensure that it can become a digital feature that computer recognition algorithms can recognize. On this basis, by collecting the contour information of the workpiece, image preprocessing and preliminary workpiece edge feature extraction are performed to ensure that its information is preliminarily sorted and the subsequent workload is reduced. Then the feature calculation and design of the geometric contour of the workpiece are carried out. At the same time, feature recognition is also performed for workpiece labels. The recognition process mainly relies on character segmentation and feature recognition of specific fields. This process mainly relies on convolutional neural networks. The specific process is shown in Figure 1 below. As a classic image processing algorithm in deep learning, the convolutional neural network has been widely used in image processing and recognition. In this process, the convolutional neural network requires fewer parameters than other neural networks and can be directly input. Therefore, it has been widely and profoundly applied in this field [1]. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> Start Determine the Image Distortion Correction scope of the label area and remove irrelevant information Preprocessing split label characters workpiece contour information Determine workpiece pixel edges Analyzing neural network training models and Calculate the geometrical features of the workpiece end Figure 1. Flow chart of measuring method of mechanical workpiece 1.2 Pixel Equivalent Calculation Method The image captured by the inspection machine is generally two-dimensional, and the feature identification of the workpiece contour needs to extract its three-dimensional feature information. Therefore, the feature conversion of position and attitude is first performed. The object is the picture's coordinate system, which mainly relies on translation and rotation. The object of the rotation is the coordinate system of the sensor camera, and the reference system is transformed at the same time [2]. The mathematical tools for the transformation are as follows. _X_ _c_   _XW_   _X_     ## Yc  =  R 3*3 T 3*1   YW  = [ r 1 r 2 t ]  Y _Zc_   0 1   _ZW_   _Z_  _X_ _c_   _XW_   _XW_        ##  Yc  =  R 3*3 T 3*1   YW  = [ r 1 r 2 t ]  YW   _Zc_   0 1   _ZW_   _ZW_         1   1   1  _c_   _W_   _W_     ## c  =  R 3*3 T 3*1   YW  = [ r 1 r 2 t ]  YW _c_   0 1   _ZW_   _ZW_ ## Yc  =  R 3*3 T 3*1   YW  = [ r 1 r 2 t ]  YW _Zc_   0 1   _ZW_   _ZW_     1   1   1 (1) ## Where, [ r 1 r 2 t ] is the extrinsic parameter matrix. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> 1.3 Image Preprocessing Method In the process of image preprocessing by the vision measurement system of mechanical workpieces, computer algorithms are applied to the projection principle and perspective principle. And the camera coordinate system is converted from three-dimensional to two-dimensional images so that the stereo sensor acquisition device can be adapted to the two-dimensional algorithm for feature recognition and extraction of dimensional pictures. In the case of ignoring image distortion, the mathematical model of the above image transformation preprocessing is as follows. 0 _x_ _p_   _f_ γ 0  _xc_  _x_ _p_   _f_ γ 0  _xc_        _y_ _p_  =  0 _f_ 0  _yc_   1   0 0 1  _zc_  _p_    _c_ 0 _f_ 0     _zc_  _y_ _p_  =  0 _f_ 0  _yc_ _c_  _p_    _c_ (2) 1   0 0 1 _z_ _c_ Where, _f_ is the focal length of the camera and <sup>γ</sup> is the distortion coefficient [3]. The image preprocessing method refers to a system that uses image sensors to identify, measure, judge, and classify objects and human targets. At the beginning of this research, the specified images were obtained for the target through corresponding technical means. With the high development of industrial automation and computer technology, image preprocessing methods have emerged as the times require and are widely used in the semiconductor and electronic industries, mainly for assembly and surface mount processes, etc., and the electronic product processing industry. With the informatization development in this century, this technology is also trying to connect with the Internet of Things. With the high development of the informatization process, large-scale industrial application of image preprocessing technology appears. Initially, this research was to acquire specified target images through corresponding technical means. With the high development of industrial automation and computer technology, image preprocessing methods have emerged as the times require and are widely used in the semiconductor and electronic industries. In China, the image preprocessing method technology is mainly used in tobacco, textile, video packaging, agricultural product color sorting, and other industries on a large scale and is also used in the visual measurement of workpieces described in this paper. ## 2. Design of Label Recognition Algorithm for Ring-mounted Mechanical Workpiece 2.1 Research on the Localization Algorithm of Workpiece Label The mechanical workpiece vision measurement system refers to that in the workpiece's label positioning and image processing, the workpiece label is first extracted from the ROI, the pixel points are grayed, and the color pixels are converted into images suitable for convolutional neural networks. Recognition processed grayscale images. Then filter noise reduction and image enhancement processing are performed on the preliminarily processed images. Then, the image coordinate system that has been preliminarily processed is transformed into the image coordinate system so that the computer algorithm can better recognize it. Then it is divided into coordinate systems, and grayscale features extract its boundary features. Finally, the convolutional neural network is used to analyze and label the scene feature segments, and the integrated workpiece label positioning information results are output. The specific process is shown in Figure 2 below [4]. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> ROI Extraction Filter Denoising Image Enhancement Projection Segmentation Inverse Polar Transform Original Image Image Preprocessing Label Area Positioning Label Segmentation Label Recognition Result Output Grayscale Eigenvalues Convolutional Neural Network Scene Sample Figure 2. Work flow chart of workpiece label localization algorithm 2.2 Research on Workpiece Label Segmentation Algorithm After the preliminary processing of the picture input by the mechanical workpiece vision measurement system, it is necessary to transform the image through an algorithm and reduce the brightness of its gray value to improve the accuracy of its picture information [5]. The feature enhancement is performed on the detailed information in the image. The process is as follows. _V_ out = _CV_ in <sup>γ</sup> (3) Where _V_ out is the output gray value; _C_ is the gray scale factor; _V_ in is the image gray value; γ is the degree of gamma transformation. 2.3 Research on the Recognition Algorithm of Workpiece Label After the feature enhancement of the image, the mechanical workpiece vision measurement system needs to distort the image, and this process mainly relies on Gaussian filtering. The Gaussian filtering algorithm refers to filtering out the noise of the image signal in the high-frequency band with the linear smoothing characteristic of the filter to alleviate the distortion characteristic of the image [6]. The mathematical model of Gaussian filtering for images in a two-dimensional coordinate system is as follows. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> 2 <u>+</u> <u>(</u> _<u>j</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> <u>(</u> _<u>i</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> <u>+</u> <u>(</u> _<u>j</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> _i_, _j_ = <u>2</u> πσ <u>1</u> <u>2</u> _e_ - 2 σ <u>2</u> _<u>i</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> <u>+</u> <u>(</u> _<u>j</u>_ <u>−−</u> _<u>k</u>_ <u>(</u> _<u>i</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> <u>+</u> <u>(</u> _<u>j</u>_ <u>−−</u> _<u>k</u>_ <u>1)2</u> <u>1</u> - 2 σ <u>2</u> = <u>2</u> _e_ (4) _Hi_, _j_ = <u>2</u> πσ <u>1</u> <u>2</u> _e_ 2 σ In the formula, _Hi_, _j_ is the value of the element whose coordinate is (, _i_ _j_ ) in the template; σ is the standard deviation. Considering that the algorithm may filter out the image features in the filtering process, the bilateral pixel weight feature is added to the traditional Gaussian filtering model [7]. The pixel gradient weighting is performed on the image feature values required in the above process to make precise marking and filtering. The process is as follows.   <u>‖</u> _<u>p</u>_ <u>−</u> _<u>q</u>_ <u>‖2</u>   _Gs_ = exp  - <u>2</u> σ _s_ <u>2</u>   2     _<u>I</u>_ _<u>p</u>_ - _<u>Iq</u>_   _Gr_ = exp  - <u>2</u> σ _r_ <u>2</u>   <u>‖</u> _<u>p</u>_ <u>−</u> _<u>q</u>_ _Gs_ = exp  - <u>2</u> 2 <u>‖</u> _<u>p</u>_ <u>−</u> _<u>q</u>_ <u>‖2</u> <u>2</u> _s_ _s_ <u>‖</u> _<u>p</u>_ exp   <u>2</u> σ _s_ <u>2</u> (5)   _<u>I</u>_ _<u>p</u>_ - _<u>I</u>_ _Gr_ = exp - <u>2</u> 2  _<u>p</u>_ _<u>q</u>_ _r_ = exp  - <u>2</u> σ <u>2</u>  _<u>p</u>_ exp  <u>2</u> <u>2</u> _r_ <u>2</u> σ _r_ <u>2</u> Where _Gs_ represents the spatial domain weight; _Gr_ represents the value domain weight; p, q represent the pixel positions; <sup>_I_</sup> _p_ <sup>represents the pixel value at p;</sup> <sup>_I_</sup> _q_ <sup>represents the pixel value at q;</sup> σ _s_ represents the spatial domain standard deviation; σ _r_ represents the value domain standard deviation. ## 3. Research on Vision Measurement System of Mechanical Workpiece Based on Machine Vision 3.1 Software Composition of Machine Vision Based on Vision Measurement System for Mechanical Workpieces The software composition of the machine vision based on mechanical workpiece vision measurement system is as follows. The first is the image acquisition and processing part, which mainly performs image preview editing and shooting and storage for the workpiece. Then the image is preprocessed. The preprocessing process mainly includes filtering noise reduction, grayscale, workpiece edge detection, and contour segmentation. The camera calibration operation is performed for the sensor, and the three-dimensional to two-dimensional conversion, system parameter calibration, and label assignment is performed. The workpiece is then subjected to preliminary parameter measurements, including hole diameter and size. Finally, label classification and label segmentation are performed on the workpiece, and it is accurately identified, and an information database is established to complete the workpiece measurement process. The specific method is shown in Figure 3 below. Machine Vision Vision Measuring System for Mechanical Workpieces Image image Camera Parameter Acquisition preprocessing calibration measurement label recognition Figure 3. Software composition of machine vision measurement system for mechanical workpieces <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> 3.2 Hardware Structure Design of Vision Measuring System for Mechanical Workpiece Based on Machine Vision The camera selection criteria are as follows: (1) The image sensor chip needs to be matched. (2) Determine whether a line scan camera or an area scan camera is required by the object to be measured. (3) Determine whether a color camera is needed according to the color resolution requirements. (4) Select the camera frequency according to the speed requirement of dynamic detection. (5) Determine the camera resolution according to the system detection accuracy requirements [8]. According to the above design requirements, the camera lens of CCD is selected for image acquisition in this paper. The color camera is selected for the mechanical workpiece detection station, and the black and white camera is selected for the component position detection station. The selection criteria for industrial lenses are as follows: (1) Working wavelength, zoom and fixed focus: choose according to whether the working distance changes. (2) Depth of field and lens type: Choose according to the camera position and wide-angle. (3) Selection of image surface size and field of view: determined according to the shooting scope. (4) Resolution: In the machine vision system, the resolution of the image sensor pixel determines the maximum resolution of the system. The pixel resolution is defined as half of the number of pixel-units in a unit millimeter, which is the size of the pixel unit [9]. To sum up, the inspection station selects an industrial fixed-focus lens and adjusts the aperture manually. 3.3 Function Module Design of Mechanical Workpiece Vision Measurement System Based on Machine Vision The main content of mechanical workpiece vision measurement is to transform from workpiece image processing in one area to another workpiece image processing area. This task puts forward new requirements for the current traditional convolutional neural network architecture. The automatic mechanical workpiece measurement system based on machine vision, through optimizing the workpiece size processing process, digitally divides the labels and boundaries of the workpiece. Therefore, the deep hybrid generative model is usually used in the current processing of mechanical workpiece vision measurement tasks. Mechanical workpiece vision measurement aims to transform the input image into a brand new image through image generation. Based on the above background, the convolutional neural network migration model for workpiece image processing, which is based on the deep hybrid generative model, is usually adopted. The image generation quality is improved through the above image processing. Among them, the deep hybrid generative model mainly relies on adversarial network generation and autoencoder. In this paper, unsupervised and supervised vision measurements of mechanical workpieces are designed by different basic tasks of vision measurement of mechanical workpieces. On this basis, a cycle-consistency-based adversarial neural network for unsupervised vision measurement of mechanical workpieces is proposed respectively. As well as adversarial networks generated based on cross-domain autoencoders for supervised mechanical workpiece vision measurement tasks. Then this paper further improves the quality of the generated images by introducing unsupervised and supervised standard datasets for visual measurement of mechanical artifacts [10]. In global informatization, the amount of data in the whole society has reached a very high level. In this process, the generation of various data has played a decisive role in the technological development of machines and deep learning. This process develops its neural network by deeply learning its implicit information from the data to improve computational efficiency. In the research of researchers trying to make the neural network algorithm operate faster, many excellent algorithms have been born. Among them, the convolutional neural network uses the location information features and distribution methods between image pixels to perform feature extraction so that it can perform feature extraction. Image recognition and optimization, based on which the image quality can be improved and adjusted. The process is as follows. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> (6) _xs_  =  _x_ + _<u>Nl</u>_   _ys_   _y_ <u>2</u> cos( ∅ )  _xs_  =  _x_ + _<u>Nl</u>_  cos( ∅ )        _ys_   _y_ <u>2</u>  sin( ∅ )  _s_ _s_  <u>2</u>  sin( ∅ ) ## In the formula, ( xs, ys ) represents the real sub-pixel coordinate, and ( x, y ) is the origin coordinate. The traditional neural network architecture usually simply stacks the neural network layers so that although the related functions can be realized normally, it will cause degradation problems. The reason is that with the deepening of the number of network layers, in this case, the overall architecture of the neural network will produce the systematic gradient disappearance problem. In this process, the neural network forms gradient multiplication through the back-propagation process, resulting in the propagation gradient getting smaller and smaller and close to zero. Therefore, the neural networks used in modern pattern recognition projects have introduced the structure of the residual network. By introducing residual blocks and using the strategy of skip connection, the information lost in the above back-propagation process is reintroduced into the system through skip connection. The image is then characterized by normalization. ## 4. Conclusion In this paper, the traditional mechanical workpiece measurement system is optimized and reconstructed, and an automatic mechanical workpiece measurement system based on machine vision is designed. This paper optimizes the mechanical vision measurement system of the workpiece and reconstructs its label recognition process to ensure that its recognition accuracy is further improved and the image processing process is more optimized. Therefore, the research in this paper is of great significance to this field. In addition, the measurement process for mechanical workpieces in this paper can also be used in other related machine vision research fields, so it has a certain cutting-edge. ## Reference [1] Z. Zhang, Z. Chen, J. Shi, F. Jia and M. Dai, "Surface Roughness Vision Measurement in Different Ambient Light Conditions," 2008 15th International Conference on Mechatronics and Machine Vision in Practice, Auckland, New Zealand, 2008, pp. 1-4. [2] Xiang-Na Tang and Yao-Nan Wang, "Visual inspection of workpiece quality," 2011 International Conference on Image Analysis and Signal Processing, Wuhan, China, 2011, pp. 434-438. [3] M. Ngom and F. Nagata, "Detection of workpieces on a CNC machining table for measurement and automatic tool positioning," 2014 14th International Conference on Control, Automation and Systems (ICCAS 2014), Gyeonggi-do, Korea (South), 2014, pp. 55-58. [4] C. Si and Y. Zhang, "Research of online measurement and inspection approaches for 2.5 dimensional workpieces," 2015 IEEE International Conference on Information and Automation, Lijiang, China, 2015, pp. 1926-1930. [5] Liang-yu Lei, Xiao-jun Zhou and Ming-qing Pan, "Automated Vision Inspection System for the Size Measurement of Workpieces," 2005 IEEE Instrumentationand Measurement Technology Conference Proceedings, Ottawa, ON, Canada, 2005, pp. 872-877. [6] Quanli Liu, Jia Li and Peifen Chen, "Measurement of cylinder diameter based on computer vision system," IET International Conference on Information Science and Control Engineering 2012 (ICISCE 2012), Shenzhen, 2012, pp. 1-4. [7] J. Zhou, X. Qu and B. Liu, "A fast location and pose detection method based on geometric features of inner and outer contours of workpiece," 2016 12th International Conference on Natural Computation, Fuzzy Systems and Knowledge Discovery (ICNC-FSKD), Changsha, China, 2016, pp. 607-611. [8] C. Huang, D. Chen and X. Tang, "Robotic Hand-Eye Calibration Based on Active Vision," 2015 8th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China, 2015, pp. 55-59. <u>Highlights in Science, Engineering and Technology</u> <u>ICCIA 2022</u> <u>Volume</u> <u>1</u> <u>(2022)</u> [9] H. -x. Li, G. -r. Wang and Y. -h. Shi, "Application of Epipolar Line Rectification to the Stereovision Based Measurement of Workpieces," 2009 International Conference on Measuring Technology and Mechatronics Automation, Zhangjiajie, China, 2009, pp. 758-762. [10] S. Palani and Y. Kesavanarayana, "Prediction of surface roughness in end milling process by machine vision using neuro fuzzy network," 2014 International Conference on Science Engineering and Management Research (ICSEMR), Chennai, India, 2014, pp. 1-5.

섹션 본문 29문단 · 14,800자

(제목 없음)

1With the rapid development of modern industrial industry, the workpiece measurement system of many industrial products gradually exceeds the operating load, and the operating efficiency is not high, the cycle is too long, and the accuracy rate is low. In order to solve the problem of automatic and intelligent measurement of mechanical workpieces in industrial production, an automatic mechanical workpiece measurement system based on machine vision is designed in this paper. The digital division of the workpiece is carried out automatically, and fast visual measurement is performed to judge whether the workpiece is qualified or not, which greatly improves the accuracy of workpiece detection. On this basis, this paper optimizes the machine vision measurement system of the workpiece based on the picture and label recognition system to make its operation efficiency higher and operation accuracy better.

Calibration Method of Measuring Camera for Mechanical Workpiece

2The measurement method of the mechanical workpiece measurement described in this paper mainly includes the following processes. First, measure the size of the workpiece to determine whether it is affected by image distortion and algorithm instability during the input process, and perform vision correction on the images that have been entered. Then, for the input picture, it is subjected to the spatial transformation of pixel size and geometric size, and the process of scaling and pixel digitization is performed to ensure that it can become a digital feature that computer recognition algorithms can recognize. On this basis, by collecting the contour information of the workpiece, image preprocessing and preliminary workpiece edge feature extraction are performed to ensure that its information is preliminarily sorted and the subsequent workload is reduced. Then the feature calculation and design of the geometric contour of the workpiece are carried out. At the same time, feature recognition is also performed for workpiece labels. The recognition process mainly relies on character segmentation and feature recognition of specific fields. This process mainly relies on convolutional neural networks. The specific process is shown in Figure 1 below.

3As a classic image processing algorithm in deep learning, the convolutional neural network has been widely used in image processing and recognition. In this process, the convolutional neural network requires fewer parameters than other neural networks and can be directly input. Therefore, it has been widely and profoundly applied in this field [1].

Pixel Equivalent Calculation Method

4The image captured by the inspection machine is generally two-dimensional, and the feature identification of the workpiece contour needs to extract its three-dimensional feature information. Therefore, the feature conversion of position and attitude is first performed. The object is the picture's coordinate system, which mainly relies on translation and rotation. The object of the rotation is the coordinate system of the sensor camera, and the reference system is transformed at the same time [2]. The mathematical tools for the transformation are as follows.

5[ ] 3*3 3*1 1 2 0 1

Image Preprocessing Method

6In the process of image preprocessing by the vision measurement system of mechanical workpieces, computer algorithms are applied to the projection principle and perspective principle. And the camera coordinate system is converted from three-dimensional to two-dimensional images so that the stereo sensor acquisition device can be adapted to the two-dimensional algorithm for feature recognition and extraction of dimensional pictures. In the case of ignoring image distortion, the mathematical model of the above image transformation preprocessing is as follows.

7Where, f is the focal length of the camera and γ is the distortion coefficient [3].

8The image preprocessing method refers to a system that uses image sensors to identify, measure, judge, and classify objects and human targets. At the beginning of this research, the specified images were obtained for the target through corresponding technical means. With the high development of industrial automation and computer technology, image preprocessing methods have emerged as the times require and are widely used in the semiconductor and electronic industries, mainly for assembly and surface mount processes, etc., and the electronic product processing industry. With the informatization development in this century, this technology is also trying to connect with the Internet of Things. With the high development of the informatization process, large-scale industrial application of image preprocessing technology appears. Initially, this research was to acquire specified target images through corresponding technical means. With the high development of industrial automation and computer technology, image preprocessing methods have emerged as the times require and are widely used in the semiconductor and electronic industries. In China, the image preprocessing method technology is mainly used in tobacco, textile, video packaging, agricultural product color sorting, and other industries on a large scale and is also used in the visual measurement of workpieces described in this paper.

Research on the Localization Algorithm of Workpiece Label

9The mechanical workpiece vision measurement system refers to that in the workpiece's label positioning and image processing, the workpiece label is first extracted from the ROI, the pixel points are grayed, and the color pixels are converted into images suitable for convolutional neural networks. Recognition processed grayscale images. Then filter noise reduction and image enhancement processing are performed on the preliminarily processed images. Then, the image coordinate system that has been preliminarily processed is transformed into the image coordinate system so that the computer algorithm can better recognize it. Then it is divided into coordinate systems, and grayscale features extract its boundary features. Finally, the convolutional neural network is used to analyze and label the scene feature segments, and the integrated workpiece label positioning information results are output. The specific process is shown in Figure 2 below [4].

10Highlights in Science, Engineering and Technology

Research on Workpiece Label Segmentation Algorithm

11After the preliminary processing of the picture input by the mechanical workpiece vision measurement system, it is necessary to transform the image through an algorithm and reduce the brightness of its gray value to improve the accuracy of its picture information [5]. The feature enhancement is performed on the detailed information in the image. The process is as follows.

12Where out V is the output gray value; C is the gray scale factor; in V is the image gray value;

13γ is the degree of gamma transformation.

Research on the Recognition Algorithm of Workpiece Label

14After the feature enhancement of the image, the mechanical workpiece vision measurement system needs to distort the image, and this process mainly relies on Gaussian filtering. The Gaussian filtering algorithm refers to filtering out the noise of the image signal in the high-frequency band with the linear smoothing characteristic of the filter to alleviate the distortion characteristic of the image [6]. The mathematical model of Gaussian filtering for images in a two-dimensional coordinate system is as follows.

15Highlights in Science, Engineering and Technology

16In the formula, , i j H is the value of the element whose coordinate is ( , ) i j in the template; σ is the standard deviation.

17Considering that the algorithm may filter out the image features in the filtering process, the bilateral pixel weight feature is added to the traditional Gaussian filtering model [7]. The pixel gradient weighting is performed on the image feature values required in the above process to make precise marking and filtering. The process is as follows.

18Where s G represents the spatial domain weight; r G represents the value domain weight; p, q represent the pixel positions; p I represents the pixel value at p; q I represents the pixel value at q; s σ represents the spatial domain standard deviation; r σ represents the value domain standard deviation.

Software Composition of Machine Vision Based on Vision Measurement System for Mechanical Workpieces

19The software composition of the machine vision based on mechanical workpiece vision measurement system is as follows. The first is the image acquisition and processing part, which mainly performs image preview editing and shooting and storage for the workpiece. Then the image is preprocessed. The preprocessing process mainly includes filtering noise reduction, grayscale, workpiece edge detection, and contour segmentation. The camera calibration operation is performed for the sensor, and the three-dimensional to two-dimensional conversion, system parameter calibration, and label assignment is performed. The workpiece is then subjected to preliminary parameter measurements, including hole diameter and size. Finally, label classification and label segmentation are performed on the workpiece, and it is accurately identified, and an information database is established to complete the workpiece measurement process. The specific method is shown in Figure 3 below.

Hardware Structure Design of Vision Measuring System for Mechanical Workpiece Based on Machine Vision

20The camera selection criteria are as follows: (1) The image sensor chip needs to be matched. (2) Determine whether a line scan camera or an area scan camera is required by the object to be measured.

21(3) Determine whether a color camera is needed according to the color resolution requirements. (4) Select the camera frequency according to the speed requirement of dynamic detection. (5) Determine the camera resolution according to the system detection accuracy requirements [8].

22According to the above design requirements, the camera lens of CCD is selected for image acquisition in this paper. The color camera is selected for the mechanical workpiece detection station, and the black and white camera is selected for the component position detection station.

23The selection criteria for industrial lenses are as follows: (1) Working wavelength, zoom and fixed focus: choose according to whether the working distance changes. (2) Depth of field and lens type: Choose according to the camera position and wide-angle. (3) Selection of image surface size and field of view: determined according to the shooting scope. (4) Resolution: In the machine vision system, the resolution of the image sensor pixel determines the maximum resolution of the system. The pixel resolution is defined as half of the number of pixel-units in a unit millimeter, which is the size of the pixel unit [9].

24To sum up, the inspection station selects an industrial fixed-focus lens and adjusts the aperture manually.

Function Module Design of Mechanical Workpiece Vision Measurement System Based on Machine Vision

25The main content of mechanical workpiece vision measurement is to transform from workpiece image processing in one area to another workpiece image processing area. This task puts forward new requirements for the current traditional convolutional neural network architecture. The automatic mechanical workpiece measurement system based on machine vision, through optimizing the workpiece size processing process, digitally divides the labels and boundaries of the workpiece. Therefore, the deep hybrid generative model is usually used in the current processing of mechanical workpiece vision measurement tasks. Mechanical workpiece vision measurement aims to transform the input image into a brand new image through image generation. Based on the above background, the convolutional neural network migration model for workpiece image processing, which is based on the deep hybrid generative model, is usually adopted. The image generation quality is improved through the above image processing. Among them, the deep hybrid generative model mainly relies on adversarial network generation and autoencoder. In this paper, unsupervised and supervised vision measurements of mechanical workpieces are designed by different basic tasks of vision measurement of mechanical workpieces. On this basis, a cycle-consistency-based adversarial neural network for unsupervised vision measurement of mechanical workpieces is proposed respectively. As well as adversarial networks generated based on cross-domain autoencoders for supervised mechanical workpiece vision measurement tasks. Then this paper further improves the quality of the generated images by introducing unsupervised and supervised standard datasets for visual measurement of mechanical artifacts [10].

26In global informatization, the amount of data in the whole society has reached a very high level. In this process, the generation of various data has played a decisive role in the technological development of machines and deep learning. This process develops its neural network by deeply learning its implicit information from the data to improve computational efficiency. In the research of researchers trying to make the neural network algorithm operate faster, many excellent algorithms have been born. Among them, the convolutional neural network uses the location information features and distribution methods between image pixels to perform feature extraction so that it can perform feature extraction. Image recognition and optimization, based on which the image quality can be improved and adjusted. The process is as follows.

27In the formula, ( ) , s s x y represents the real sub-pixel coordinate, and ( , ) x y is the origin coordinate.

28The traditional neural network architecture usually simply stacks the neural network layers so that although the related functions can be realized normally, it will cause degradation problems. The reason is that with the deepening of the number of network layers, in this case, the overall architecture of the neural network will produce the systematic gradient disappearance problem. In this process, the neural network forms gradient multiplication through the back-propagation process, resulting in the propagation gradient getting smaller and smaller and close to zero. Therefore, the neural networks used in modern pattern recognition projects have introduced the structure of the residual network. By introducing residual blocks and using the strategy of skip connection, the information lost in the above back-propagation process is reintroduced into the system through skip connection. The image is then characterized by normalization.

Conclusion

29In this paper, the traditional mechanical workpiece measurement system is optimized and reconstructed, and an automatic mechanical workpiece measurement system based on machine vision is designed. This paper optimizes the mechanical vision measurement system of the workpiece and reconstructs its label recognition process to ensure that its recognition accuracy is further improved and the image processing process is more optimized. Therefore, the research in this paper is of great significance to this field. In addition, the measurement process for mechanical workpieces in this paper can also be used in other related machine vision research fields, so it has a certain cutting-edge.

참고문헌 10건

  1. Research of online measurement and inspection approaches for 2.5 dimensional workpieces 2015 10.1109/icinfa.2015.7279603
  2. Detection of workpieces on a CNC machining table for measurement and automatic tool positioning 2014 10.1109/iccas.2014.6987958
  3. Application of Epipolar Line Rectification to the Stereovision-Based Measurement of Workpieces International Conference on Measuring Technology and Mechatronics Automation · 2009 10.1109/icmtma.2009.202
  4. Visual inspection of workpiece quality 2011 10.1109/iasp.2011.6109078
  5. Prediction of surface roughness in end milling process by machine vision using neuro fuzzy network 2014 10.1109/icsemr.2014.7043574
  6. Automated Vision Inspection System for the Size Measurement of Workpieces 2005 IEEE Instrumentationand Measurement Technology Conference Proceedings · 2006 10.1109/imtc.2005.1604259
  7. Measurement of cylinder diameter based on computer vision system 2012 10.1049/cp.2012.2412
  8. Robotic Hand-Eye Calibration Based on Active Vision 2015 10.1109/iscid.2015.246
  9. A fast location and pose detection method based on geometric features of inner and outer contours of workpiece 2016 10.1109/fskd.2016.7603243
  10. Surface Roughness Vision Measurement in Different Ambient Light Conditions 2008 10.1109/mmvip.2008.4749497