Distance measurement method, distance measurement device, distance measurement system, and storage medium

CN117739829BActive Publication Date: 2026-09-15BEIJING LUSTER LIGHTTECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311810159.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2026-09-15
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

进行距离测量时,需要从传送带中抓取电池片放置到检测台上,其放置位置无法保持一致

Benefits of technology

[0003] This application provides a distance measurement method, a distance measurement device, a distance measurement system, and a computer-readable storage medium to solve at least one of the aforementioned technical problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117739829B_ABST
    Figure CN117739829B_ABST
Patent Text Reader

Abstract

The application discloses a distance measurement method, a distance measurement device, a distance measurement system and a computer readable storage medium. The distance measurement method of the application embodiment is applied to a battery piece, and dense printed lines are formed on the battery piece. The distance measurement method comprises the following steps: obtaining a relative position relationship of an auxiliary positioning core and a plurality of distance measurement printed lines in a template image of the battery piece, wherein the auxiliary positioning core is a characteristic object with an identifier in the template image, and the distance measurement printed line is a printed line for distance measurement in the dense printed lines; obtaining a first position of the auxiliary positioning core in a detection image of the battery piece; determining a plurality of second positions corresponding to the plurality of distance measurement printed lines in the detection image according to the first position and the relative position relationship; and determining relative distances between the plurality of distance measurement printed lines according to the plurality of second positions. In this way, the distance measurement printed lines can be accurately positioned and measured even when the placement position of the battery piece changes, and missing detection and false detection can be effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial vision technology, and in particular to a distance measurement method, a distance measurement device, a distance measurement system, and a computer-readable storage medium. Background Technology

[0002] In industrial production, distance measurement is required for the laser printing lines of photovoltaic cells. During distance measurement, cells are picked up from the conveyor belt and placed on the inspection table, but their placement cannot be consistent. This variation in cell placement causes the laser printing lines to appear unpredictable in the image, making it difficult to locate the lines used for distance measurement within a dense network of laser printing lines. Summary of the Invention

[0003] This application provides a distance measurement method, a distance measurement device, a distance measurement system, and a computer-readable storage medium to solve at least one of the aforementioned technical problems.

[0004] The distance measurement method of this application is applied to a battery cell, wherein densely printed lines are formed on the battery cell, and the distance measurement method includes:

[0005] The relative positional relationship between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell is obtained, wherein the auxiliary positioning core is a identifiable feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines.

[0006] Obtain the first position of the auxiliary positioning core in the detection image of the battery cell;

[0007] Based on the first position and the relative positional relationship, determine multiple second positions corresponding to the multiple ranging printed lines in the detection image;

[0008] The relative distance between the plurality of distance measuring printed lines is determined based on the plurality of second positions.

[0009] In some embodiments, obtaining the relative positional relationship between the auxiliary positioning core and the multiple ranging printed lines in the template image of the battery cell includes:

[0010] Select the template image;

[0011] Mark the third position of the auxiliary positioning core in the template image;

[0012] Mark multiple first printing areas where multiple ranging printing lines are located in the template image;

[0013] The relative positional relationship is determined based on the third position and the plurality of first printing areas.

[0014] In some embodiments, the third position includes the coordinates of a first center point, and the first printing area has the coordinates of a second center point. Determining the relative positional relationship based on the third position and a plurality of first printing areas includes:

[0015] The relative positional relationship is calculated based on the coordinates of the first center point and the coordinates of the second center point.

[0016] In some embodiments, determining the plurality of second positions corresponding to the plurality of ranging printed lines in the detection image based on the first position and the relative positional relationship includes:

[0017] Based on the first position and the relative positional relationship, determine the multiple second printing areas where the multiple ranging printing lines in the detection image are located;

[0018] Multiple ranging printing lines are extracted from multiple second printing areas to obtain multiple second positions.

[0019] In some embodiments, the first position includes the coordinates of a third center point, the first printed area has a width parameter and a height parameter, and the step of determining the plurality of second printed areas where the plurality of ranging printed lines in the detection image are located based on the first position and the relative positional relationship includes:

[0020] Based on the coordinates of the third center point and the relative positional relationship, determine the coordinates of multiple fourth center points corresponding to the multiple ranging printed lines in the detection image;

[0021] Multiple second printing areas are determined based on the width parameter, the height parameter, and the coordinates of multiple fourth center points.

[0022] In some embodiments, obtaining the first position of the auxiliary positioning kernel in the detection image of the battery cell includes:

[0023] The first position is determined by searching and locating the auxiliary positioning kernel in the detection image based on the template image.

[0024] In some embodiments, the second position includes the coordinates of a fifth center point, and determining the relative distance between the plurality of ranging printed lines based on the plurality of second positions includes:

[0025] The relative distance between the multiple distance measuring printed lines is determined based on the coordinates of the multiple fifth center points.

[0026] The distance measuring device according to an embodiment of this application is applied to a battery cell, the battery cell having densely printed lines formed on it, the distance measuring device comprising:

[0027] The acquisition module is used to acquire the relative positional relationship between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell, wherein the auxiliary positioning core is a identifiable feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines;

[0028] The acquisition module is further configured to acquire the first position of the auxiliary positioning core in the detection image of the battery cell;

[0029] The determining module is used to determine multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship;

[0030] The determining module is further configured to determine the relative distance between the plurality of distance measuring printed lines based on the plurality of second positions.

[0031] The distance measurement system according to the embodiments of this application includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the distance measurement method of any of the above embodiments.

[0032] The computer-readable storage medium of the present application embodiment stores a computer program that, when executed by a processor, implements the distance measurement method of any of the above embodiments.

[0033] The distance measurement method, distance measurement device, distance measurement system, and computer-readable storage medium of this application, with the aid of an auxiliary positioning kernel, determine multiple second positions corresponding to multiple distance measuring printed lines in the detection image by detecting a first position of the auxiliary positioning kernel in the image and the relative positional relationship between the auxiliary positioning kernel and the distance measuring printed lines in the template image, and then determine the relative distance between the multiple distance measuring printed lines. Thus, even when the placement position of the battery cell changes, the distance measuring printed lines can be accurately located and measured, effectively preventing missed detections and false detections.

[0034] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description

[0035] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:

[0036] Figure 1 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0037] Figure 2 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0038] Figure 3 This is a schematic diagram showing partial images of a battery cell according to certain embodiments of this application;

[0039] Figure 4 This is a schematic diagram showing partial images of a battery cell according to certain embodiments of this application;

[0040] Figure 5 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0041] Figure 6 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0042] Figure 7 This is a schematic diagram of template images for certain embodiments of this application;

[0043] Figure 8 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0044] Figure 9 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0045] Figure 10 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0046] Figure 11 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0047] Figure 12 This is a flowchart illustrating a distance measurement method according to certain embodiments of this application;

[0048] Figure 13 This is a schematic diagram of a distance measuring device according to certain embodiments of this application;

[0049] Figure 14 This is a schematic diagram of the distance measurement system according to certain embodiments of this application;

[0050] Figure 15 This is a schematic diagram illustrating the connection state between a computer-readable storage medium and a processor according to certain embodiments of this application. Detailed Implementation

[0051] The embodiments of this application will be further described below with reference to the accompanying drawings. The same or similar reference numerals in the drawings denote the same or similar elements or elements having the same or similar functions throughout. Furthermore, the embodiments of this application described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting this application.

[0052] Please see Figure 1 and Figure 2 This application provides a distance measurement method applied to a battery cell, on which densely printed lines are formed. The distance measurement method includes:

[0053] 010: Obtain the relative positional relationship between the auxiliary positioning kernel and multiple ranging printed lines in the template image of the battery cell;

[0054] Among them, the auxiliary positioning kernel is a distinctive feature object in the template image, and the ranging printed line is a printed line used for ranging in the dense printed lines;

[0055] 020: Obtain the first position of the auxiliary localization kernel in the detection image of the battery cell;

[0056] 030: Determine multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship;

[0057] 040: Determine the relative distance between multiple ranging printed lines based on multiple second positions.

[0058] The distance measurement method of this application, with the aid of an auxiliary positioning kernel, determines multiple second positions corresponding to multiple distance measuring printed lines in the detection image by detecting the first position of the auxiliary positioning kernel in the image and the relative positional relationship between the auxiliary positioning kernel and the distance measuring printed lines in the template image, thereby determining the relative distance between the multiple distance measuring printed lines. In this way, even when the battery cell placement position changes, the distance measuring printed lines can be accurately located and the distance measured can be measured, effectively preventing missed detections and false detections.

[0059] Specifically, the densely printed lines formed on the solar cell can be laser-printed lines, including ranging printed lines for distance measurement. The number of auxiliary positioning nuclei can be one or more. For example, one, two, three or more identifiable feature objects can be selected from the template image as auxiliary positioning nuclei. The specific number can be determined based on the number of identifiable feature objects in the template image and the measurement requirements.

[0060] It should be noted that the template image and the detection image are images of the same portion of multiple battery cells of the same specification. When capturing images of the battery cells, the field of view of a single camera can only cover a portion of the battery cell, not the entire cell. Therefore, multiple cameras are needed to simultaneously capture images of the battery cell to obtain a complete image. When measuring the distance to the ranging printed lines, the image captured by each camera needs to be measured individually. That is, when one camera captures images of the same portion of multiple battery cells, one or more auxiliary positioning cores are determined to measure the distance to the ranging printed lines in that portion of the image. For images of other portions of the battery cells captured by other cameras, one or more auxiliary positioning cores need to be re-determined to measure the distance to the ranging printed lines in those portions.

[0061] When obtaining the relative positional relationship between the auxiliary positioning kernel and multiple ranging printed lines in the template image of the battery cell, a relative positional relationship can be obtained for each ranging printed line. When measuring the distance to the ranging printed lines in the detection image, based on the auxiliary positioning kernel in the template image, the corresponding auxiliary positioning kernel is located in the detection image, obtaining the first position of the auxiliary positioning kernel in the detection image. Based on the first position of the auxiliary positioning kernel and a relative positional relationship, a ranging printed line can be determined, obtaining a second position; based on the first position of the auxiliary positioning kernel and multiple relative positional relationships, multiple ranging printed lines can be correspondingly determined, obtaining multiple second positions. Based on the multiple second positions, the relative distance between the multiple ranging printed lines can be determined, completing the distance measurement.

[0062] Typically, distance measurement of the ranging printed lines on solar cells is performed manually or by measuring from a fixed position in an image. However, manual measurement is time-consuming and cannot guarantee accuracy. Image-based fixed-position measurement has strict requirements on the placement of the solar cells, ensuring that the ranging printed lines in a densely packed array appear at the same fixed position in any inspection image. Please refer to... Figure 3 and Figure 4 When the placement of the battery cells changes, the position of the ranging printed line in the detection image will shift irregularly, easily leading to false detections and missed detections. The distance measurement method of this application introduces an auxiliary positioning core. By using the first position of the auxiliary positioning core and its relative positional relationship with the ranging printed line, a second position of the ranging printed line is located for distance measurement. In this way, it can adapt to the irregular movement of the ranging printed line in the detection image caused by changes in the placement of the battery cells, preventing missed and false detections, and achieving high measurement accuracy.

[0063] It should be noted that the processes and specifications of solar cells vary widely. The distance measurement method of this application can specify different auxiliary positioning cores for different solar cell specifications to adapt to more detection scenarios. For example, the edge line of the solar cell can be used as the auxiliary positioning core, or a rectangle, circle, or other shape can be selected at a distinctive feature object in the solar cell as the auxiliary positioning core.

[0064] Please see Figure 5 and Figure 6 In some embodiments, obtaining the relative positional relationship (i.e., 010) between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell includes:

[0065] 011: Select template image;

[0066] 012: Mark the third position of the auxiliary localization kernel in the template image;

[0067] 013: Mark multiple first printing areas containing multiple ranging printing lines in the template image;

[0068] 014: Determine the relative positional relationship based on the third position and multiple first printing areas.

[0069] Specifically, one image can be selected from multiple images of the battery cells to be inspected as a template image. The third position of the auxiliary positioning kernel is marked on the template image. Taking marking an auxiliary positioning kernel as an example, the user can use a rectangular frame to outline it. Figure 3 The edge line of the solar cell, the rectangular frame as follows Figure 7 As shown, the area covered by the rectangle can be used as an auxiliary positioning core, and the position of the rectangle is the third position; or, the edge line of the battery cell in the rectangle can be extracted and the position of the edge line can be used as the third position.

[0070] In the template image, multiple first printing areas containing various distance measuring lines also need to be marked. Taking marking two first printing areas containing two distance measuring lines as an example, such as... Figure 7 As shown, the user can outline the two ranging printed lines with two rectangles to obtain two first printed areas. Based on the third position and the two first printed areas, the positional data used for detecting the image can be determined. The positional data includes the relative positional relationship between the auxiliary positioning kernel and the multiple ranging printed lines in the template image of the battery cell, as well as the width and height parameters of the multiple first printed areas (which will be described in detail later).

[0071] Please see Figure 8 In some embodiments, the third position includes the coordinates of a first center point, and the first printing area has the coordinates of a second center point. Determining the relative positional relationship (i.e., 014) based on the third position and the plurality of first printing areas includes:

[0072] 0141: Calculate the relative positional relationship based on the coordinates of the first center point and the second center point.

[0073] Specifically, such as Figure 7 As shown, when the third position is the location of the rectangular area containing the edge line, the coordinates of the center point of the rectangular area are the coordinates of the first center point of the third position; when the third position is the location of the edge line, the coordinates of the center point of the edge line are the coordinates of the first center point of the third position. The coordinates of the first center point can be represented as (mx, my). For the two first printing areas corresponding to the two ranging printing lines, the coordinates of the center point are taken as the coordinates of the second center point. For example, the coordinates of the second center point of the first printing area corresponding to the first ranging printing line are (lx1, ly1), and the coordinates of the second center point of the first printing area corresponding to the second ranging printing line are (lx2, ly2). The relative positional relationship between the auxiliary positioning core and multiple ranging printing lines can be calculated based on the coordinates of the first and second center points. Among them, the relative positional relationship dx1, dy1 between the auxiliary positioning core and the first ranging printing line is:

[0074] dx1=mx-lx1

[0075] dy1 = my-ly1

[0076] The relative positional relationships dx2 and dy2 between the auxiliary positioning core and the second ranging printed line are:

[0077] dx² = mx - lx²

[0078] dy2 = my-ly2

[0079] It should be noted that when there are multiple auxiliary positioning nuclides, the relative positional relationships between each auxiliary positioning nuclide and each first ranging printed line can be calculated separately. Taking two auxiliary positioning nuclides as an example, let the coordinates of the first center point of the third position of the first auxiliary positioning nuclide be (mx1, my1), and the coordinates of the first center point of the third position of the second auxiliary positioning nuclide be (mx2, my2). The relative positional relationships dx3 and dy3 between the first auxiliary positioning nuclide and the first ranging printed line are calculated separately.

[0080] dx3=mx1-lx1

[0081] dy3 = my1 - ly1

[0082] The relative positional relationships dx4 and dy4 between the second auxiliary positioning core and the second ranging printed line are:

[0083] dx4=mx2-lx2

[0084] dy4 = my2 - ly2

[0085] Please see Figure 9 In some implementations, obtaining the first position (i.e., 020) of the auxiliary positioning kernel in the detection image of the battery cell includes:

[0086] 021: Search and locate in the detection image based on the auxiliary localization kernel in the template image to determine the first position.

[0087] Specifically, based on the auxiliary localization kernel in the template image, template matching, shape localization, line localization, or other arbitrary localization methods can be used to search and locate within the detection image. For example, when the auxiliary localization kernel in the template image is a rectangular region containing the edge line, template matching can be used to search and locate within the detection image: using the rectangular region as the template, the detection image is traversed from left to right and from top to bottom, and the matching degree between the template and the overlapping sub-images in the detection image is calculated. The greater the matching degree, the greater the probability that the overlapping sub-image is the same as the template. A localization threshold can be set; when the matching degree is greater than the localization threshold, the overlapping sub-image is considered an auxiliary localization kernel in the detection image, and the position of the overlapping sub-image is designated as the first position.

[0088] When the auxiliary localization kernel in the template image is an edge line, shape localization or line localization methods can be used to search and locate it in the detection image. The search and localization are performed by traversing the detection image based on the edge contour shape of the auxiliary localization kernel in the template image, or based on the straight line fitted by the auxiliary localization kernel, and the matching degree is calculated. Alternatively, a localization threshold can be set; when the matching degree is greater than the localization threshold, the searched shape or line is considered the auxiliary localization kernel in the detection image, and the position of the searched shape or line is designated as the first position. Thus, the distance measurement method of this application can be applied to various application scenarios, allowing different search and localization methods to be selected according to different application scenarios, and different localization thresholds can be set.

[0089] Please see Figure 2 and Figure 10 In some embodiments, determining multiple second positions (i.e., 030) corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship includes:

[0090] 031: Determine multiple second printing areas where multiple ranging printing lines are located in the detection image based on the first position and relative positional relationship;

[0091] 032: Extract multiple ranging printing lines from multiple second printing areas to obtain multiple second positions.

[0092] Specifically, after obtaining the first position of the auxiliary positioning core in the detection image of the battery cell, multiple second printing areas containing multiple ranging printing lines in the detection image can be determined based on the first position and the relative positional relationship. For example, based on the first position and the relative positional relationship between the auxiliary positioning core and the two ranging printing lines, two second printing areas containing the corresponding two ranging printing lines can be determined in the detection image. The ranging printing lines are then extracted from the determined second printing areas in the detection image. A caliper-based straight-line extraction method can be used for this extraction. The specific process is as follows: Select a caliper window of appropriate size and move this window within the second printing area; for each caliper window, record the pixel information within the window; for each pixel within the caliper window, use a certain algorithm or rule to determine whether a straight line exists; if a straight line is determined to exist, a straight line can be fitted using the pixel information within the caliper window, and the position of this straight line is the second position of the ranging printing line in the second printing area.

[0093] In addition, other arbitrary line extraction methods can be used to extract the distance measurement printed lines. For example, edge detection or projection methods can be used. When using edge detection to extract the distance measurement printed lines, any edge detection algorithm can be used, such as the Canny edge detection algorithm, the Roberts edge detection algorithm, or the Sobel edge detection algorithm. When using projection methods to extract the distance measurement printed lines, the second printed area can be projected in a specified direction (horizontal or vertical), and the mean or sum of the pixel values ​​of the second printed area can be calculated along the specified direction. The second position of the distance measurement printed line can be determined by a predetermined rule or threshold. It should be noted that the distance measurement printed line has a certain width. When extracting the distance measurement printed line, the center line, left contour line, or right contour line of the distance measurement printed line can be selected according to the actual situation.

[0094] Please see Figure 11 In some embodiments, the first position includes the coordinates of a third center point, and the first printing area has width and height parameters. Determining multiple second printing areas (i.e., 031) where multiple ranging printing lines in the detection image are located based on the first position and their relative positional relationships includes:

[0095] 0311: Determine the coordinates of multiple fourth center points corresponding to multiple ranging printed lines in the detection image based on the coordinates of the third center point and their relative positional relationships;

[0096] 0312: Determine multiple second printing areas based on width parameters, height parameters, and coordinates of multiple fourth center points.

[0097] Specifically, based on the coordinates of the third center point of the first position and the relative positional relationship, the coordinates of multiple fourth center points corresponding to multiple ranging printed lines in the detection image can be determined. Taking an auxiliary positioning kernel marked in the template image as an example, let the coordinates of the third center point be (x, y). Combining the relative positional relationships dx1, dy1, dx2, and dy2 between the auxiliary positioning kernel and the two ranging printed lines in the template image, the coordinates of the fourth center point of the first ranging printed line in the detection image are (x-dx1, y-dy1); and the coordinates of the fourth center point of the second ranging printed line in the detection image are (x-dx2, y-dy2).

[0098] When multiple auxiliary positioning kernels are marked in the template image, there are multiple third center point coordinates. Based on these multiple third center point coordinates and multiple relative positional relationships, the coordinates of multiple fourth center points corresponding to multiple ranging printed lines in the detection image are determined. Taking two auxiliary positioning kernels marked in the template image as an example, let the coordinates of the first third center point be (x1, y1) and the coordinates of the second third center point be (x2, y2). Combining the relative positional relationships dx3, dy3, dx4, and dy4 between the two auxiliary positioning kernels and the two ranging printed lines in the template image, the coordinates of the fourth center point of the first ranging printed line in the detection image are (x1-dx3, y1-dy3), and the coordinates of the fourth center point of the second ranging printed line in the detection image are (x2-dx4, y2-dy4).

[0099] Furthermore, multiple second printing areas can be determined based on the width and height parameters of the first printing area and the coordinates of multiple fourth center points. It should be noted that the first printing area can be drawn by the user on the human-computer interface based on the location of the distance measuring printing line. It is necessary to ensure that the distance measuring printing line is completely within the first printing area; therefore, the width and height parameters of the multiple first printing areas may be different. For example, the width parameter of the first printing area corresponding to the first distance measuring printing line is w1, and the height parameter is h1; the width parameter of the first printing area corresponding to the second distance measuring printing line is w2, and the height parameter is h2. Based on the width and height parameters of the two first printing areas, and using the coordinates of the corresponding two fourth center points as centers, two corresponding second printing areas can be determined.

[0100] Please see Figure 2 and 12 In some embodiments, the second position includes the coordinates of a fifth center point. Determining the relative distance (i.e., 040) between multiple ranging printed lines based on multiple second positions includes:

[0101] 041: Determine the relative distance between multiple distance measurement printing lines based on the coordinates of multiple fifth center points.

[0102] Specifically, after determining the second position of the distance measuring printed line, the coordinates of the center point of the second position are calculated to obtain the coordinates of the fifth center point. For example, if the center line of the distance measuring printed line is extracted and taken as the second position of the distance measuring printed line, the coordinates of the center point of this center line are calculated as the coordinates of the fifth center point. For multiple second positions, multiple fifth center point coordinates can be calculated. The distance between the multiple fifth center point coordinates is then calculated, and this distance is the relative distance between the multiple distance measuring printed lines.

[0103] Please see Figure 13 The distance measuring device 100 of this application embodiment is applied to a battery cell, on which densely printed lines are formed. The distance measuring device 100 includes an acquisition module 10 and a determination module 20. The acquisition module 10 is used to acquire the relative positional relationship between an auxiliary positioning core and a plurality of distance measuring printed lines in a template image of the battery cell, wherein the auxiliary positioning core is a identifiable feature object in the template image, and the distance measuring printed lines are printed lines used for distance measurement among the densely printed lines. The acquisition module 10 is also used to acquire a first position of the auxiliary positioning core in a detection image of the battery cell. The determination module 20 is used to determine a plurality of second positions corresponding to the plurality of distance measuring printed lines in the detection image based on the first position and the relative positional relationship. The determination module 20 is also used to determine the relative distance between the plurality of distance measuring printed lines based on the plurality of second positions.

[0104] In some implementations, the acquisition module 10 is specifically used to select a template image; mark the third position of the auxiliary positioning core in the template image; mark multiple first printing areas where multiple ranging printing lines are located in the template image; and determine the relative positional relationship based on the third position and the multiple first printing areas.

[0105] In some implementations, the third position includes the coordinates of a first center point, and the first printing area has the coordinates of a second center point. The acquisition module 10 is specifically used to calculate the relative positional relationship based on the first and second center point coordinates.

[0106] In some implementations, the determining module 20 is specifically used to determine multiple second printing areas where multiple ranging printing lines in the detection image are located based on the first position and the relative positional relationship; and to extract multiple ranging printing lines from the multiple second printing areas to obtain multiple second positions.

[0107] In some implementations, the first position includes the coordinates of a third center point, and the first printing area has width and height parameters. The determining module 20 is specifically used to determine the coordinates of multiple fourth center points corresponding to multiple ranging printing lines in the detection image based on the coordinates of the third center point and their relative positional relationships; and to determine multiple second printing areas based on the width parameter, height parameter, and the coordinates of the multiple fourth center points.

[0108] In some implementations, the acquisition module 10 is specifically used to search and locate in the detection image based on the auxiliary positioning kernel in the template image to determine the first position.

[0109] In some implementations, the second position includes the coordinates of a fifth center point. The determining module 20 is specifically configured to determine the relative distances between multiple ranging printed lines based on the coordinates of the multiple fifth center points.

[0110] It should be noted that the explanation of the distance measurement method in the foregoing embodiments also applies to the distance measurement device 100 of the embodiments of this application, and will not be elaborated here.

[0111] Please see Figure 14 This application also provides a distance measurement system 200, which includes one or more processors 210 and a memory 220. The memory 220 stores a computer program, and when the computer program is executed by the processor 210, it implements the distance measurement method of any of the above embodiments.

[0112] For example, when the computer program is executed by the processor 210, the following distance measurement method is implemented:

[0113] 010: Obtain the relative positional relationship between the auxiliary positioning kernel and multiple ranging printed lines in the template image of the battery cell. The auxiliary positioning kernel is a distinctive feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines.

[0114] 020: Obtain the first position of the auxiliary localization kernel in the detection image of the battery cell;

[0115] 030: Determine multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship;

[0116] 040: Determine the relative distance between multiple ranging printed lines based on multiple second positions.

[0117] For example, when the computer program is executed by the processor 210, the following distance measurement method is implemented:

[0118] 011: Select template image;

[0119] 012: Mark the third position of the auxiliary localization kernel in the template image;

[0120] 013: Mark multiple first printing areas containing multiple ranging printing lines in the template image;

[0121] 014: Determine the relative positional relationship based on the third position and multiple first printing areas.

[0122] It should be noted that the explanations of the distance measurement method and distance measurement device 100 in the foregoing embodiments also apply to the distance measurement system 200 of the embodiments of this application, and will not be elaborated here.

[0123] Please see Figure 15 This application also provides a computer-readable storage medium 300 storing a computer program 310, which, when executed by a processor 320, implements the distance measurement method of any of the above embodiments.

[0124] For example, when program 310 is executed by processor 320, the following distance measurement method is implemented:

[0125] 010: Obtain the relative positional relationship between the auxiliary positioning kernel and multiple ranging printed lines in the template image of the battery cell. The auxiliary positioning kernel is a distinctive feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines.

[0126] 020: Obtain the first position of the auxiliary localization kernel in the detection image of the battery cell;

[0127] 030: Determine multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship;

[0128] 040: Determine the relative distance between multiple ranging printed lines based on multiple second positions.

[0129] For example, when program 310 is executed by processor 320, the following distance measurement method is implemented:

[0130] 011: Select template image;

[0131] 012: Mark the third position of the auxiliary localization kernel in the template image;

[0132] 013: Mark multiple first printing areas containing multiple ranging printing lines in the template image;

[0133] 014: Determine the relative positional relationship based on the third position and multiple first printing areas.

[0134] It should be noted that the explanations of the distance measurement method and distance measurement device 100 in the foregoing embodiments also apply to the computer-readable storage medium 300 of the embodiments of this application, and will not be elaborated here.

[0135] In summary, the distance measurement method, distance measurement device 100, distance measurement system 200, and computer-readable storage medium 300 of this application, with the aid of an auxiliary positioning kernel, determine multiple second positions corresponding to multiple distance measuring printed lines in the detection image by detecting the first position of the auxiliary positioning kernel in the image and the relative positional relationship between the auxiliary positioning kernel and the distance measuring printed lines in the template image, thereby determining the relative distance between the multiple distance measuring printed lines. Thus, even when the placement position of the battery cell changes, the distance measuring printed lines can be accurately located and measured, effectively preventing missed detections and false detections.

[0136] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0137] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.

[0138] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, a computer-readable storage medium can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable storage medium could be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0139] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0140] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it includes one or a combination of the steps of the method embodiments. Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.

[0141] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application, the scope of which is defined by the claims and their equivalents.

Claims

1. A distance measurement method applied to a battery piece, characterized in that, The battery cell has densely printed lines, and the distance measurement method includes: The relative positional relationship between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell is obtained, wherein the auxiliary positioning core is a identifiable feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines. Obtain the first position of the auxiliary positioning core in the detection image of the battery cell; Based on the first position and the relative positional relationship, determine multiple second positions corresponding to the multiple ranging printed lines in the detection image; The relative distance between the plurality of distance measuring printed lines is determined based on the plurality of second positions; The process of obtaining the relative positional relationship between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell includes: Select the template image; Mark the third position of the auxiliary positioning core in the template image; Mark multiple first printing areas where multiple ranging printing lines are located in the template image; The relative positional relationship is determined based on the third position and the plurality of first printing areas; Determining multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship includes: Based on the first position and the relative positional relationship, determine the multiple second printing areas where the multiple ranging printing lines in the detection image are located; Multiple ranging printing lines are extracted from multiple second printing areas to obtain multiple second positions; The first position includes the coordinates of a third center point, and the first printing area has width and height parameters. Determining the multiple second printing areas where the multiple ranging printing lines in the detection image are located based on the first position and the relative positional relationship includes: Based on the coordinates of the third center point and the relative positional relationship, determine the coordinates of multiple fourth center points corresponding to the multiple ranging printed lines in the detection image; Multiple second printing areas are determined based on the width parameter, the height parameter, and the coordinates of multiple fourth center points.

2. The distance measuring method according to claim 1, characterized in that, The third position includes the coordinates of a first center point, and the first printing area has the coordinates of a second center point. Determining the relative positional relationship based on the third position and multiple first printing areas includes: The relative positional relationship is calculated based on the coordinates of the first center point and the coordinates of the second center point.

3. The distance measuring method according to claim 1, characterized in that, The step of obtaining the first position of the auxiliary positioning kernel in the detection image of the battery cell includes: The first position is determined by searching and locating the auxiliary positioning kernel in the template image within multiple detection images.

4. The distance measuring method according to claim 1, characterized by, The second position includes the coordinates of the fifth center point, and determining the relative distance between the plurality of distance measuring printed lines based on the plurality of second positions includes: The relative distance between the multiple distance measuring printed lines is determined based on the coordinates of the multiple fifth center points.

5. A distance measuring device applied to a battery piece, characterized in that, The distance measuring device is used to perform the distance measuring method according to any one of claims 1-4, wherein the battery cell has densely printed lines, and the distance measuring device includes: The acquisition module is used to acquire the relative positional relationship between the auxiliary positioning core and multiple ranging printed lines in the template image of the battery cell, wherein the auxiliary positioning core is a identifiable feature object in the template image, and the ranging printed lines are the printed lines used for ranging among the dense printed lines; The acquisition module is further configured to acquire the first position of the auxiliary positioning core in the detection image of the battery cell; The determining module is used to determine multiple second positions corresponding to multiple ranging printed lines in the detection image based on the first position and the relative positional relationship; The determining module is further configured to determine the relative distance between the plurality of distance measuring printed lines based on the plurality of second positions.

6. A distance measurement system, characterized in that, The distance measurement system includes one or more processors and a memory, the memory storing a computer program that, when executed by the processor, implements the distance measurement method according to any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the distance measurement method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Screen quality automatic detection method and system

    CN116465315A

  • Battery piece silk-screen printing appearance defect detection method and device and storage medium

    CN116642907A