A method and device for detecting a scribe groove
By using two-time image division and fitting positioning methods in lithium battery manufacturing, a single camera is used to realize high-precision detection of the scribing groove of the electrode layer of the lithium battery, the problems of low detection accuracy and high cost in the prior art are solved, and the The inspection process and reduces production costs.
Patent Information
- Application Number
- CN202411259868.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-10
AI Technical Summary
In the process of manufacturing lithium battery, it is impossible to efficiently detect the width and depth of the scribe groove on the surface of the electrode layer, resulting in low calculation accuracy and high cost, and the existing devices require multiple cameras and large space.
Using two-time image division and fitting positioning methods, the electrode layer surface image is taken by the camera, converted into a grayscale map, slice processing, noise filtering, morphological processing and reference line fitting, and calculate the width and depth of the scribe groove. , using a single camera to achieve high-precision detection of low computing volume.
High-precision detection of the scribing groove of the electrode layer of the lithium battery is realized, reducing production costs, reducing the space occupation of the device, and simplifying the detection process.
Smart Images

Figure CN118781111B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of battery process detection, and in particular to a scribing groove detection method. Background Art
[0002] With the development of electronic devices, the requirements for batteries in mobile electronic devices and independent electronic devices are constantly increasing. Lithium batteries are the most widely used type, so the battery performance of lithium batteries is particularly important. Figure 1 A lithium battery generally includes an internal chemical layer 1, a positive electrode layer 2 wrapped around the chemical layer, an insulating layer 3, a negative electrode layer 4, an electrode lead (not shown) and an external insulating layer (not shown). The chemical layer 1 is cylindrical and includes lithium and chemical substances such as electrolyte that react therewith. The positive electrode layer 2 is wrapped around the outer curved surface of the chemical layer 1, and the insulating layer 3 is wrapped around the outer surface of the positive electrode layer 2, isolating the negative electrode layer 4 wrapped around the outer side of the insulating layer 3. The positive electrode layer 2 is connected to the positive electrode inside the chemical layer 1 through the electrode lead, and the negative electrode layer 4 is connected to the negative electrode inside the chemical layer 1 through the electrode lead. The external insulating layer is wrapped around the outer side of the negative electrode layer 4, and the positive electrode layer 2, the insulating layer 3, the negative electrode layer 4 and the external insulating layer form a laminated structure.
[0003] See also Figure 2 Since the positive electrode layer 2 and the negative electrode layer 4 have the same structure, they together constitute the battery electrode of the lithium battery. Taking the positive electrode layer 2 as an example, it is a completely connected rectangular electrode after being unfolded. Under normal circumstances, its coating area is equal to the rectangular area, and the charging and discharging efficiency is not high. Therefore, in the manufacturing process of the lithium battery, a plurality of parallel and fixed-spaced scribing grooves 21 can be formed on the surface of the electrode layer through a scribing process, thereby increasing the surface area of the electrode layer, so that its coating area is also increased synchronously, and the charging and discharging efficiency is greatly improved.
[0004] See also Figure 3 The cross section of the scribing groove 21 is V-shaped and has a certain width. The width is affected by the material used for the electrode layer. When the width is too small, the electrode layer will not be divided enough, and current will still exist at the edge of the adjacent small power source. The root of the scribing groove 21 will form a short circuit to the tip, causing the scribing groove 21 to lose its practical significance. When the width is too large, the increased coating area of the scribing groove 21 is very small, and the benefits brought are less than the cost required for scribing. Therefore, it is necessary to detect the width of the scribing groove 21 in production.
[0005] Since the scribe groove 21 is too small, the staff cannot directly observe the width of the scribe groove 21 with the naked eye, so other devices are needed to detect the scribe groove 21. However, the existing method of using a camera to photograph the plane where the scribe groove 21 is located and analyzing the width of the scribe groove 21 requires calculating all spatial information on the surface of the electrode layer, which has a large amount of calculation and low calculation accuracy. Summary of the invention
[0006] Based on this, the object of the present invention is to provide a scribe groove detection method, which uses a method of dividing the image twice for fitting and positioning to reduce the amount of data calculation and improve the calculation accuracy.
[0007] A method for detecting a scribe groove comprises the following steps:
[0008] Taking pictures to obtain a two-dimensional image with spatial information of the scribe groove;
[0009] A grayscale image is obtained according to the spatial information mapping in the two-dimensional image;
[0010] The direction of the scribe groove is used as the longitudinal axis direction of the grayscale image, and the grayscale image is segmented along the horizontal axis of the grayscale image using multiple parallel segmentation lines to obtain multiple slice images;
[0011] Filter out the noise points of each slice image and calculate the average to obtain the corresponding rough positioning contour line of each segment;
[0012] Morphological processing is performed on the actual area formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical area;
[0013] A plurality of scribe groove areas are obtained according to the absolute difference between the actual area and the theoretical area;
[0014] Two dividing lines parallel to the longitudinal axis are set at a fixed distance on both sides of the midpoint of each scribe groove area on the horizontal axis, and the scribe groove area is divided by the two dividing lines corresponding to each scribe groove area to obtain the corresponding scribe groove image;
[0015] For each line groove image, filter out the noise points and average them to obtain the corresponding precise positioning contour line.
[0016] Fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line;
[0017] The positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line is obtained according to the absolute difference between the longitudinal axis of each precise positioning contour line and its corresponding scribing groove reference line;
[0018] A section of the scribing groove reference line is translated a certain distance along the longitudinal axis direction tending to the vertex of the corresponding precise positioning contour line. When the translated straight line and the corresponding precise positioning contour line have only two intersection points, and the two intersection points are located at the midpoint coordinate position of the horizontal axis where the corresponding scribing groove area is located, the corresponding distance-finding straight line is obtained;
[0019] The two intersection points of each precise positioning contour line and its corresponding distance-finding straight line with the smallest translation distance are calculated, and the width of the scribing groove is obtained according to the distance between the two intersection points in the horizontal axis direction.
[0020] Furthermore, the method further comprises the steps of: photographing and acquiring a two-dimensional image having spatial information of the scribe groove;
[0021] A grayscale image is obtained according to the spatial information mapping in the two-dimensional image;
[0022] The direction of the scribe groove is used as the longitudinal axis direction of the grayscale image, and the grayscale image is segmented along the horizontal axis of the grayscale image using multiple parallel segmentation lines to obtain multiple slice images;
[0023] Filter out the noise points of each slice image and calculate the average to obtain the corresponding rough positioning contour line of each segment;
[0024] Morphological processing is performed on the actual area formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical area;
[0025] A plurality of scribe groove areas are obtained according to the absolute difference between the actual area and the theoretical area;
[0026] Using two dividing lines parallel to the vertical axis at a fixed distance on both sides of the midpoint of each scribe groove area where the scribe groove area is located, the scribe groove area is divided to obtain the corresponding scribe groove image;
[0027] For each line groove image, filter out the noise points and average them to obtain the corresponding precise positioning contour line.
[0028] Fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line;
[0029] The positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line is obtained according to the absolute difference between the longitudinal axis of a precise positioning contour line and its corresponding scribing groove reference line;
[0030] According to the largest value among all positioning distances corresponding to each segment of the precise positioning contour line, multiple values are sequentially taken and averaged to obtain the corresponding marking groove depth.
[0031] Furthermore, the scribe groove reference line is obtained by least square fitting, and the scribe groove reference line is y=ax+b, where:
[0032]
[0033]
[0034] Where i is a natural number, is the horizontal coordinate of the point on the i-th groove reference line used for calculation, is the ordinate of the point on the i-th groove reference line used for calculation, n is the total number of points on the groove reference line used for calculation, i≤n.
[0035] Furthermore, the actual area uses the grayscale image boundary above the rough positioning contour line as the two side boundaries and the upper boundary, and uses the rough positioning contour line of all slice images as the lower boundary, and has a V-shaped scribing groove with the tip pointing downward on the lower boundary of the actual area; the theoretical area has only the lower boundary that is sealed and connected at the opening position of the scribing groove and does not have a V-shaped scribing groove, and the remaining boundaries are exactly the same as the boundaries of the actual area; at this time, the actual area is larger than the theoretical area, and each discrete scribing groove area is obtained by subtracting the theoretical area from the actual area.
[0036] Furthermore, the actual area uses the grayscale image boundary below the rough positioning contour line as the two side boundaries and the lower boundary, and uses the rough positioning contour line of all slice images as the upper boundary, and has a V-shaped scoring groove with the tip pointing downward on the upper boundary of the actual area; the theoretical area has only the upper boundary sealed at the scoring groove opening position, and the other boundaries are exactly the same as the boundaries of the actual area. At this time, the actual area is smaller than the theoretical area, and each discrete scoring groove area is obtained by subtracting the actual area from the theoretical area.
[0037] The present invention also provides a scribing groove detection device, comprising a camera and an analysis unit, wherein the camera captures and obtains a two-dimensional image having spatial information of the scribing groove; the analysis unit receives the two-dimensional image and analyzes and processes it to obtain the scribing groove width; the analysis unit comprises:
[0038] A grayscale conversion module is used to obtain a grayscale image according to the spatial information mapping in the two-dimensional image;
[0039] A slicing module is used to segment the grayscale image using a plurality of parallel segmentation lines along the horizontal axis of the grayscale image, taking the direction of the scribe groove as the longitudinal direction of the grayscale image, to obtain a plurality of slice images;
[0040] A coarse positioning module is used to filter out noise points from each slice image and average to obtain the corresponding coarse positioning contour line of each segment;
[0041] The region fitting module is used to perform morphological processing on the actual region formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical region;
[0042] An area calculation module is used to obtain multiple scribing groove areas according to the absolute difference between the actual area and the theoretical area;
[0043] A segmentation module is used to set two segmentation lines parallel to the longitudinal axis at a fixed distance on both sides of the midpoint of each scribe groove area on the horizontal axis, and use the two segmentation lines corresponding to each scribe groove area to segment the scribe groove area to obtain its corresponding scribe groove image;
[0044] A precise positioning module is used to filter out noise points from each scribe groove image and average the image to obtain each corresponding precise positioning contour line;
[0045] The bottom line fitting module is used to fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line;
[0046] A positioning module, used to obtain the positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line according to the absolute difference between the longitudinal axis of a precise positioning contour line and the corresponding scribing groove reference line;
[0047] The distance finding module is used to translate a section of the scribing groove reference line along the longitudinal axis direction tending to the vertex of the corresponding precise positioning contour line for a certain distance, and obtain the corresponding distance finding straight line when the translated straight line and the corresponding precise positioning contour line have and only have two intersection points, and the two intersection points are located at the midpoint coordinate position of the horizontal axis where the corresponding scribing groove area is located.
[0048] The width calculation module is used to calculate the two intersection points of each precise positioning contour line and its corresponding distance-finding straight line with the smallest translation distance, and obtain the width of the scribing groove according to the distance between the two intersection points in the horizontal axis direction.
[0049] Furthermore, it also includes a depth calculation module, which is used to sequentially take multiple values according to the largest value of all positioning distances corresponding to each segment of the precise positioning contour line and calculate the average to obtain the corresponding marking groove depth.
[0050] Furthermore, the scribe groove reference line is obtained by least square fitting, and the scribe groove reference line is y=ax+b, where:
[0051]
[0052]
[0053] Where i is a natural number, is the horizontal coordinate of the point on the i-th groove reference line used for calculation, is the ordinate of the point on the i-th groove reference line used for calculation, n is the total number of points on the groove reference line used for calculation, i≤n.
[0054] Furthermore, the actual area uses the grayscale image boundary above the rough positioning contour line as the two side boundaries and the upper boundary, and uses the rough positioning contour line of all slice images as the lower boundary, and has a V-shaped scribing groove with the tip pointing downward on the lower boundary of the actual area; the theoretical area has only the lower boundary that is sealed and connected at the opening position of the scribing groove and does not have a V-shaped scribing groove, and the remaining boundaries are exactly the same as the boundaries of the actual area; at this time, the actual area is larger than the theoretical area, and each discrete scribing groove area is obtained by subtracting the theoretical area from the actual area.
[0055] Furthermore, the actual area uses the grayscale image boundary below the rough positioning contour line as the two side boundaries and the lower boundary, and uses the rough positioning contour line of all slice images as the upper boundary, and has a V-shaped scoring groove with the tip pointing downward on the upper boundary of the actual area; the theoretical area has only the upper boundary sealed at the scoring groove opening position, and the other boundaries are exactly the same as the boundaries of the actual area. At this time, the actual area is smaller than the theoretical area, and each discrete scoring groove area is obtained by subtracting the actual area from the theoretical area.
[0056] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 This is a schematic diagram of the partial structure of a lithium battery.
[0058] Figure 2 This is a flat front view of the battery electrode part of a lithium battery.
[0059] Figure 3 for Figure 2 A flat oblique view of the battery pole piece.
[0060] Figure 4 It is a module block diagram of the analysis unit in the scribe groove detection device of the present invention.
[0061] Figure 5 for Figure 4 Operation flow chart of the analysis unit.
[0062] Figure 6 for Figure 4 The grayscale image is obtained by analyzing the grayscale conversion module in the analysis unit.
[0063] Figure 7 for Figure 4 A schematic diagram of a coarse positioning contour line fitted by a coarse positioning module in the analysis unit.
[0064] Figure 8 for Figure 4 Schematic diagram of the regions divided by the regional fitting module in the analysis unit.
[0065] Fig. 9 for Figure 4 A schematic diagram of the precise positioning contour line fitted by the precise positioning module in the analysis unit.
[0066] Fig.10 for Figure 4 A schematic diagram of the scribe groove reference line fitted by the positioning module in the analysis unit.
[0067] Fig.11 for Figure 4 A schematic diagram of a distance-finding straight line obtained by a distance-finding module in the analysis unit. DETAILED DESCRIPTION
[0068] The inventors learned that the brightness change of pixels in the surface image of an object contains information about the height change of the object surface. The width of scratches or depressions on the surface of the object can also be obtained by analyzing the height change process or using visual analysis. Based on this technical principle, the inventors tried to use a camera to take a surface image of a battery pole piece and convert it into a grayscale image for analysis and calculation. The grayscale image was divided twice for fitting and positioning, thereby calculating the width of the scribe groove 21 on the battery pole piece. In addition, the depth of the scribe groove 21 was also obtained by this calculation method.
[0069] Based on the above inventive concept, the inventor provides a scribing process detection device, including a camera and an analysis unit. Taking the positive electrode layer 2 in the battery electrode as an example, the camera photographs the surface of the positive electrode layer 2 to obtain a two-dimensional image with spatial information of the scribing groove 21. The analysis unit receives the two-dimensional image and analyzes and calculates the depth and width of the scribing groove.
[0070] See also Figure 4 The analysis unit includes a grayscale conversion module, a slicing module, a rough positioning module, a region fitting module, a segmentation module, a fine positioning module, a bottom line fitting module, a positioning module, a distance finding module, a width calculation module and a depth calculation module. Figure 5 , Figure 5 It is an operation flow chart corresponding to the analysis unit.
[0071] See also Figure 6 The grayscale conversion module is used to receive a two-dimensional image and obtain a grayscale image according to the spatial information mapping in the two-dimensional image. Both the grayscale image and the two-dimensional image reflect the spatial information of the pole piece surface through the brightness change of the pixel points, but the two-dimensional image also contains the color information of the pole piece surface. Using the grayscale image instead of the two-dimensional image for calculation can discard unnecessary feature information without affecting the calculation results, greatly reducing the amount of data calculation.
[0072] The slicing module is used to use the direction of the scribe groove as the longitudinal axis direction of the grayscale image, and to use multiple parallel segmentation lines along the horizontal axis of the grayscale image to segment the grayscale image to obtain multiple slice images. The upper left corner vertex of the grayscale image is the origin of the coordinate system, the right direction is the positive direction of the horizontal axis, and the downward direction is the positive direction of the vertical axis. Each segmentation line is parallel to the vertical axis, and the segmentation distance between each segmentation line is the known spacing of the scribe grooves required on the pole piece. Every two segmentation lines will segment the grayscale image into an independent slice image.
[0073] See also Figure 7The coarse positioning module is used to filter out noise points for each slice image and average to obtain each corresponding coarse positioning contour line. Since all slice images are all images taken by the camera, setting a lower precision for filtering out noise points for each slice image can greatly reduce the amount of calculation for obtaining the coarse positioning contour line.
[0074] See also Figure 8 , the region fitting module is used to perform morphological processing on the actual region A formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical region B. The actual region A uses the grayscale image boundaries above the rough positioning contour lines as the two side boundaries and the upper boundary, and the rough positioning contour lines of each slice image of the positive electrode layer 2 together constitute the lower boundary of the actual region A, which has a V-shaped scribing groove 21. Performing morphological processing on the actual region A can obtain the fitted theoretical region B, in which only the lower boundary of the theoretical region B is connected along the dotted line at the opening position of the scribing groove 21, and does not have the V-shaped scribing groove 21, and the remaining boundaries are exactly the same as the boundaries of the actual region A.
[0075] The area calculation module is used to obtain multiple scribe groove areas C according to the absolute difference between the actual area A and the theoretical area B. Figure 8 The actual area A shown in the figure is larger than the theoretical area B. All discrete scribe groove areas C can be obtained by subtracting the theoretical area B from the actual area A. It can be foreseen that the actual area A can also choose to use the grayscale image boundary below the rough positioning contour line as the two side boundaries and the lower boundary, and use all the rough positioning contour lines as the upper boundary. At this time, only the upper boundary of the theoretical area B is connected along the dotted line at the opening position of the scribe groove 21, and the remaining boundaries are exactly the same as the boundaries of the actual area A. Under this selection, the actual area A is smaller than the theoretical area B. All discrete scribe groove areas C can be obtained by subtracting the actual area A from the theoretical area B.
[0076] The segmentation module is used to set two segmentation lines parallel to the longitudinal axis at a fixed distance on both sides of the midpoint of the horizontal axis where each scribe groove area C is located, and use the two segmentation lines corresponding to each scribe groove area to segment the scribe groove area to obtain its corresponding scribe groove image.
[0077] See also Fig. 9 The precise positioning module is used to filter out noise points from each scribe groove image and average to obtain each corresponding precise positioning contour line. Since the segmented image is only a small part of all the images taken by the camera, a high precision is set for filtering out noise points from each slice image, so that high-precision calculation can be achieved with low computational complexity.
[0078] The bottom line fitting module is used to fit each segment of the precise positioning contour line to obtain the corresponding scribing groove reference line. The scribing groove reference line is fitted by the least square method, and the scribing groove reference line is y=ax+b, where:
[0079]
[0080]
[0081] Where i is a natural number, is the horizontal coordinate of the point on the i-th groove reference line used for calculation, is the ordinate of the point on the i-th groove reference line used for calculation, i≤n.
[0082] The positioning module is used to obtain the positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line according to the absolute difference between the longitudinal axis of a precise positioning contour line and its corresponding scribing groove reference line. Fig.10 The scribe groove 21 has a first side H1 and a second side H2, the first side H1 and the second side H2 together form a V-shaped deep groove of the scribe groove 21, and the fitted scribe groove reference line L is Fig.10 The dotted line position in the figure is P, and the P point is the center position of the scribe groove 21. For each scribe groove area C, the distance from each point on the first side H1 and the second side H2 to the scribe groove reference line L is the positioning distance corresponding to each point. It can be understood by those skilled in the art that the scribe groove 21 is actually not composed of two smooth inclined surfaces, but two rough inclined surfaces, so the first side H1 and the second side H2 actually have many small bends. Fig.10 It is simplified for clarity of description.
[0083] The distance finding module is used to move a section of the scribing groove reference line L along the longitudinal axis direction tending to the corresponding scribing groove 21 vertex by a certain translation distance y. When the straight line after translation has only two intersections with the corresponding precise positioning contour line, and the midpoint coordinates between the two intersections are the same as the midpoint position coordinates of the corresponding scribing groove area C, the corresponding distance finding straight line is obtained.
[0084] See also Fig.11 The width calculation module is used to calculate the two intersection points of each precise positioning contour line and the distance-finding line with the smallest translation distance corresponding to it, and obtain the width of the scribing groove according to the distance between the two intersection points in the horizontal axis direction. The first intersection point of the distance-finding line and the first side H1 is calculated to obtain the horizontal coordinate x1 of the first intersection point, and the second intersection point of the distance-finding line and the second side H2 is calculated to obtain the horizontal coordinate x2 of the second intersection point. The width of the scribing groove can be obtained by subtracting the horizontal coordinate x1 of the first intersection point from the horizontal coordinate x2 of the second intersection point.
[0085] The depth calculation module is used to take multiple values in sequence according to the largest value of all positioning distances corresponding to each segment of the precise positioning contour line and average them to obtain the corresponding depth of the scribing groove. Since the first side H1 and the second side H2 are not smooth straight lines, the maximum positioning distance is not necessarily the groove depth corresponding to the center position of the scribing groove 21, but may be a defect or scratch close to the center position, but on the whole, the closer the point is to the center position, the greater its positioning distance is. Therefore, starting from the maximum positioning distance, taking multiple values in sequence and averaging can obtain a more accurate depth of the scribing groove 21. In existing electronic devices, lithium batteries are made into very thin pole pieces as much as possible to reduce the size of the device. The thickness of the pole piece is at the same order of magnitude as the depth of the scribing groove 21 formed by scribing. The depth of the scribing groove 21 must be controlled to prevent piercing the electrode layer. Therefore, it is necessary to detect the depth of the scribing groove 21 in production. However, the scribing groove 21 is too small, and the staff cannot directly observe the width and depth of the scribing groove 21 with the naked eye, which requires the use of other devices to detect the scribing groove 21. However, the existing method of using a second camera to photograph the cross section of the scribe groove 21 and analyzing the depth of the scribe groove 21 requires that the scribe groove detection device of the lithium battery use a first camera to photograph the plane where the scribe groove 21 is located and analyze the width of the scribe groove 21. Multiple cameras are used and installed in different directions, resulting in high production costs for the device, and the space occupied by the device is increased, which is not convenient for actual installation. Therefore, the application of the depth calculation module in the scribe groove detection device of the present invention does not require an additional camera, but can realize the detection of the width of the scribe groove and the depth of the scribe groove at the same time when only one camera is used. The device occupies a small space and is convenient for actual production and installation.
[0086] The scribing groove detection device of the present invention can realize low-computation and high-precision detection of the scribing groove of the battery pole piece by dividing the image twice while using only one camera, and simultaneously detect and obtain the width and depth information of the scribing groove, thereby greatly reducing the production cost.
[0087] The above-mentioned embodiment only expresses one implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.
Claims
1. A method for detecting a scribe groove, Features: Includes steps: Taking pictures to obtain a two-dimensional image with spatial information of the scribe groove; A grayscale image is obtained according to the spatial information mapping in the two-dimensional image; The direction of the scribe groove is used as the longitudinal axis direction of the grayscale image, and the grayscale image is segmented along the horizontal axis of the grayscale image using multiple parallel segmentation lines to obtain multiple slice images; Filter out the noise points of each slice image and calculate the average to obtain the corresponding rough positioning contour line of each segment; Morphological processing is performed on the actual area formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical area; A plurality of scribing groove areas are obtained according to the absolute difference between the actual area and the theoretical area; Two dividing lines parallel to the longitudinal axis are arranged at a fixed distance on both sides of the midpoint of each scribe groove area, and the scribe groove area is divided by the two dividing lines corresponding to each scribe groove area to obtain the corresponding scribe groove image; For each line groove image, filter out the noise points and average them to obtain the corresponding precise positioning contour line. Fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line; The positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line is obtained according to the absolute difference between the longitudinal axis of each precise positioning contour line and its corresponding scribing groove reference line; A section of the scribing groove reference line is translated a certain distance along the longitudinal axis direction tending to the vertex of the corresponding precise positioning contour line. When the translated straight line and the corresponding precise positioning contour line have only two intersection points, and the two intersection points are located at the midpoint coordinate position of the horizontal axis where the corresponding scribing groove area is located, the corresponding distance-finding straight line is obtained; The two intersection points of each precise positioning contour line and its corresponding distance-finding straight line with the smallest translation distance are calculated, and the width of the scribing groove is obtained according to the distance between the two intersection points in the horizontal axis direction.
2. The scribe groove detection method according to claim 1, Features: The steps include: photographing and acquiring a two-dimensional image having spatial information of the scribe groove; A grayscale image is obtained according to the spatial information mapping in the two-dimensional image; The direction of the scribe groove is used as the longitudinal axis direction of the grayscale image, and the grayscale image is segmented along the horizontal axis of the grayscale image using multiple parallel segmentation lines to obtain multiple slice images; Filter out the noise points of each slice image and calculate the average to obtain the corresponding rough positioning contour line of each segment; Morphological processing is performed on the actual area formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical area; A plurality of scribing groove areas are obtained according to the absolute difference between the actual area and the theoretical area; Using two dividing lines parallel to the vertical axis at a fixed distance on both sides of the midpoint of each scribe groove area where the scribe groove area is located, the scribe groove area is divided to obtain the corresponding scribe groove image; For each line groove image, filter out the noise points and average them to obtain the corresponding precise positioning contour line. Fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line; The positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line is obtained according to the absolute difference between the longitudinal axis of a precise positioning contour line and its corresponding scribing groove reference line; According to the largest value among all positioning distances corresponding to each segment of the precise positioning contour line, multiple values are sequentially taken and averaged to obtain the corresponding marking groove depth.
3. The scribe groove detection method according to claim 1 or 2, Features: The scribe groove reference line is obtained by least square fitting, and the scribe groove reference line is y=ax+b, where: Where i is a natural number, is the horizontal coordinate of the point on the i-th groove reference line used for calculation, is the ordinate of the point on the i-th groove reference line used for calculation, n is the total number of points on the groove reference line used for calculation, i≤n.
4. The scribe groove detection method according to claim 3, Features: The actual area uses the grayscale image boundary above the rough positioning contour line as the two side boundaries and the upper boundary, and uses the rough positioning contour line of all slice images as the lower boundary, and has a V-shaped scribing groove with the tip pointing downward on the lower boundary of the actual area; the theoretical area has only the lower boundary sealed at the opening position of the scribing groove and does not have a V-shaped scribing groove, and the remaining boundaries are exactly the same as the boundaries of the actual area; at this time, the actual area is larger than the theoretical area, and each discrete scribing groove area is obtained by subtracting the theoretical area from the actual area.
5. The scribe groove detection method according to claim 3, Features: The actual area uses the grayscale image boundary below the rough positioning contour line as the two side boundaries and the lower boundary, and the rough positioning contour line of all slice images as the upper boundary, and has a V-shaped scribing groove with the tip pointing downward on the upper boundary of the actual area; the theoretical area has only the upper boundary sealed at the scribing groove opening position, and the other boundaries are exactly the same as the boundaries of the actual area. At this time, the actual area is smaller than the theoretical area, and each discrete scribing groove area is obtained by subtracting the actual area from the theoretical area.
6. A scribing groove detection device, Features: It includes a camera and an analysis unit, wherein the camera captures and obtains a two-dimensional image having spatial information of the scribe groove; the analysis unit receives the two-dimensional image and analyzes and processes it to obtain the width of the scribe groove; The analysis unit comprises: A grayscale conversion module is used to obtain a grayscale image according to the spatial information mapping in the two-dimensional image; A slicing module is used to segment the grayscale image using a plurality of parallel segmentation lines along the horizontal axis of the grayscale image, taking the direction of the scribe groove as the longitudinal direction of the grayscale image, to obtain a plurality of slice images; A coarse positioning module is used to filter out noise points from each slice image and average the image to obtain the corresponding coarse positioning contour line of each segment; The region fitting module is used to perform morphological processing on the actual region formed by all the rough positioning contour lines and the grayscale image boundaries to obtain the theoretical region; An area calculation module is used to obtain multiple scribing groove areas according to the absolute difference between the actual area and the theoretical area; A segmentation module is used to set two segmentation lines parallel to the longitudinal axis at a fixed distance on both sides of the midpoint of each scribe groove area on the horizontal axis, and use the two segmentation lines corresponding to each scribe groove area to segment the scribe groove area to obtain its corresponding scribe groove image; A precise positioning module is used to filter out noise points from each scribe groove image and average the image to obtain each corresponding precise positioning contour line; The bottom line fitting module is used to fit each segment of the precise positioning contour line to obtain the corresponding marking groove reference line; A positioning module, used for obtaining the positioning distance from each point on the precise positioning contour line to the corresponding scribing groove reference line according to the absolute difference between the longitudinal axis of a precise positioning contour line and the corresponding scribing groove reference line; The distance finding module is used to translate a section of the scribing groove reference line along the longitudinal axis direction tending to the vertex of the corresponding precise positioning contour line for a certain distance, and obtain the corresponding distance finding straight line when the translated straight line and the corresponding precise positioning contour line have and only have two intersection points, and the two intersection points are located at the midpoint coordinate position of the horizontal axis where the corresponding scribing groove area is located. The width calculation module is used to calculate the two intersection points of each precise positioning contour line and its corresponding distance-finding straight line with the smallest translation distance, and obtain the width of the scribing groove according to the distance between the two intersection points in the horizontal axis direction.
7. The scribe groove detection device according to claim 6, Features: It also includes a depth calculation module, which is used to sequentially obtain multiple values according to the largest value of all positioning distances corresponding to each segment of the precise positioning contour line and average them to obtain the corresponding marking groove depth.
8. The scribing groove detection device according to claim 6 or 7, Features: The scribe groove reference line is obtained by least square fitting, and the scribe groove reference line is y=ax+b, where: Where i is a natural number, is the horizontal coordinate of the point on the i-th groove reference line used for calculation, is the ordinate of the point on the i-th groove reference line used for calculation, n is the total number of points on the groove reference line used for calculation, i≤n.
9. The scribe groove detection device according to claim 8, Features: The actual area uses the grayscale image boundary above the rough positioning contour line as the two side boundaries and the upper boundary, and uses the rough positioning contour line of all slice images as the lower boundary, and has a V-shaped scribing groove with the tip pointing downward on the lower boundary of the actual area; the theoretical area has only the lower boundary sealed at the opening position of the scribing groove and does not have a V-shaped scribing groove, and the remaining boundaries are exactly the same as the boundaries of the actual area; at this time, the actual area is larger than the theoretical area, and each discrete scribing groove area is obtained by subtracting the theoretical area from the actual area.
10. The scribe groove detection device according to claim 8, Features: The actual area uses the grayscale image boundary below the rough positioning contour line as the two side boundaries and the lower boundary, and the rough positioning contour line of all slice images as the upper boundary, and has a V-shaped scribing groove with the tip pointing downward on the upper boundary of the actual area; the theoretical area has only the upper boundary sealed at the scribing groove opening position, and the other boundaries are exactly the same as the boundaries of the actual area. At this time, the actual area is smaller than the theoretical area, and each discrete scribing groove area is obtained by subtracting the actual area from the theoretical area.
