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

A Visual Measurement Method for Large-Sized Parts

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (4) 카시트 모듈

기본 정보

저자
  1. Junkai Yang — School of Engineering, Huzhou University, Huzhou, China
DOI
10.1109/access.2024.3506613
저널
IEEE Access
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2024.3506613
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4404739671

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(4) 카시트 모듈
R&D 측면
물성·성능 평가
확신도
0.80
근거 용어
machine vision, battery box, dimensional measurement, new energy vehicle, inspection
판단 근거
이 논문은 전기차 배터리 박스 부품의 치수 정밀도를 측정하기 위한 머신 비전 기술을 다루고 있습니다. 이는 코오롱인더스트리의 직접적인 제품 연구는 아니나, 자동차 인테리어 및 모빌리티 부품의 품질 관리 및 자동화 검사 공정 기술로 응용 가능합니다.
R&D 활용 포인트
전기차용 배터리 케이스 및 자동차 관련 부품 제조 공정에서 비전 검사 시스템을 도입하여 치수 정밀도 및 품질 관리 자동화에 활용할 수 있습니다.
평가 입력
본문 50,927자 중 30,032자 발췌

초록

Aiming at the problems of inconsistent standards and low efficiency of manual measurement of oversized parts, a machine vision-based measurement method for battery box parts is proposed for the measurement scenario of battery box parts in new energy vehicles. The method utilizes the edge detection pixel point data of the part image for searching and region localization of line and circle features in the image with a modified Hough transform; A geometric calculation is used to compute the coordinates of the point cloud within the feature area; Drawing on the idea of graph neural network, the priori knowledge of machining is utilized to establish the correlation of related dimensional features in the part drawing, and this is used to propose a model of dimensional validation and correction by the combination of different features. On this basis, an automatic acquisition platform of battery box part images is built, part image samples are collected, and test experiments and algorithm comparisons are conducted in this way. The experimental results show that the machine vision-based battery box part dimensions measurement method proposed in this paper improves the current measurement efficiency by more than 50 times, the measurement error meets the engineering requirements, and the measurement accuracy is also significantly improved compared with other methods, and has good robustness.

본문 50,927자

본문 펼치기
Received 20 September 2024, accepted 10 November 2024, date of publication 26 November 2024, date of current version 5 December 2024. _Digital Object Identifier 10.1109/ACCESS.2024.3506613_ # A Visual Measurement Method for Large-Sized Parts JUNKAI YANG School of Engineering, Huzhou University, Huzhou 313000, China e-mail: yjk@zjhu.edu.cn This work was supported by the Natural Science Foundation Program of Zhejiang Province, China, under Grant LGN21C160008. ABSTRACT Aiming at the problems of inconsistent standards and low efficiency of manual measurement of oversized parts, a machine vision-based measurement method for battery box parts is proposed for the measurement scenario of battery box parts in new energy vehicles. The method utilizes the edge detection pixel point data of the part image for searching and region localization of line and circle features in the image with a modified Hough transform; A geometric calculation is used to compute the coordinates of the point cloud within the feature area; Drawing on the idea of graph neural network, the priori knowledge of machining is utilized to establish the correlation of related dimensional features in the part drawing, and this is used to propose a model of dimensional validation and correction by the combination of different features. On this basis, an automatic acquisition platform of battery box part images is built, part image samples are collected, and test experiments and algorithm comparisons are conducted in this way. The experimental results show that the machine vision-based battery box part dimensions measurement method proposed in this paper improves the current measurement efficiency by more than 50 times, the measurement error meets the engineering requirements, and the measurement accuracy is also significantly improved compared with other methods, and has good robustness. INDEX TERMS Machine vision, new energy vehicle, battery box, dimensional measurement, geometric calculation, deformation and correction. I. INTRODUCTION China is currently the world’s largest producer and consumer of new energy vehicles, the battery is the ‘‘heart’’ of new energy vehicles, and the battery box is an important carrier to ensure the safety performance of the battery, and its manufacturing accuracy has an important impact on its compressive, explosion-proof and sealing. However, under the mass manufacturing process, the battery box related parts will inevitably produce defects such as leakage and dimensional errors, so it is extremely important to detect the key dimensions of the battery box parts. Battery box parts testing mainly includes geometric accuracy, surface quality, mechanical properties and hidden defects and other aspects, of which, the parts geometric accuracy testing including size and shape position accuracy testing. As the basic geometric shape of the battery box parts are the circle, line, rectangle and ellipse and other The associate editor coordinating the review of this manuscript and approving it for publication was Tariq Umer . basic forms, so the detection indicators include roundness, cylindricity, coaxiality, straightness, flatness, parallelism and perpendicularity. The traditional measurement method uses micrometers, vernier calipers or percentage tables and other precision gauges to do the test, along with coordinate measuring machines and special inspection gages through manual sampling. However, due to the large number of parts, it is difficult to use the traditional measurement method to carry out all the tests, and in practice, this way is susceptible to the quality inspection personnel’s proficiency and individual differences and other factors, there are inconsistent detection standards, detection accuracy is not high, low efficiency and error and other drawbacks. With the development of image processing and machine vision technology, machine vision measurement has become one of the hotspots for research in the field of inspection. In recent years, scholars all over the world have carried out extensive research on vision inspection related technologies. Yu et al. [1] proposed an improved method for accurate positioning of concentric circles projection center, which did not need to know the radius of the concentric circle in advance. Zhu et al. [2] designed a Multi-Scale Structural Body Image Deblurring Network (MSDNet) based on the Encoder–Decoder architecture to enhance the target feature details in the structural body image, and constructed a visual measurement method for structural body vibration displacement. Zhang et al. [3] used image sensor to capture the images of a spot rotating synchronously with the measured shaft, and proposed an angle measurement method based on the rotating spot images and machine vision technology. Zhou et al. [4] proposed a multi-camera cooperative measurement method without mechanical motion for the dimension measurement of thin slice workpiece. Gao et al. [5] established a measurement transformation chain used the object-image and object-object transformations to realize the rapid axial dimensional measurements. Cai et al. [6] presented an image filtering using the truncated statistics and edge preserving. Leyffer and Vanaret [7] introduced a filter mechanism to enforce convergence for augmented Lagrangian methods for nonlinear programming, their approach does not require the use of forcing sequences that drive the first-order error to zero. Skrickij et al. [8] developed a visual measurement system for track gauge evaluation, it involved the detection of measurement points and the visual measurement of the distance between them. Li et al. [9] proposed a visual measurement method for aperture and hole center distance by a local coordinate system, cone and cutting plane. Wang et al. [10] presented a novel quantum image edge detection algorithm that involved transforming the image into the wavelet domain through wavelet transform, performing edge detection, and obtaining the edge image via inverse wavelet transform. Jang et al. [11] proposed a hardware method for image edge detection by using stochastic behavior of magnetic tunnel junction. Ahmed et al. [12] proposed an approach for modeling a prediction task using irregularly sampled spatiotemporal sensor data via Graph Neural Networks. Xiong et al. [13] proposed a novel remote photoplethysmography framework that utilizes graph neural network to extract physiological signal, named GraphPhys. Li et al. [14] proposed a novel solution with a specific measurement system by a subpixel location based on the rotating area effect. Zhang et al. [15] proposed a camera calibration approach using polarized light based on high-frequency component variance weighted entropy (HVE). Cai et al. [16] assessed the reliability of the new inspection platform of visual function (IPVF) in comparison with the conventional equipment phoropter (TOPCONVT10) in visual function assessment. Shi et al. [17] proposed a visual method for 3D attitude measurement of air float turntable based on space vector, and constructed a global calibration of the world coordinates for the measurement model. Meanwhile, some scholars have conducted measurement studies on the surface texture of parts and other features using vision technology. Li et al. [18] proposed a method based on Holistically-nested Edge Detection (HED) model for rough edge detection of workpiece images to avoid the influence of workpiece surface texture after rough machining. Huang et al. [19] proposed a feature fusion-based method for measuring grinding surface roughness. Hashmi et al. [20] discussed the characterization of the surface texture of surfaces of traditional or non-traditional manufactured parts through a computer/machine vision approach and assessment of the surface characteristics, i.e., surface roughness, waviness, flatness, surface texture, etc., machine vision parameters. In addition, some scholars have applied vision technology to measurement problems in agriculture, construction and transportation, medicine, and other fields. Zheng et al. [21] proposed a hybrid method based on geometric computation and a convolutional neural network for LED chip defect detection. Kozak et al. [22] proposed an acuity testing not only allowed for the full assessment of vision but also advanced the capability of standard testing with the potential to detect spare visual functions. Tang et al. [23] proposed a new crack backbone refinement algorithm and width-measurement scheme, and simplified the redundant data in the crack image and improved the efficiency of crackshape estimation. Dimas et al. [24] proposed a novel and more robust method for single-image visual size measurements, they used a grid of virtual 3D points projected to the 2D image plane, along with the fusion of probable depth values. However, there are fewer studies on the visual measurement of large-size parts, especially for battery box related parts. Therefore, this paper addresses the measurement problem of battery box related parts for new energy vehicles, utilizes visual inspection technology, builds an image acquisition and testing platform, and combines Hough transform and geometric computation to propose a machine vision-based measurement method for key dimensions of battery box parts for new energy vehicles. The remainder of this study is organized as follows: Section I is the introduction; Section II constructs an image acquisition platform consisting of an LED light source and a color CCD, which includes a conveyor mechanism, a sampling light source, an industrial camera and lens assembly, and a motion control unit, etc.; In Section III, we discuss the algorithmic architecture of the present method, and comprehensively describe the measurement algorithms proposed in this paper, from image preprocessing and edge detection, to feature searching and localization, and geometric feature measurement and analysis; Section IV describes the related measurement experiments, and analyzes the validity of the present method and its measurement accuracy by the test data; and Section V is the conclusion of the studies. II. DESIGN AND CONSTRUCTION OF THE VISUAL MEASUREMENT SYSTEM _A._ _TEST PLATFORM_ As shown in Figure 1, this study takes a certain side beam part of the battery box of a new energy vehicle as an example, and builds a image acquisition device using LED light source and industrial color CCD camera to capture images of parts, as shown in Figure 2. The device is mainly composed of the following four parts: 1. The conveyor belt, which serves to transport the part to be inspected under the acquisition lens at a constant speed and stops briefly, while the background of the conveyor belt and the target part have a gray scale difference in the acquired image. 2. Light source, in order to avoid the reflective effect of the aluminum alloy material, to compensate for the angular changes in the surface of the parts, this paper adopts the diffuse reflection shadowless LED light source, the use of multi-light source large angle oblique radiation in order to reduce the chromatic aberration of the parts of the target area, thereby enhancing the image background and the gray scale difference between the parts. As the tested parts are placed on the green conveyor belt in the production condition, in order to get better shooting effect, after many tests, white light is selected from white light and monochromatic light (red, green and blue) for illumination. For the light conditions of different production environments, the best light source configuration can be selected by testing a variety of light sources according to the actual situation, and its comparative analysis, which is also the content of the subsequent research work. Translated with DeepL.com (free version) 3. Industrial camera and lens assembly, use a highperformance CCD camera with a resolution of 2592 × 1944, 5 million pixels, and a frame rate of 23.3 f/s, connect it to a computer via a POE cable, thus realize the shooting and storing of images of parts. 4. Motion control platform, the camera and lens are mounted on the platform, moving through the control axis, obtaining the image edge information and feature extraction of its edge are the key to the whole detection process. FIGURE 1. Drawing for machining of battery box front panel parts. As the online inspection equipment of the production line, it is planned to test the application on the conveyor line with a speed of 0.5 m/s. The speed of the conveyor platform FIGURE 2. Machine vision image acquisition device. FIGURE 3. Camera calibration coordinate system. is adjustable, with an adjustable range of 0-1 m/s, and the device should be matched with the speed control. However, due to the battery box parts online inspection process, the environment is complex, the quality of the collected image is susceptible to a variety of environmental factors, how to quickly extract the target features in the image is the main content of this paper, the subsequent content will be described in detail. _B._ _CAMERA CALIBRATION_ Camera calibration is a process of estimating the parameters of a camera model, which must be accurately calibrated before acquiring the part images. Four coordinate systems are commonly used in the camera calibration process: the pixel coordinate system ( _u, v_ ), the imaging plane coordinate system ( _x, y_ ), the camera coordinate system ( _xc, yc, zc_ ), and the world coordinate system ( _xw, yw, zw_ ). As shown in Figure 3, the transformation relationship between the camera coordinate system and the imaging plane coordinate system can be expressed by Equation 1. _u_ _v_ 1   _fx_ 0 _cx_ 0 _fy_ _cy_ 0 0 1   _Xc_ _Yc_ _Zc_     =   (1) _Zc_   Since the object of study in this paper is a fixed part with a consistent image acquisition background, in order to improve the accuracy of the camera calibration, we use the Tsai calibration method, in which some fixed points located on the transfer mechanism are used as the basis for calibration. The internal and external parameters of the camera model are obtained by establishing the correspondence between points with known coordinates on the calibration object and its image points. _C._ _DETECTION PROCESS_ In order to improve the adaptability and real-time performance of on-line inspection of parts, the images collected by CCD are firstly grayed out and histogram equalized to achieve image enhancement, and then the improved Canny operator is used to suppress the image noise and detect the edge information of the workpiece. Improved Hough transform is used to complete the search and localization of the line features at the edge of the part, while graphical refinement is used to extract the contour skeleton, fill the image of the interference line, and determine the coordinates of the edge pixel feature points. The least squares method is used to fit the coordinates of the feature points, and the distance between two lines is calculated to realize the distance detection of the length of the part. Finally, the geometric calculation is utilized to detect and calculate the length, center of circle, angle and other dimensions, and the specific process is shown in Figure 4. III. ALGORITHM ARCHITECTURE _A._ _IMAGE PREPROCESSING_ Adaptive median filtering is added before Gaussian filtering to handle impulse noise with high probability. Median filtering is a nonlinear smoothing technique based on statistical ordering theory, which is based on the principle of removing isolated noise points by setting the gray value of each pixel point to the median of the gray values of all pixel points within a certain neighborhood window of the point. The use of adaptive spatial median filtering removes the smoothing nonimpulsive noise while preserving the details and reducing the boundary distortion problem. Assume that _smax_ is the maximum size allowed in the rectangular window _szy_ ; _zxy_ is the gray value at point ( _x_, _y_ ); _zmin, zmed_ and _zmax_ are the minimum, median, and maximum values of grayscale, respectively. The basic steps are as follows: Step1: Iterate through the gray values of the pixels in _szy_ and sort them from smallest to largest. If _zmin_ _< zmed_ _< zmax_ is satisfied and _zmed_ is not a pulse, then skip to the step 2, and if the window size ≤ _smax_, then repeat the step 1, otherwise output _zmed_ ; Step2: If _zmin_ _< zmed_ _< zmax_, then _zxy_ is nonimpulsive and _zxy_ is output, otherwise output _zmed_ . As the output value changes, the rectangular window _szy_ is moved to the next position in the image, and the algorithm reinitializes and continues. The median value of the iteration is updated using new pixels, thus reducing the amount of computation. In the actual detection process of parts, the original where, _ni_ is the number of pixels with a gray scale of _xi, MN_ is the total pixel value of the image. According to the analysis of the above image preprocessing methods, the battery box parts image is filtered and denoised and grayscaled. From the image preprocessing results can be seen that the preprocessing can be better to remove the image acquisition process of the noise, complete retention of the part feature information, and did not cause significant distortion of the image, as shown in Figure 5. _B._ _CANNY EDGE DETECTION_ For battery box parts, lines and circles are important components of their image edges. Therefore, it seems critical to extract edge features quickly and accurately from images containing more noise. The edge detection operator utilizes the mutation nature of the image edges, and when filtering the image edges, a part of the kernel will be located at the edge of the image, so as to extract the image edge features. The commonly used edge detection operators are Roberts, Prewitt, Sobel and Canny. The traditional Canny operator, image generally contains more noise, which is easy to be misjudged as feature points in image processing, so it is necessary to preprocess the shadows and noise points appearing in the process of image acquisition, to strengthen the edge information, and to extract the pixel points in the required area, and perform grayscaling and histogram equalization on them, so as to reduce the amount of the subsequent calculations and recognition of miscalculations. Grayscale image relative to the color image, due to its R, G, B three components are the same, and a single pixel point changes from more than 16 million kinds to 255 kinds, can greatly reduce the amount of color calculations, improve the speed of image processing. The commonly used grayscaling processing methods are: (1) maximum value method; (2) component method; (3) average value method; (4) weighted average method. In this work, the weighted average method is used after comparing the processing effect of the above methods. Since after grayscaling an image, it tends to result in unknown detail information in the image, it is necessary to change its grayscale distribution by grayscale histogram equalization. Histogram equalization stretches the distribution of each pixel based on the cumulative function transformation, which transforms the histogram to a specific mapping, defined as follows: Set the gray value of the image to be processed be _x_, the value interval of _x_ is [0, L-1], _x_ = 0 means black, _x_ = _L_ - 1 means white, and the mapping function _y_ = _f_ ( _x_ ) of equalization needs to be satisfied: (1) _f_ ( _x_ ) is monotonically increasing on the interval _x_ ∈ [0 _, L_ - 1] such that the output gray value is not less than the corresponding input value; (2) For 0 ≤ _x_ ≤ _L_ - 1, there is 0 ≤ _f_ ( _x_ ) ≤ _L_ - 1 to ensure the consistency of the grayscale output input range. The mapping function for grayscale equalization is Equation 2. _y_ = _f_ ( _x_ ) = <sup>_<u>L</u>_</sup> <sup>−</sup> <sup><u>1</u></sup> _MN_ - _k_ _k_ =0 <sup>_ni, k_</sup> <sup>= 0</sup> <sup>_,_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, . . ., L_</sup> <sup>−</sup> <sup>1</sup> (2) FIGURE 4. The flowchart of dimensional detection. FIGURE 5. Filtering and graying of the image of the part. (a) is the source image of the part, (b) is the image filtered effect. (c) is the graying of the image. which needs to set the high and low thresholds artificially, has poor adaptive ability. In this paper, an improved Canny algorithm is proposed to overcome the deficiency of its poor adaptive ability. In adaptive thresholding computation: the input image is first smoothed by the filter, the non-extreme values are suppressed by calculating the image gradient, and the image after refinement of the edges is subjected to adaptive thresholding, so as to obtain the edge information of the input image, and improve the adaptive ability of the Canny operator. We define the initial high threshold of the image as _T_ 1 and use it to divide the image into a background region and a target region, _G_ 1 is the set of all pixel points in the background region and _G_ 2 is the set of all pixel points in the target region. It can be seen that _G_ 1 consists of pixel points with gray value greater than _T_ 1 and _G_ 2 consists of the rest of the pixel points. Calculate the average gray values _µ_ 1 and _µ_ 2 of the pixels in _G_ 1 and _G_ 2, respectively, and calculate the new threshold _T_ 2. Iteratively calculate the new threshold _T_ 2 until the highest threshold _Th_ satisfies Equation (5). If the difference between _T_ 1 and _T_ 2 is less than the predefined parameter _�T_, set _T_ 2 be the highest threshold value sought, otherwise set _T_ 1 = _T_ 2, and the related calculation formula is as follows: _T_ 1 = _Gmax_ + _σmax_ (3) where, _Gmax_ is the pixel maximum gradient; _σmax_ is the pixel maximum gradient variance. _T_ 2 = ( _µ_ 1 + _µ_ 2) _/_ 2 (4) where, _µ_ 1 is the average gray value of pixels in _G_ 1; _µ_ 2 is the average gray value of pixels in _G_ 2. _T_ 1 = _Th_ × _k_ (5) where, _Th_ is the highest threshold and _k_ is the adaptive coefficient, the value of _k_ in this paper is determined to be 0.3 after repeated testing. As shown in Figure. 6, where (a) is the structure of the electrode hole in the battery box part, the feature has a high positioning accuracy requirement in the machining process because the structure is an important indicator of the yield of the battery box part. As can be seen from Figure. 6(b), the improved Canny detection algorithm well extracts the large and small round hole features in the electrode holes, and better preserves the roundness of the round hole features with clear boundary features. _C._ _FEATURE SEARCH AND LOCALIZATION BASED ON_ _IMPROVED HOUGH TRANSFORM_ Image feature search generally uses the gray scale or gradient values of pixels in the image space to extract straight lines directly or by using the information mapped to the parameter domain space. The Hough transform is a popular feature extraction technique that converts an image from Cartesian to polar coordinates. Any point within the image space is represented by a sinusoidal curve in the Hough space. In addition, two points in a line segment generate two curves, which are overlaid at a location that corresponds with a line through the image space. The Hough transform is a feature extraction technique used in image analysis, computer vision, pattern recognition, and digital image processing [25]. However, in the case of a large part image size, the use of the traditional Hough transform for feature search is prone to large memory consumption and reduce the computational efficiency of the FIGURE 6. Edge detection of part image features. (a) is the source image of the circular hole feature of the part, (b) is the edge detection result of the features. algorithm. Therefore, we adopt a feature search and localization strategy based on improved Hough transform, and use clustering storage algorithm to detect the domain of a pixel point when detecting a straight line, classify the clusters according to the proximity relationship and exist them in an array in order, and map all pixels of each class into the parameter space for detection and identification. When detecting the circle, a priori knowledge of the circle center and radius range prediction is utilized to avoid the invalid computation region and reduce the overall computation amount. By setting the range of circle radius ( _rmin_, _rmax_ ), determining the four vertices coordinates of the edge pixels of the circle’s tangent rectangle, and then calculating the number of rows and columns in the reference region, thus determining the range of the region containing the edge pixels, and then assigning the region of interest to a new image matrix and then processing the region, such an improvement will greatly save searching time compared to circle detection with unknown radius. As shown in Figure 7, the feature search for line and circle can be completed quickly by using the improved Hough transform. It is not difficult to find that, although this method can search the line or circle features in the image, its recognition rate of line and circle features differs greatly, the recognition effect of line features is better and the accuracy is high, but the recognition rate of circle features is not satisfactory. However, in the face of the engineering accuracy requirements of 0.01 0.10mm for the key dimensions in this case, if the improved Hough transform method is directly used to identify and calculate these dimensions does not better meet the engineering requirements, in order to improve the overall accuracy of the measurement, we only use the improved Hough transform method for searching and locating the key features in the parts. For the battery box parts involved in a large number of circular holes, straight line features, to carry out a certain amount of feature search and positioning experiments, experimental data show that: circular holes, straight line feature search results are stable and reliable, circular positioning error of ± 0.15mm, so in this paper will only be used for the calculation of the coarse positioning of the circular holes, and the subsequent measurement of the size of the use of a more accurate geometric calculation method. _D._ _MEASUREMENT OF EDGE AND HOLE DIMENSIONS_ _BASED ON GEOMETRIC CALCULATIONS_ In order to improve the measurement accuracy, the dimensional measurement of the part image is performed in the form of pixel-point geometric computation based on the pixel-point information extracted by edge detection. According to the improved Hough transform method proposed in the previous section, the searched linear features are deformed into a bounding box structure, as shown in Figure 8. Taking the upper boundary line of the inner frame of the part as an example, the line searched by the Hough transform is properly extended along the _x_ and _y_ directions to form a rectangular box, which contains the original data of all the pixel points reflecting the upper boundary lines of the part, so these original pixel points are used as the basic data for calculating the length and size of the boundary lines, which are the most accurate. Based on this idea, we propose a geometric computation-based measurement method for edge and round hole dimensions by using the improved Hough transform method to locate the target feature area of the part image, together with the edge detection data. Generally, it is difficult to accurately place the part in a ‘‘horizontal and vertical’’ standard attitude during the image acquisition process, such as Figure 7, the upper boundary line of the part is not a horizontal line, so in order to consider the impact of the measurements brought about by this reality, a straightness concept is introduced. Straightness is an index that limits the amount of variation between lines and theoretical lines in a sampled image, and is a requirement for the inaccuracy of image sampling gestures. Assuming that(( _xi, yi_ ) _,_ ( _i_ = 1 _,_ 2 _, . . ., n_ )) is the coordinate value of a group of pixel points and _linearity_ is the corresponding straightness of the group of pixel points, when the straightness is 1, it means that the image characterized by the group of pixel points is a standard line, and when the straightness is 0, it means that the image characterized by the group of pixel points is a standard circle. And in practical application, the straightness takes the value between 0-1, when its value is close to 1 it is a line, and when its value is close to 0 it is a circle, and its calculation formula is as follows: _linearity_ = 2 × ~~�~~ 0 _._ 25( _s_ <sup>2</sup> max − _s_ <sup>2</sup> min <sup>)</sup> _s_ max (6) where, _s_ max = 2 × _s_ min = 2 × 2 × <sup>~~�~~</sup> _sumx_ + _sumy_ + _com,_ 2 × <sup>~~�~~</sup> _sumx_ + _sumy_ - _com,_ ~~√~~ ~~√~~ _com_ = _sumxy_ = _sumy_ = ~~�~~ ( _sumx_ - _sumy_ ) <sup>2</sup> + 4 _sum_ <sup>2</sup> _xy,_ - _n_ _<u>i</u>_ =0 - _n_ _<u>i</u>_ =0 + <sup><u>1</u></sup> _n_ 12 <sup><u>1</u></sup> 12 <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>=</sup> + <sup><u>1</u></sup> _n_ 12 <sup><u>1</u></sup> 12 <sup>_,_</sup> ( _xi_ −¯ _x_ ) <sup>2</sup> ( _yi_ −¯ _y_ ) <sup>2</sup> _, sumx_ = _n_ - _n_ _<u>i</u>_ =0 ( _xi_ −¯ _x_ ) <sup>2</sup> _xi_ _yi_ ( _yi_ −¯ _y_ ) <sup>2</sup> - _n_ - _n_ _<u>i</u>_ =0 _._ _n_ _<u>i</u>_ =0 _,_ ¯ _y_ = _n_ As the battery box parts are long, their maximum length dimension is more than 500mm, which belongs to the category of oversize measurement for visual inspection. Therefore, the use of monocular lens sampling is highly susceptible to image distortion, resulting in the deformation of some image features, such as round holes. As shown in Figure. 9, the deformation of the left and right electrode holes is caused by the image acquisition of the part, which affects the edge detection results. As can be seen in the Figure. 9, the deformation of the image acquisition is prone to lead to inconsistency in the edge detection results, the edge detection results of the left electrode hole in Figure 9. consists of a deformed circle formed by the left semicircular lower surface contour line of the hole and the right semicircular upper surface contour line, whereas the edge detection results of the right electrode hole consists of a deformed circle formed by the left semicircular upper surface contour line of the hole and the right semicircular upper surface contour line, so that the difference in the angle of the acquisition will lead to the uncertainty of the edge detection results, and all the pixel points obtained from edge detection cannot be used as the basis of measurement. The battery box parts involved in this paper are mainly processed in the way of equal-diameter through holes and equal-size removal of material, so only the upper surface edge features of the parts need to be collected for size calculation, such as the left electrode holes in Figure 9. should be characterized by the contour of the upper surface of the right semicircle, and the right electrode holes should be characterized by the contour of the upper surface of the left semicircle as the basis for size measurement. In order to selectively extract the pixel point information after edge detection and eliminate the deformed feature points mentioned in the above analysis, drawing on the idea of graph neural network, other independent features in the image are mined for inter-sample attribute relationships, and the parent-child relationship or cluster relationship between the image features is established using the priori knowledge, so as to make up for the lack of information caused by the elimination of deformed points. FIGURE 7. Feature localization based on improved Hough transform. FIGURE 8. Geometric calculation of line features. Take the edge detection data of the left electrode hole in Figure 9. as an example, as shown in Figure 10, the Hough transform localizes the electrode hole feature within a rectangular box (pink) containing some columns of pixel points _pi, pj_ .By comparing the y-direction coordinates of all pixel points, the y-direction maximum value point _pyt_ and minimum value point _pyb_ can be obtained, according to which the pixel points can be divided into two regions: A and B. �� _pj_ ( _x_ ) min − _pyt_ ( _x_ )�� _<_ �( _pyt_ ( _y_ ) − _pyb_ ( _y_ ))�2�, area A is deter mined as an image acquisition distortion area, and the data in area B is also used as the basis for subsequent calculations; conversely, area B is determined as an image acquisition distortion area, and the data in area A is used as the basis for subsequent calculations. Obviously, in Figure. 10(a), area A is the deformation area and area B is the calculation basis area, and the center point of the circle obtained from the calculation of some pixel points is recorded as _pc_ - _t_, and its coordinates is calculated by the formula (7). _m_ where _, A_ ∈ ( _pj_ = (� _j_ =1 _n_ _B_ ∈ ( _pi_ = ( _i_ =1 _pj_ ( _x_ ) ≤ _pyt_ ( _x_ ))) _,_ _pi_ ( _x_ ) _> pyt_ ( _x_ ))) _._ _pc_ - _t_ ( _x_ ) = ( _pyt_ ( _x_ ) + _pyb_ ( _x_ )) �2 _pc_ - _t_ :    _pc_ - _t_ ( _y_ ) = <sup><u>1</u></sup> _n_ <sup>·</sup> - _n_ _i_ =1 (7) _pi_ ( _y_ ) Similarly, the x-direction coordinates of these pixel points are calculated, and when the x-direction minimum value point among the pixel points in area A satisfies: However, the point _pc_ - _t_ is approximated by incomplete edge features, and its accuracy is difficult to guarantee. Therefore, the idea of graph neural network can be borrowed to FIGURE 9. Image acquisition and edge detection deformation. FIGURE 10. Geometric calculation model of circular hole features. (a) is the deformation analysis for edge detection of holes, (b) is the correction calculation of circular hole dimensions. fully explore the positional relationship of other graphical features to this hole and establish the correlation. According to the priori knowledge, the threaded holes C, D, E, F as Figure 10(a) in the processing of the center hole (electrode hole) as its positioning reference, so we can use reverse thinking, the benchmark hole around the small threaded hole characteristics as the measurement of the center hole of the auxiliary information. In addition, in the part design, such as C, D, E, F and other threaded holes are often small equal diameter through-hole structure, so this small diameter through-hole in the image acquisition process produces a small deformation, and will not appear similar to Figure. 9 in the left and right semicircle overlap of the upper and lower surface boundaries of the phenomenon, which also ensures the consistency of the edge detection output. If the pixel point of the edge of the small threaded hole is _pk_, the centroid of the hole (electrode hole) obtained by its calculation is marked as _pc_ - _e_, and its coordinate is calculated by the formula (8). _pc_ - _e_ ( _x_ ) = <sup><u>1</u></sup> _s_ <sup>·</sup> _pc_ - _e_ :    _pc_ - _e_ ( _y_ ) = <sup><u>1</u></sup> _s_ <sup>·</sup> (8) - _s_ _k_ =1 - _s_ _k_ =1 _pk_ ( _x_ ) _pk_ ( _y_ ) In general, the centroid point _pc_ - _t_ calculated by the edge features of the hole and the centroid point _pc_ - _e_ calculated using the edge features of the surrounding threaded holes do not overlap, and there is bound to be a deviation between the two, as shown in Figure. 10(a). For this reason, a numerical iterative correction method is used to optimize the location of the centroid of the circle, and the final ideal point of the circle is denoted as _pc_ - _i_, which is calculated by the formula (9). Among them, the adjustment coefficients _ξ_ and _γ_ are determined by the checking formula (10) for _pc_ - _i_ . When the error value _σ_ reaches the minimum value, the corresponding _pc_ - _i_ is used as the final centroid of the circle, and it is used as the basis for the measurement of the positioning dimensions of the hole (electrode holes), and the result of the measurement is shown in Figure. 10(b). _pc_ - _i_ ( _x_ ) = _ξ_ - _pc_ - _t_ ( _x_ ) + _γ_ - _pc_ - _e_ ( _x_ ) _pc_ - _i_ ( _y_ ) = _ξ_ - _pc_ - _t_ ( _y_ ) + _γ_ - _pc_ - _e_ ( _y_ ) _ξ_ + _γ_ = 1 _B._ _EXPERIMENTAL DATA ANALYSIS_ In order to verify the effectiveness of this method for the measurement of the battery box part of the new energy vehicle, and to evaluate the detection accuracy and efficiency of this method more comprehensively, we compare and analyze it with the Hough transform measurement method, the CCD-based measurement method, the vision measurement method based on deep learning, and the current coordinate measurement method in experiments. As shown in Figure. 13, the above methods are tested separately with eight key dimensions of the part as the measurement indexes, and their respective performances are shown in Table 1. The above comparison experiments show that: the machine vision-based battery box part size measurement method proposed in this paper is better than other vision measurement methods in terms of measurement accuracy, the method is better adapted to the characteristics of the oversized battery box parts, there is a better correction for the image distortion generated in the process of image acquisition, and the measurement error of the size meets the requirements of the engineering applications and the overall error rate is lower than that of the deep learning methods. The method proposed in this paper has the advantage of low cost and good accuracy compared to existing large size visual measurement methods. Since this method adopts the single camera shooting method, it has the effect of reducing the cost compared with the dual camera shooting method commonly used in other large-size measurements. Meanwhile, the dual-camera sampling method has problems such as later image splicing recognition, which is prone to produce sampling secondary error and reduce the accuracy. This method adopts geometric calculation to correct the sampling distortion parts, which can repair the image distortion and ensure the measurement accuracy to a certain extent. Additionally, at present, the part manufacturer uses CMM to check product quality by manual sampling, its efficiency is 5min/piece, the visual measurement method proposed in this paper in the efficiency of more than 50 times, and circumvents the randomness and accuracy volatility problems brought about by manually operated CMM, the overall error rate of eight dimensions is close to that of the manual measurement method. It has a positive effect on standardized product quality inspection, can reduce labor costs to a greater extent, and ensure the consistency of the measurement standard, in line with the needs of large-scale online inspection applications. However, although this method has some obvious advantages in measuring large sizes, it also has some limitations as well. For example, after large number of measurement experiments on parts of different sizes, it was found that when the part size lies within the area of 650 × 650 mm, the measurement error is small. When the horizontal/vertical dimensions exceed 650mm, the measurement error will increase significantly. When the measured size is larger than 700mm, the sampled image shows large distortion. In addition, the measurement accuracy has a great relationship with the quality of _pc_ - _i_ :    (9) [( _distance_ ( _pi, pc_ - _i_ )) − _r_ ] <sup>2</sup> (10) _n_ _σ_ = ~~�~~ <u>��</u> - _n_ - _<u>i</u>_ =1 IV. EXPERIMENT AND ANALYSIS _A._ _EXPERIMENTAL ENVIRRONMENT AND TEST OBJECTS_ In order to verify the validity of this method, the proposed machine vision-based measurement method of new energy vehicle battery box part dimensions is applied to production inspection. A high-performance CCD camera with LED light source is utilized to build the test platform, and the experimental environment is Windows 11 operating system, Python version 3.8, 16.00 GB of RAM, processor Intel Core i7-10700, 8 cores and 16 threads, main frequency 2.90 GHz, and graphics card NVIDIA GeForce GTX 1650, as shown in Figure 11. The test samples in this paper are acquired using a self-built image acquisition platform, with the battery box edge beam and front panel parts as the test objects, and 200 edge beam parts and 200 front panel parts are randomly selected from a certain batch of parts for centralized sampling. Take the front panel parts as an example, a set of images of each part is grouped by three photos of panorama, electrode hole 1 and electrode hole 2, and a total of 600 images are acquired, as shown in Figure 12. FIGURE 11. Experimental environment and testbed. FIGURE 12. A set of images of the front panel part. (a) is the panoramic image of part, (b) is the layout image of electrode hole 1, (c) is the layout image of electrode hole 2. FIGURE 13. Measurement of critical dimensions of front panel part. the sampled image, which depends on many factors such as the natural light and illumination conditions of the working environment and the background of the exposed environment, which are also the key directions of our future research. TABLE 1. Comparison of five methods in dimensional measurement experiments. V. CONCLUSION On the basis of analyzing and summarizing the characteristics of the existing vision measurement methods and their adaptability, combined with the advantages of geometric calculation methods, and oriented to the measurement of the dimensions of the battery box parts of new energy vehicles, a machine vision-based measurement method of the key dimensions of the battery box parts of new energy vehicles is proposed. Aiming at the long strip characteristics of the battery box parts, a set of visual acquisition platform applicable to automotive battery box related parts (such as the front panel, left and right beams, etc.) is designed and built. The acquired part images are filtered and denoised and grayscaled to reduce the interference information brought in the image acquisition process. Equally, the edge detection Canny algorithm is improved to extract the edge features of the parts, and the improved Hough transform is applied to the search and localization of the key features, and the encircling box is used to sort the line and circle features in the parts into regions, so as to prepare data for the subsequent geometric calculation. Drawing on graph neural network ideas and prior knowledge of part processing, edge detection pixel points are selectively extracted in a geometrically computed manner, overcoming the effects of image distortion produced by monocular cameras sampling oversized parts. The correlation of various graphical features in the part is used to establish a model for the secondary checking and iterative correction of key dimensions to further improve the measurement accuracy of dimensions. Consequently, taking the front end plate parts as an example, a certain number of part images are collected as test samples, and test comparison experiments are carried out with other vision measurement methods and manual coordinate measurement method. The test analysis concludes that: the key dimension measurement method of battery box based on machine vision proposed in this paper is effective, the measurement accuracy is significantly improved compared with other methods, and the measurement efficiency is more than 50 times compared with the manual coordinate measurement method, which has good robustness and is suitable for large-scale dimensional measurement scenarios of battery box parts. Nevertheless, although this method meets the engineering needs in terms of measurement accuracy, it still causes large deformation in the problem of measuring parts oriented to larger sizes, which leads to a decrease in measurement accuracy. Accordingly, future research work will be carried out in the following: upgrade the existing image sampling platform for long parts, increase the number of cameras and color channels, and design a movable camera head to adapt to the measurement needs of parts of larger sizes; Study the dimensional measurement of complex features such as non-equal through holes, introduce graph neural networks and machine learning principles, apply the powerful learning and training functions of neural networks to non-unitary measurement problems, give full play to the efficiency of machine learning, and explore a generalized visual measurement method adapted to multiple products; In-depth analysis of geometric computation methods, optimize of the reduced-dimensional iterative computation model, the organic fusion of geometric computation and neural network, make full use of the advantages of high precision of geometric computation and adaptability of neural network, foster strengths and circumvent weaknesses, apply vision inspection technology to more engineering fields. CONFLICTS OF INTEREST The authors declare that they have no conflicts of interest to report regarding the present study. REFERENCES [1] Z. Yu, G. Shen, Z. Zhao, Z. Wu, and Y. Liu, ‘‘An improved method of concentric circle positioning in visual measurement,’’ _Opt._ _Commun._, vol. 544, Oct. 2023, Art. no. 129620. [2] Y. Zhu, S. Wang, T. Liu, C. Liu, and X. Liu, ‘‘A visual measurement method of structural body vibration displacement combined with image deblurring,’’ _Measurement_, vol. 211, Apr. 2023, Art. no. 112598. [3] F. Zhang, L. Wang, and J. Zhang, ‘‘A visual-based angle measurement method using the rotating spot images: Mathematic modeling and experiment validation,’’ _IEEE_ _Sensors_ _J._, vol. 21, no. 15, pp. 16576–16583, Aug. 2021. [4] X. Zhou, C. Zhou, T. Zhang, X. Mou, J. Xu, and Y. He, ‘‘High precision visual dimension measurement method with large range based on multiprism and M-array coding,’’ _Sensors_, vol. 22, no. 6, p. 2081, Mar. 2022. [5] P. Gao, F. Liu, X. Sun, F. Wang, and J. Li, ‘‘Rapid non-contact visual measurement method for key dimensions of revolving workpieces,’’ _Int._ _J. Metrol. Quality Eng._, vol. 12, p. 10, Jan. 2021. [6] W. Cai, M. Yang, and F. Song, ‘‘Image filtering method using trimmed statistics and edge preserving,’’ _IET_ _Image_ _Process._, vol. 12, no. 7, pp. 1086–1094, Jul. 2018. [7] S. Leyffer and C. Vanaret, ‘‘An augmented Lagrangian filter method,’’ _Math. Methods Operations Res._, vol. 92, no. 2, pp. 343–376, Oct. 2020. [8] V. Skrickij, E. Sabanovič, D. Shi, S. Ricci, L. Rizzetto, and G. Bureika, ‘‘Visual measurement system for wheel–rail lateral position evaluation,’’ _Sensors_, vol. 21, no. 4, p. 1297, Feb. 2021. [9] C. Li, X. Xu, Z. Ren, and S. Liu, ‘‘Research on visual measurement of aperture and hole group center distance based on geometric constraint,’’ _Symmetry_, vol. 15, no. 6, p. 1255, Jun. 2023. [10] G. Wang, W. Zhao, P. Zou, J. Wang, H. Yin, and Y. Yu, ‘‘Quantum image edge detection based on Haar wavelet transform,’’ _Quantum Inf. Process._, vol. 23, no. 8, p. 302, Aug. 2024. [11] J. Jang, S. Lee, and W. Park, ‘‘Stochastic method of image edge detec tion using magnetic tunnel junction,’’ _J._ _Magn._ _Magn._ _Mater._, vol. 610, Nov. 2024, Art. no. 172503. [12] M. Ahmed, N. Wilming, and M. Atzmueller, ‘‘Graph neural network based measurement inference on irregular sensor geometries,’’ in _Proc._ _IEEE_ _21st_ _Int._ _Conf._ _Ind._ _Inform._, Jul. 2023, pp. 1–8, doi: [10.1109/INDIN51400.2023.10218172.](http://dx.doi.org/10.1109/INDIN51400.2023.10218172) [13] J. Xiong, W. Ou, Z. Liu, J. Gou, W. Xiao, and H. Liu, ‘‘GraphPhys: Facial video-based physiological measurement with graph neural network,’’ _Comput. Electr. Eng._, vol. 113, Jan. 2024, Art. no. 109022. [14] D. Li, Z. Ye, J. Tang, and X. Wang, ‘‘Visual measurement of valve open ing area with improved subpixel edge location,’’ _Measurement_, vol. 198, Jul. 2022, Art. no. 111410. [15] Z. Zhang, L. He, Y. Wu, and F. Zhang, ‘‘Camera calibration approach using polarized light based on high-frequency component variance weighted entropy for pose measurement,’’ _Meas._ _Sci._ _Technol._, vol. 34, no. 11, Nov. 2023, Art. no. 115015. [16] W.-J. Cai, S. Lin, R. Chen, R. Zhuo, X. Li, J. Yu, J. Huang, Z. Chen, C. Xu, and X. Huang, ‘‘Reliability and agreement of an integrated platform for intelligent visual function measurement,’’ _Ophthalmol._ _Therapy_, vol. 12, no. 4, pp. 1929–1937, Aug. 2023. [17] J. Shi, G. Chen, and X. Shen, ‘‘Visual measurement system for three dimensional rotation attitudes of the air float turntable,’’ _Optik_, vol. 222, Nov. 2020, Art. no. 165229. [18] X. Li, Y. Yang, Y. Ye, S. Ma, and T. Hu, ‘‘An online visual measurement method for workpiece dimension based on deep learning,’’ _Measurement_, vol. 185, Nov. 2021, Art. no. 110032. [19] J. Huang, H. Yi, A. Shu, L. Tang, and K. Song, ‘‘Visual measurement of grinding surface roughness based on feature fusion,’’ _Meas. Sci. Technol._, vol. 34, no. 10, Oct. 2023, Art. no. 105019. [20] A. W. Hashmi, H. S. Mali, A. Meena, M. F. Hashmi, and N. D. Bokde, ‘‘Surface characteristics measurement using computer vision: A review,’’ _Comput. Model. Eng. Sci._, vol. 135, no. 2, pp. 917–1005, 2023. [21] P. Zheng, J. Lou, X. Wan, Q. Luo, Y. Li, L. Xie, and Z. Zhu, ‘‘LED chip defect detection method based on a hybrid algorithm,’’ _Int. J. Intell. Syst._, vol. 2023, pp. 1–13, Feb. 2023. [22] A. Kozak, M. Wieteska, M. Ninghetto, K. Szulborski, T. Galecki, J. Szaflik, and K. Burnat, ‘‘Motion-based acuity task: Full visual field measurement of shape and motion perception,’’ _Transl. Vis. Sci. Technol._, vol. 10, no. 1, pp. 1–10, Jan. 2021. [23] Y. Tang, Z. Huang, Z. Chen, M. Chen, H. Zhou, H. Zhang, and J. Sun, ‘‘Novel visual crack width measurement based on backbone doublescale features for improved detection automation,’’ _Eng. Struct._, vol. 274, Jan. 2023, Art. no. 115158. [24] G. Dimas and D. K. Iakovidis, ‘‘Virtual grid mapping for visual size measurements,’’ _IEEE Trans. Instrum. Meas._, vol. 72, pp. 1–12, 2023. [25] K. Zhao, Q. Han, C.-B. Zhang, J. Xu, and M.-M. Cheng, ‘‘Deep Hough transform for semantic line detection,’’ _IEEE Trans. Pattern Anal. Mach._ _Intell._, vol. 44, no. 9, pp. 4793–4806, Sep. 2022. JUNKAI YANG received the B.S. degree in mechanical engineering from Zhejiang A&F University, Hangzhou, China, in 2007, and the M.S. degree in mechanical engineering from Hangzhou Dianzi University, Hangzhou, in 2014. He is currently a Researcher with the School of Engineering, Huzhou University. His research interests include computer graphic, computer aided design, geometric design, computational geometry, mechanical design, and optimization design.

섹션 본문 62문단 · 41,603자

(제목 없음)

1Aiming at the problems of inconsistent standards and low efficiency of manual measurement of oversized parts, a machine vision-based measurement method for battery box parts is proposed for the measurement scenario of battery box parts in new energy vehicles.The method utilizes the edge detection pixel point data of the part image for searching and region localization of line and circle features in the image with a modified Hough transform; A geometric calculation is used to compute the coordinates of the point cloud within the feature area; Drawing on the idea of graph neural network, the priori knowledge of machining is utilized to establish the correlation of related dimensional features in the part drawing, and this is used to propose a model of dimensional validation and correction by the combination of different features.On this basis, an automatic acquisition platform of battery box part images is built, part image samples are collected, and test experiments and algorithm comparisons are conducted in this way.The experimental results show that the machine vision-based battery box part dimensions measurement method proposed in this paper improves the current measurement efficiency by more than 50 times, the measurement error meets the engineering requirements, and the measurement accuracy is also significantly improved compared with other methods, and has good robustness.INDEX TERMS Machine vision, new energy vehicle, battery box, dimensional measurement, geometric calculation, deformation and correction.Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

I. INTRODUCTION

2China is currently the world's largest producer and consumer of new energy vehicles, the battery is the ''heart'' of new energy vehicles, and the battery box is an important carrier to ensure the safety performance of the battery, and its manufacturing accuracy has an important impact on its compressive, explosion-proof and sealing.However, under the mass manufacturing process, the battery box related parts will inevitably produce defects such as leakage and dimensional errors, so it is extremely important to detect the key dimensions of the battery box parts.Battery box parts testing mainly includes geometric accuracy, surface quality, mechanical properties and hidden defects and other aspects, of which, the parts geometric accuracy testing including size and shape position accuracy testing.As the basic geometric shape of the battery box parts are the circle, line, rectangle and ellipse and other

3The associate editor coordinating the review of this manuscript and approving it for publication was Tariq Umer .basic forms, so the detection indicators include roundness, cylindricity, coaxiality, straightness, flatness, parallelism and perpendicularity.The traditional measurement method uses micrometers, vernier calipers or percentage tables and other precision gauges to do the test, along with coordinate measuring machines and special inspection gages through manual sampling.However, due to the large number of parts, it is difficult to use the traditional measurement method to carry out all the tests, and in practice, this way is susceptible to the quality inspection personnel's proficiency and individual differences and other factors, there are inconsistent detection standards, detection accuracy is not high, low efficiency and error and other drawbacks.

4With the development of image processing and machine vision technology, machine vision measurement has become one of the hotspots for research in the field of inspection.In recent years, scholars all over the world have carried out extensive research on vision inspection related technologies.Yu et al. [1] proposed an improved method for accurate positioning of concentric circles projection center, which did not need to know the radius of the concentric circle in advance.Zhu et al. [2] designed a Multi-Scale Structural Body Image Deblurring Network (MSDNet) based on the Encoder-Decoder architecture to enhance the target feature details in the structural body image, and constructed a visual measurement method for structural body vibration displacement.Zhang et al. [3] used image sensor to capture the images of a spot rotating synchronously with the measured shaft, and proposed an angle measurement method based on the rotating spot images and machine vision technology.Zhou et al. [4] proposed a multi-camera cooperative measurement method without mechanical motion for the dimension measurement of thin slice workpiece.Gao et al. [5] established a measurement transformation chain used the object-image and object-object transformations to realize the rapid axial dimensional measurements.Cai et al. [6] presented an image filtering using the truncated statistics and edge preserving.Leyffer and Vanaret [7] introduced a filter mechanism to enforce convergence for augmented Lagrangian methods for nonlinear programming, their approach does not require the use of forcing sequences that drive the first-order error to zero.Skrickij et al. [8] developed a visual measurement system for track gauge evaluation, it involved the detection of measurement points and the visual measurement of the distance between them.Li et al. [9] proposed a visual measurement method for aperture and hole center distance by a local coordinate system, cone and cutting plane.Wang et al. [10] presented a novel quantum image edge detection algorithm that involved transforming the image into the wavelet domain through wavelet transform, performing edge detection, and obtaining the edge image via inverse wavelet transform.Jang et al. [11] proposed a hardware method for image edge detection by using stochastic behavior of magnetic tunnel junction.Ahmed et al. [12] proposed an approach for modeling a prediction task using irregularly sampled spatiotemporal sensor data via Graph Neural Networks.Xiong et al. [13] proposed a novel remote photoplethysmography framework that utilizes graph neural network to extract physiological signal, named GraphPhys.Li et al. [14] proposed a novel solution with a specific measurement system by a subpixel location based on the rotating area effect.Zhang et al. [15] proposed a camera calibration approach using polarized light based on high-frequency component variance weighted entropy (HVE).Cai et al. [16] assessed the reliability of the new inspection platform of visual function (IPVF) in comparison with the conventional equipment phoropter (TOPCONVT-10) in visual function assessment.Shi et al. [17] proposed a visual method for 3D attitude measurement of air float turntable based on space vector, and constructed a global calibration of the world coordinates for the measurement model.Meanwhile, some scholars have conducted measurement studies on the surface texture of parts and other features using vision technology.Li et al. [18] proposed a method based on Holistically-nested Edge Detection (HED) model for rough edge detection of workpiece images to avoid the influence of workpiece surface texture after rough machining.Huang et al. [19] proposed a feature fusion-based method for measuring grinding surface roughness.Hashmi et al. [20] discussed the characterization of the surface texture of surfaces of traditional or non-traditional manufactured parts through a computer/machine vision approach and assessment of the surface characteristics, i.e., surface roughness, waviness, flatness, surface texture, etc., machine vision parameters.In addition, some scholars have applied vision technology to measurement problems in agriculture, construction and transportation, medicine, and other fields.Zheng et al. [21] proposed a hybrid method based on geometric computation and a convolutional neural network for LED chip defect detection.Kozak et al. [22] proposed an acuity testing not only allowed for the full assessment of vision but also advanced the capability of standard testing with the potential to detect spare visual functions.Tang et al. [23] proposed a new crack backbone refinement algorithm and width-measurement scheme, and simplified the redundant data in the crack image and improved the efficiency of crackshape estimation.Dimas et al. [24] proposed a novel and more robust method for single-image visual size measurements, they used a grid of virtual 3D points projected to the 2D image plane, along with the fusion of probable depth values.However, there are fewer studies on the visual measurement of large-size parts, especially for battery box related parts.Therefore, this paper addresses the measurement problem of battery box related parts for new energy vehicles, utilizes visual inspection technology, builds an image acquisition and testing platform, and combines Hough transform and geometric computation to propose a machine vision-based measurement method for key dimensions of battery box parts for new energy vehicles.

5The remainder of this study is organized as follows: Section I is the introduction; Section II constructs an image acquisition platform consisting of an LED light source and a color CCD, which includes a conveyor mechanism, a sampling light source, an industrial camera and lens assembly, and a motion control unit, etc.; In Section III, we discuss the algorithmic architecture of the present method, and comprehensively describe the measurement algorithms proposed in this paper, from image preprocessing and edge detection, to feature searching and localization, and geometric feature measurement and analysis; Section IV describes the related measurement experiments, and analyzes the validity of the present method and its measurement accuracy by the test data; and Section V is the conclusion of the studies.

II. DESIGN AND CONSTRUCTION OF THE VISUAL MEASUREMENT SYSTEM A. TEST PLATFORM

6As shown in Figure 1, this study takes a certain side beam part of the battery box of a new energy vehicle as an example, 177622 VOLUME 12, 2024 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.and builds a image acquisition device using LED light source and industrial color CCD camera to capture images of parts, as shown in Figure 2. The device is mainly composed of the following four parts:

71.The conveyor belt, which serves to transport the part to be inspected under the acquisition lens at a constant speed and stops briefly, while the background of the conveyor belt and the target part have a gray scale difference in the acquired image.

82. Light source, in order to avoid the reflective effect of the aluminum alloy material, to compensate for the angular changes in the surface of the parts, this paper adopts the diffuse reflection shadowless LED light source, the use of multi-light source large angle oblique radiation in order to reduce the chromatic aberration of the parts of the target area, thereby enhancing the image background and the gray scale difference between the parts.As the tested parts are placed on the green conveyor belt in the production condition, in order to get better shooting effect, after many tests, white light is selected from white light and monochromatic light (red, green and blue) for illumination.For the light conditions of different production environments, the best light source configuration can be selected by testing a variety of light sources according to the actual situation, and its comparative analysis, which is also the content of the subsequent research work.

9Translated with DeepL.com(free version) 3. Industrial camera and lens assembly, use a highperformance CCD camera with a resolution of 2592 × 1944, 5 million pixels, and a frame rate of 23.3 f/s, connect it to a computer via a POE cable, thus realize the shooting and storing of images of parts.

104. Motion control platform, the camera and lens are mounted on the platform, moving through the control axis, obtaining the image edge information and feature extraction of its edge are the key to the whole detection process.As the online inspection equipment of the production line, it is planned to test the application on the conveyor line with a speed of 0.5 m/s.The speed of the conveyor platform is adjustable, with an adjustable range of 0-1 m/s, and the device should be matched with the speed control.However, due to the battery box parts online inspection process, the environment is complex, the quality of the collected image is susceptible to a variety of environmental factors, how to quickly extract the target features in the image is the main content of this paper, the subsequent content will be described in detail.

B. CAMERA CALIBRATION

11Camera calibration is a process of estimating the parameters of a camera model, which must be accurately calibrated before acquiring the part images.Four coordinate systems are commonly used in the camera calibration process: the pixel coordinate system (u, v), the imaging plane coordinate system (x, y), the camera coordinate system (x c , y c , z c ), and the world coordinate system (x w , y w , z w ).As shown in Figure 3, the transformation relationship between the camera coordinate system and the imaging plane coordinate system can be expressed by Equation 1.

12Since the object of study in this paper is a fixed part with a consistent image acquisition background, in order to improve the accuracy of the camera calibration, we use the Tsai calibration method, in which some fixed points located on the transfer mechanism are used as the basis for calibration.The internal and external parameters of the camera model are obtained by establishing the correspondence between points with known coordinates on the calibration object and its image points.

C. DETECTION PROCESS

13In order to improve the adaptability and real-time performance of on-line inspection of parts, the images collected by CCD are firstly grayed out and histogram equalized to achieve image enhancement, and then the improved Canny operator is used to suppress the image noise and detect the edge information of the workpiece.Improved Hough transform is used to complete the search and localization of the line features at the edge of the part, while graphical refinement is used to extract the contour skeleton, fill the image of the interference line, and determine the coordinates of the edge pixel feature points.The least squares method is used to fit the coordinates of the feature points, and the distance between two lines is calculated to realize the distance detection of the length of the part.Finally, the geometric calculation is utilized to detect and calculate the length, center of circle, angle and other dimensions, and the specific process is shown in Figure 4.

III. ALGORITHM ARCHITECTURE A. IMAGE PREPROCESSING

14Adaptive median filtering is added before Gaussian filtering to handle impulse noise with high probability.Median filtering is a nonlinear smoothing technique based on statistical ordering theory, which is based on the principle of removing isolated noise points by setting the gray value of each pixel point to the median of the gray values of all pixel points within a certain neighborhood window of the point.The use of adaptive spatial median filtering removes the smoothing nonimpulsive noise while preserving the details and reducing the boundary distortion problem.Assume that s max is the maximum size allowed in the rectangular window s zy ; z xy is the gray value at point (x, y); z min , z med and z max are the minimum, median, and maximum values of grayscale, respectively.The basic steps are as follows:

15Step1: Iterate through the gray values of the pixels in s zy and sort them from smallest to largest.If z min < z med < z max is satisfied and z med is not a pulse, then skip to the step 2, and if the window size ≤ s max , then repeat the step 1, otherwise output z med ;

16Step2: If z min < z med < z max , then z xy is nonimpulsive and z xy is output, otherwise output z med .

17As the output value changes, the rectangular window s zy is moved to the next position in the image, and the algorithm reinitializes and continues.The median value of the iteration is updated using new pixels, thus reducing the amount of computation.In the actual detection process of parts, the original image generally contains more noise, which is easy to be misjudged as feature points in image processing, so it is necessary to preprocess the shadows and noise points appearing in the process of image acquisition, to strengthen the edge information, and to extract the pixel points in the required area, and perform grayscaling and histogram equalization on them, so as to reduce the amount of the subsequent calculations and recognition of miscalculations.Grayscale image relative to the color image, due to its R, G, B three components are the same, and a single pixel point changes from more than 16 million kinds to 255 kinds, can greatly reduce the amount of color calculations, improve the speed of image processing.The commonly used grayscaling processing methods are: (1) maximum value method; (2) component method; (3) average value method; (4) weighted average method.In this work, the weighted average method is used after comparing the processing effect of the above methods.Since after grayscaling an image, it tends to result in unknown detail information in the image, it is necessary to change its grayscale distribution by grayscale histogram equalization.Histogram equalization stretches the distribution of each pixel based on the cumulative function transformation, which transforms the histogram to a specific mapping, defined as follows:

18Set the gray value of the image to be processed be x, the value interval of x is [0, L-1], x = 0 means black, x = L − 1 means white, and the mapping function y = f (x) of equalization needs to be satisfied:

19(1) f (x) is monotonically increasing on the interval x ∈ [0, L − 1] such that the output gray value is not less than the corresponding input value;

20(2) For 0 ≤ x ≤ L − 1, there is 0 ≤ f (x) ≤ L − 1 to ensure the consistency of the grayscale output input range.The mapping function for grayscale equalization is Equation 2.

21where, n i is the number of pixels with a gray scale of x i , MN is the total pixel value of the image.

22According to the analysis of the above image preprocessing methods, the battery box parts image is filtered and denoised and grayscaled.From the image preprocessing results can be seen that the preprocessing can be better to remove the image acquisition process of the noise, complete retention of the part feature information, and did not cause significant distortion of the image, as shown in Figure 5.

B. CANNY EDGE DETECTION

23For battery box parts, lines and circles are important components of their image edges.Therefore, it seems critical to extract edge features quickly and accurately from images containing more noise.The edge detection operator utilizes the mutation nature of the image edges, and when filtering the image edges, a part of the kernel will be located at the edge of the image, so as to extract the image edge features.The commonly used edge detection operators are Roberts, Prewitt, Sobel and Canny.The traditional Canny operator, which needs to set the high and low thresholds artificially, has poor adaptive ability.In this paper, an improved Canny algorithm is proposed to overcome the deficiency of its poor adaptive ability.In adaptive thresholding computation: the input image is first smoothed by the filter, the non-extreme values are suppressed by calculating the image gradient, and the image after refinement of the edges is subjected to adaptive thresholding, so as to obtain the edge information of the input image, and improve the adaptive ability of the Canny operator.

24We define the initial high threshold of the image as T 1 and use it to divide the image into a background region and a target region, G 1 is the set of all pixel points in the background region and G 2 is the set of all pixel points in the target region.It can be seen that G 1 consists of pixel points with gray value greater than T 1 and G 2 consists of the rest of the pixel points.Calculate the average gray values µ 1 and µ 2 of the pixels in G 1 and G 2 , respectively, and calculate the new threshold T 2 .Iteratively calculate the new threshold T 2 until the highest threshold T h satisfies Equation (5).If the difference between T 1 and T 2 is less than the predefined parameter T , set T 2 be the highest threshold value sought, otherwise set T 1 = T 2 , and the related calculation formula is as follows:

25where, G max is the pixel maximum gradient;σ max is the pixel maximum gradient variance.

26where, µ 1 is the average gray value of pixels in G 1 ;µ 2 is the average gray value of pixels in G 2 .

27where, T h is the highest threshold and k is the adaptive coefficient, the value of k in this paper is determined to be 0.

C. FEATURE SEARCH AND LOCALIZATION BASED ON IMPROVED HOUGH TRANSFORM

28Image feature search generally uses the gray scale or gradient values of pixels in the image space to extract straight lines directly or by using the information mapped to the parameter domain space.The Hough transform is a popular feature extraction technique that converts an image from Cartesian to polar coordinates.Any point within the image space is represented by a sinusoidal curve in the Hough space.In addition, two points in a line segment generate two curves, which are overlaid at a location that corresponds with a line through the image space.The Hough transform is a feature extraction technique used in image analysis, computer vision, pattern recognition, and digital image processing [25].However, in the case of a large part image size, the use of the traditional Hough transform for feature search is prone to large memory consumption and reduce the computational efficiency of the algorithm.Therefore, we adopt a feature search and localization strategy based on improved Hough transform, and use clustering storage algorithm to detect the domain of a pixel point when detecting a straight line, classify the clusters according to the proximity relationship and exist them in an array in order, and map all pixels of each class into the parameter space for detection and identification.When detecting the circle, a priori knowledge of the circle center and radius range prediction is utilized to avoid the invalid computation region and reduce the overall computation amount.By setting the range of circle radius (r min , r max ), determining the four vertices coordinates of the edge pixels of the circle's tangent rectangle, and then calculating the number of rows and columns in the reference region, thus determining the range of the region containing the edge pixels, and then assigning the region of interest to a new image matrix and then processing the region, such an improvement will greatly save searching time compared to circle detection with unknown radius.

29As shown in Figure 7, the feature search for line and circle can be completed quickly by using the improved Hough transform.It is not difficult to find that, although this method can search the line or circle features in the image, its recognition rate of line and circle features differs greatly, the recognition effect of line features is better and the accuracy is high, but the recognition rate of circle features is not satisfactory.However, in the face of the engineering accuracy requirements of 0.01-0.10mmfor the key dimensions in this case, if the improved Hough transform method is directly used to identify and calculate these dimensions does not better meet the engineering requirements, in order to improve the overall accuracy of the measurement, we only use the improved Hough transform method for searching and locating the key features in the parts.For the battery box parts involved in a large number of circular holes, straight line features, to carry out a certain amount of feature search and positioning experiments, experimental data show that: circular holes, straight line feature search results are stable and reliable, circular positioning error of ± 0.15mm, so in this paper will only be used for the calculation of the coarse positioning of the circular holes, and the subsequent measurement of the size of the use of a more accurate geometric calculation method.

D. MEASUREMENT OF EDGE AND HOLE DIMENSIONS BASED ON GEOMETRIC CALCULATIONS

30In order to improve the measurement accuracy, the dimensional measurement of the part image is performed in the form of pixel-point geometric computation based on the pixel-point information extracted by edge detection.According to the improved Hough transform method proposed in the previous section, the searched linear features are deformed into a bounding box structure, as shown in Figure 8. Taking the upper boundary line of the inner frame of the part as an example, the line searched by the Hough transform is properly extended along the x and y directions to form a rectangular box, which contains the original data of all the pixel points reflecting the upper boundary lines of the part, so these original pixel points are used as the basic data for calculating the length and size of the boundary lines, which are the most accurate.Based on this idea, we propose a geometric computation-based measurement method for edge and round hole dimensions by using the improved Hough transform method to locate the target feature area of the part image, together with the edge detection data.

31Generally, it is difficult to accurately place the part in a ''horizontal and vertical'' standard attitude during the image acquisition process, such as Figure 7, the upper boundary line of the part is not a horizontal line, so in order to consider the impact of the measurements brought about by this reality, a straightness concept is introduced.Straightness is an index that limits the amount of variation between lines and theoretical lines in a sampled image, and is a requirement for the inaccuracy of image sampling gestures.Assuming that((x i , y i ), (i = 1, 2, . . ., n)) is the coordinate value of a group of pixel points and linearity is the corresponding straightness of the group of pixel points, when the straightness is 1, it means that the image characterized by the group of pixel points is a standard line, and when the straightness is 0, it means that the image characterized by the group of pixel points is a standard circle.And in practical application, the straightness takes the value between 0-1, when its value is close to 1 it is a line, and when its value is close to 0 it is a circle, and its calculation formula is as follows:

32where,

33As the battery box parts are long, their maximum length dimension is more than 500mm, which belongs to the category of oversize measurement for visual inspection.Therefore, the use of monocular lens sampling is highly susceptible to image distortion, resulting in the deformation of some image features, such as round holes.As shown in Figure .9, the deformation of the left and right electrode holes is caused by the image acquisition of the part, which affects the edge detection results.As can be seen in the Figure .9, the deformation of the image acquisition is prone to lead to inconsistency in the edge detection results, the edge detection results of the left electrode hole in Figure 9. consists of a deformed circle formed by the left semicircular lower surface contour line of the hole and the right semicircular upper surface contour line, whereas the edge detection results of the right electrode hole consists of a deformed circle formed by the left semicircular upper surface contour line of the hole and the right semicircular upper surface contour line, so that the difference in the angle of the acquisition will lead to the uncertainty of the edge detection results, and all the pixel points obtained from edge detection cannot be used as the basis of measurement.The battery box parts involved in this paper are mainly processed in the way of equal-diameter through holes and equal-size removal of material, so only the upper surface edge features of the parts need to be collected for size calculation, such as the left electrode holes in Figure 9. should be characterized by the contour of the upper surface of the right semicircle, and the right electrode holes should be characterized by the contour of the upper surface of the left semicircle as the basis for size measurement.

34In order to selectively extract the pixel point information after edge detection and eliminate the deformed feature points mentioned in the above analysis, drawing on the idea of graph neural network, other independent features in the image are mined for inter-sample attribute relationships, and the parent-child relationship or cluster relationship between the image features is established using the priori knowledge, so as to make up for the lack of information caused by the elimination of deformed points.Take the edge detection data of the left electrode hole in Figure 9. as an example, as shown in Figure 10, the Hough transform localizes the electrode hole feature within a rectangular box (pink) containing some columns of pixel points p i , p j .By comparing the y-direction coordinates of all pixel points, the y-direction maximum value point p yt and minimum value point p yb can be obtained, according to which the pixel points can be divided into two regions: A and B.

35where

36Similarly, the x-direction coordinates of these pixel points are calculated, and when the x-direction minimum value point among the pixel points in area A satisfies: p j(x) min − p yt(x) < (p yt(y) − p yb(y) ) 2 , area A is determined as an image acquisition distortion area, and the data in area B is also used as the basis for subsequent calculations; conversely, area B is determined as an image acquisition distortion area, and the data in area A is used as the basis for subsequent calculations.Obviously, in Figure .10(a), area A is the deformation area and area B is the calculation basis area, and the center point of the circle obtained from the calculation of some pixel points is recorded as p c−t , and its coordinates is calculated by the formula (7).

37However, the point p c−t is approximated by incomplete edge features, and its accuracy is difficult to guarantee.Therefore, the idea of graph neural network can be borrowed to fully explore the positional relationship of other graphical features to this hole and establish the correlation.

38According to the priori knowledge, the threaded holes C, D, E, F as Figure 10(a) in the processing of the center hole (electrode hole) as its positioning reference, so we can use reverse thinking, the benchmark hole around the small threaded hole characteristics as the measurement of the center hole of the auxiliary information.In addition, in the part design, such as C, D, E, F and other threaded holes are often small equal diameter through-hole structure, so this small diameter through-hole in the image acquisition process produces a small deformation, and will not appear similar to Figure.9 in the left and right semicircle overlap of the upper and lower surface boundaries of the phenomenon, which also ensures the consistency of the edge detection output.If the pixel point of the edge of the small threaded hole is p k , the centroid of the hole (electrode hole) obtained by its calculation is marked as p c−e , and its coordinate is calculated by the formula (8).

39In general, the centroid point p c−t calculated by the edge features of the hole and the centroid point p c−e calculated using the edge features of the surrounding threaded holes do not overlap, and there is bound to be a deviation between the two, as shown in Figure .10(a).For this reason, a numerical iterative correction method is used to optimize the location of the centroid of the circle, and the final ideal point of the circle is denoted as p c−i , which is calculated by the formula (9).Among them, the adjustment coefficients ξ and γ are determined by the checking formula (10) for p c−i .When the error value σ reaches the minimum value, the corresponding p c−i is used as the final centroid of the circle, and it is used as the basis for the measurement of the positioning dimensions of the hole (electrode holes), and the result of the measurement is shown in Figure .10(b).

IV. EXPERIMENT AND ANALYSIS A. EXPERIMENTAL ENVIRRONMENT AND TEST OBJECTS

40In order to verify the validity of this method, the proposed machine vision-based measurement method of new energy vehicle battery box part dimensions is applied to production inspection.A high-performance CCD camera with LED light source is utilized to build the test platform, and the experimental environment is Windows 11 operating system, Python version 3.8, 16.00 GB of RAM, processor Intel Core i7-10700, 8 cores and 16 threads, main frequency 2.90 GHz, and graphics card NVIDIA GeForce GTX 1650, as shown in Figure 11.

41The test samples in this paper are acquired using a self-built image acquisition platform, with the battery box edge beam and front panel parts as the test objects, and 200 edge beam parts and 200 front panel parts are randomly selected from a certain batch of parts for centralized sampling.Take the front panel parts as an example, a set of images of each part is grouped by three photos of panorama, electrode hole 1 and electrode hole 2, and a total of 600 images are acquired, as shown in Figure 12.

B. EXPERIMENTAL DATA ANALYSIS

42In order to verify the effectiveness of this method for the measurement of the battery box part of the new energy vehicle, and to evaluate the detection accuracy and efficiency of this method more comprehensively, we compare and analyze it with the Hough transform measurement method, the CCD-based measurement method, the vision measurement method based on deep learning, and the current coordinate measurement method in experiments.As shown in Figure .13, the above methods are tested separately with eight key dimensions of the part as the measurement indexes, and their respective performances are shown in Table 1.

43The above comparison experiments show that: the machine vision-based battery box part size measurement method proposed in this paper is better than other vision measurement methods in terms of measurement accuracy, the method is better adapted to the characteristics of the oversized battery box parts, there is a better correction for the image distortion generated in the process of image acquisition, and the measurement error of the size meets the requirements of the engineering applications and the overall error rate is lower than that of the deep learning methods.The method proposed in this paper has the advantage of low cost and good accuracy compared to existing large size visual measurement methods.Since this method adopts the single camera shooting method, it has the effect of reducing the cost compared with the dual camera shooting method commonly used in other large-size measurements.Meanwhile, the dual-camera sampling method has problems such as later image splicing recognition, which is prone to produce sampling secondary error and reduce the accuracy.This method adopts geometric calculation to correct the sampling distortion parts, which can repair the image distortion and ensure the measurement accuracy to a certain extent.

44Additionally, at present, the part manufacturer uses CMM to check product quality by manual sampling, its efficiency is 5min/piece, the visual measurement method proposed in this paper in the efficiency of more than 50 times, and circumvents the randomness and accuracy volatility problems brought about by manually operated CMM, the overall error rate of eight dimensions is close to that of the manual measurement method.It has a positive effect on standardized product quality inspection, can reduce labor costs to a greater extent, and ensure the consistency of the measurement standard, in line with the needs of large-scale online inspection applications.

45However, although this method has some obvious advantages in measuring large sizes, it also has some limitations as well.For example, after large number of measurement experiments on parts of different sizes, it was found that when the part size lies within the area of 650 × 650 mm, the measurement error is small.When the horizontal/vertical dimensions exceed 650mm, the measurement error will increase significantly.When the measured size is larger than 700mm, the sampled image shows large distortion.In addition, the measurement accuracy has a great relationship with the quality of

V. CONCLUSION

46On the basis of analyzing and summarizing the characteristics of the existing vision measurement methods and their adaptability, combined with the advantages of geometric calculation methods, and oriented to the measurement of the dimensions of the battery box parts of new energy vehicles, a machine vision-based measurement method of the key dimensions of the battery box parts of new energy vehicles is proposed.Aiming at the long strip characteristics of the battery box parts, a set of visual acquisition platform applicable to automotive battery box related parts (such as the front panel, left and right beams, etc.) is designed and built.The acquired part images are filtered and denoised and grayscaled to reduce the interference information brought in the image acquisition process.Equally, the edge detection Canny algorithm is improved to extract the edge features of the parts, and the improved Hough transform is applied to the search and localization of the key features, and the encircling box is used to sort the line and circle features in the parts into regions, so as to prepare data for the subsequent geometric calculation.Drawing on graph neural network ideas and prior knowledge of part processing, edge detection pixel points are selectively extracted in a geometrically computed manner, overcoming the effects of image distortion produced by monocular cameras sampling oversized parts.The correlation of various graphical features in the part is used to establish a model for the secondary checking and iterative correction of key dimensions to further improve the measurement accuracy of dimensions.Consequently, taking the front end plate parts as an example, a certain number of part images are collected as test samples, and test comparison experiments are carried out with other vision measurement methods and manual coordinate measurement method.The test analysis concludes that: the key dimension measurement method of battery box based on machine vision proposed in this paper is effective, the measurement accuracy is significantly improved compared with other methods, and the measurement efficiency is more than 50 times compared with the manual coordinate measurement method, which has good robustness and is suitable for large-scale dimensional measurement scenarios of battery box parts.

47Nevertheless, although this method meets the engineering needs in terms of measurement accuracy, it still causes large deformation in the problem of measuring parts oriented to larger sizes, which leads to a decrease in measurement accuracy.Accordingly, future research work will be carried out in the following: upgrade the existing image sampling platform for long parts, increase the number of cameras and color channels, and design a movable camera head to adapt to the measurement needs of parts of larger sizes; Study the dimensional measurement of complex features such as non-equal through holes, introduce graph neural networks and machine learning principles, apply the powerful learning and training functions of neural networks to non-unitary measurement problems, give full play to the efficiency of machine learning, and explore a generalized visual measurement method adapted to multiple products; In-depth analysis of geometric computation methods, optimize of the reduced-dimensional iterative computation model, the organic fusion of geometric computation and neural network, make full use of the advantages of high precision of geometric computation and adaptability of neural network, foster strengths and circumvent weaknesses, apply vision inspection technology to more engineering fields.

FIGURE 1 .

48FIGURE 1. Drawing for machining of battery box front panel parts.

FIGURE 2 .

49FIGURE 2. Machine vision image acquisition device.

FIGURE 3 .

50FIGURE 3. Camera calibration coordinate system.

FIGURE 4 .

51FIGURE 4. The flowchart of dimensional detection.

FIGURE 5 .

52FIGURE 5. Filtering and graying of the image of the part.(a) is the source image of the part, (b) is the image filtered effect.(c) is the graying of the image.

533 after repeated testing.As shown in Figure.6, where (a) is the structure of the electrode hole in the battery box part, the feature has a high positioning accuracy requirement in the machining process because the structure is an important indicator of the yield of the battery box part.As can be seen from Figure.6(b), the improved Canny detection algorithm well extracts the large and small round hole features in the electrode holes, and better preserves the roundness of the round hole features with clear boundary features.

FIGURE 6 .

54FIGURE 6. Edge detection of part image features.(a) is the source image of the circular hole feature of the part, (b) is the edge detection result of the features.

FIGURE 7 .

55FIGURE 7. Feature localization based on improved Hough transform.

FIGURE 8 .

56FIGURE 8. Geometric calculation of line features.

FIGURE 9 .

57FIGURE 9. Image acquisition and edge detection deformation.

FIGURE 10 .

58FIGURE 10.Geometric calculation model of circular hole features.(a) is the deformation analysis for edge detection of holes, (b) is the correction calculation of circular hole dimensions.

FIGURE 11 .

59FIGURE 11.Experimental environment and testbed.

FIGURE 12 .

60FIGURE 12.A set of images of the front panel part.(a) is the panoramic image of part, (b) is the layout image of electrode hole 1, (c) is the layout image of electrode hole 2.

FIGURE 13 .

61FIGURE 13.Measurement of critical dimensions of front panel part.

TABLE 1 .

62Comparison of five methods in dimensional measurement experiments.

참고문헌 25건

  1. Image filtering method using trimmed statistics and edge preserving IET Image Processing · Institution of Engineering and Technology · 2018 10.1049/iet-ipr.2017.0470
  2. Deep Hough Transform for Semantic Line Detection IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2021 10.1109/tpami.2021.3077129
  3. An augmented Lagrangian filter method Mathematical Methods of Operations Research · Springer Science+Business Media · 2020 10.1007/s00186-020-00713-x
  4. Visual measurement system for three dimensional rotation attitudes of the air float turntable Optik · Elsevier BV · 2020 10.1016/j.ijleo.2020.165229
  5. Motion-Based Acuity Task: Full Visual Field Measurement of Shape and Motion Perception Translational Vision Science & Technology · Association for Research in Vision and Ophthalmology · 2021 10.1167/tvst.10.1.9
  6. Visual Measurement System for Wheel–Rail Lateral Position Evaluation Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21041297
  7. Rapid non-contact visual measurement method for key dimensions of revolving workpieces International Journal of Metrology and Quality Engineering · EDP Sciences · 2021 10.1051/ijmqe/2021008
  8. A Visual-Based Angle Measurement Method Using the Rotating Spot Images: Mathematic Modeling and Experiment Validation IEEE Sensors Journal · IEEE Sensors Council · 2021 10.1109/jsen.2021.3077262
  9. An online visual measurement method for workpiece dimension based on deep learning Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110032
  10. High Precision Visual Dimension Measurement Method with Large Range Based on Multi-Prism and M-Array Coding Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22062081
  11. Visual measurement of valve opening area with improved subpixel edge location Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111410
  12. Surface Characteristics Measurement Using Computer Vision: A Review Computer Modeling in Engineering & Sciences · Tech Science Press · 2022 10.32604/cmes.2023.021223
  13. Novel visual crack width measurement based on backbone double-scale features for improved detection automation Engineering Structures · Elsevier BV · 2022 10.1016/j.engstruct.2022.115158
  14. A visual measurement method of structural body vibration displacement combined with image deblurring Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.112598
  15. LED Chip Defect Detection Method Based on a Hybrid Algorithm International Journal of Intelligent Systems · Wiley · 2023 10.1155/2023/4096164
  16. Virtual Grid Mapping for Visual Size Measurements IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3269109
  17. Reliability and Agreement of an Integrated Platform for Intelligent Visual Function Measurement Ophthalmology and Therapy · Adis, Springer Healthcare · 2023 10.1007/s40123-023-00718-9
  18. An improved method of concentric circle positioning in visual measurement Optics Communications · Elsevier BV · 2023 10.1016/j.optcom.2023.129620
  19. Research on Visual Measurement of Aperture and Hole Group Center Distance Based on Geometric Constraint Symmetry · Multidisciplinary Digital Publishing Institute · 2023 10.3390/sym15061255
  20. Visual measurement of grinding surface roughness based on feature fusion Measurement Science and Technology · IOP Publishing · 2023 10.1088/1361-6501/ace543
  21. Camera calibration approach using polarized light based on high-frequency component variance weighted entropy for pose measurement Measurement Science and Technology · IOP Publishing · 2023 10.1088/1361-6501/aceb7f
  22. Graph Neural Network-Based Measurement Inference on Irregular Sensor Geometries 2023 10.1109/indin51400.2023.10218172
  23. GraphPhys: Facial video-based physiological measurement with graph neural network Computers & Electrical Engineering · Elsevier BV · 2023 10.1016/j.compeleceng.2023.109022
  24. Quantum image edge detection based on Haar wavelet transform Quantum Information Processing · Springer Science+Business Media · 2024 10.1007/s11128-024-04513-8
  25. Stochastic method of image edge detection using magnetic tunnel junction Journal of Magnetism and Magnetic Materials · Elsevier BV · 2024 10.1016/j.jmmm.2024.172503