A battery positive and negative electrode position identification method and system
By extracting slice data from battery images, using the maximum point set to search for the endpoint and the voting method for analysis, the automatic identification of the positive and negative electrodes of the battery is realized, solving the problem of low efficiency of manual labeling and improving the identification efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2026-03-31
AI Technical Summary
The lack of automated tools for identifying the positive and negative terminals of batteries in existing technologies leads to low efficiency in manual labeling.
By acquiring battery images, extracting slice data, using the set of maximum points as the starting point to search for the endpoint, and analyzing the endpoint coordinates through a voting method, the positive and negative terminals of the battery are automatically identified.
It improves the efficiency and accuracy of battery positive and negative terminal position identification, reduces the requirements for pre-identification results, and adapts to noisy battery images.
Smart Images

Figure CN117218185B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image recognition, and more specifically to a method and system for identifying the positive and negative terminals of a battery. Background Technology
[0002] Currently, because there is no universal automatic tool for identifying the positive and negative terminals of batteries, manual labeling is required to identify the positive and negative terminals of batteries. However, manual labeling is often inefficient. Therefore, there is an urgent need for a method to quickly and automatically identify the positive and negative terminals of batteries. Summary of the Invention
[0003] To address the aforementioned technical problems, this invention provides a method and system for identifying the positive and negative terminals of a battery.
[0004] Specifically, the technical solution of the present invention is as follows:
[0005] In a first aspect, the present invention provides a method for identifying the positive and negative terminals of a battery, comprising:
[0006] Capture battery images;
[0007] Several sets of slice data were extracted from the battery image;
[0008] Several sets of maximum points are extracted from several sets of slice data; wherein, the linear region formed by the maximum points in several sets of maximum points is the battery region.
[0009] Extract a preset number of the maximum value point set, and use each of the maximum value points in the preset number of the maximum value point set as a starting point to search for the endpoint corresponding to each starting point; the endpoint is the maximum value point that is farthest from the corresponding starting point.
[0010] By using a voting method, the coordinates of several endpoints are analyzed, and the coordinates of the endpoints that appear more than a preset threshold number of times are selected as the positive and negative terminals of the battery.
[0011] This method first extracts slice data from the battery image, obtains a set of maxima points from the slice data, takes each maxima point in the extracted set as the starting point, and searches for the maxima point farthest from the starting point as the ending point, obtaining multiple corresponding ending points, and then analyzes them to obtain the positions of the positive and negative electrodes of the battery.
[0012] In some methods for identifying the positive and negative terminals of a battery, the step of extracting several sets of slice data from the battery image and extracting several corresponding sets of maximum points from the several sets of slice data includes:
[0013] Mark auxiliary lines on the battery image;
[0014] Repeatedly move the auxiliary line in the vertical direction, and each time the auxiliary line is moved, a set of slice data is obtained along the auxiliary line, and a set of maximum points is obtained from the slice data; until the number of times the auxiliary line is moved reaches a preset number, several sets of maximum points are finally obtained.
[0015] This method uses auxiliary lines to find the maximum points and mark the battery area. It has low requirements for the accuracy of the auxiliary lines, which only need to be approximately perpendicular to the battery lines. There are no restrictions on their specific positions or angles, which can greatly improve the marking efficiency.
[0016] In some battery positive and negative electrode position identification methods, the step of extracting a preset number of maximum value point sets, using each of the preset number of maximum value point sets as a starting point for searching, and obtaining the endpoint corresponding to each starting point, is characterized by including:
[0017] Randomly select a preset number of sets of the maximum points from several sets of the maximum points;
[0018] The search is performed starting from each of the maximum points in the preset number of maximum points set.
[0019] Search for the maximum points adjacent to the maximum point, and perform a recursive search starting from the maximum points adjacent to the maximum point.
[0020] Continue until the distance between the maximum point obtained by the recursive search and the maximum point is the farthest distance, and then take the maximum point obtained by the recursive search as the endpoint;
[0021] Repeat the aforementioned steps, using each of the maximum points in the preset number of maximum point sets as the starting point for searching, to obtain the endpoint corresponding to each maximum point.
[0022] This implementation method addresses the issue that noise in the battery image causes line breaks in linear regions, leading to errors in the endpoint coordinates. Therefore, it searches for multiple endpoints starting from different maxima points and analyzes these endpoints to obtain the positive and negative electrode positions of the battery. This improves the accuracy of the battery's positive and negative electrode position search and reduces the requirements for the results of the preceding recognition.
[0023] In some battery positive and negative electrode location identification methods, the method of analyzing the coordinates of several endpoints using a voting method and selecting the endpoint coordinates that appear more than a preset threshold number of times as the positive and negative electrode locations of the battery is characterized by including:
[0024] The number of endpoints with the same coordinates is recorded as the number of times the endpoint coordinates appear;
[0025] Count the number of occurrences of each of the stated endpoint coordinates;
[0026] The coordinates of the endpoints that appear more than the preset threshold number of times are taken as the positive and negative terminals of the battery.
[0027] In some implementation methods for identifying the positive and negative terminals of a battery, after analyzing the coordinates of several endpoints using a voting method and selecting the endpoint coordinates that appear more than a preset threshold number of times as the positive and negative terminals of the battery, the method further includes:
[0028] Save the annotation results, which include: coordinates of auxiliary lines, mask, and point data; the point data includes the pixel values and coordinates of several maximum points.
[0029] Secondly, the present invention provides a battery positive and negative electrode position identification system, comprising:
[0030] The acquisition unit is used to acquire battery images and send the battery images to the area acquisition unit.
[0031] The region acquisition unit is used to extract several sets of slice data from the battery image; extract several sets of corresponding maximum points from the several sets of slice data; wherein, the linear region formed by the maximum points in the several sets of maximum points is the battery region; and send the maximum point set to the point set processing unit.
[0032] The point set processing unit is used to extract a preset number of maximum point sets, use each maximum point in the preset number of maximum point sets as a starting point for searching, and obtain the endpoint corresponding to each starting point; the endpoint is the maximum point that is farthest from the corresponding starting point; and send a number of endpoints to the battery positive and negative electrode identification unit.
[0033] The battery positive and negative electrode identification unit is used to analyze the coordinates of several endpoints by means of a voting method, and select the endpoint coordinates that appear more than a preset threshold number of times as the positive and negative electrode positions of the battery.
[0034] Implementation methods of some battery positive and negative terminal position identification systems
[0035] The region acquisition unit is also used to mark auxiliary lines on the battery image; repeatedly move the auxiliary lines along the vertical direction of the auxiliary lines, and each time the auxiliary lines are moved, a set of slice data is obtained along the auxiliary lines, and a set of maximum points is obtained from the slice data; until the number of times the auxiliary lines are moved reaches a preset number, and finally a number of sets of maximum points are obtained.
[0036] Implementation methods of some battery positive and negative terminal position identification systems
[0037] The point set processing unit is further configured to randomly extract a preset number of maximum point sets from a plurality of maximum point sets; use each maximum point in the preset number of maximum point sets as a starting point for searching; search for maximum points adjacent to the maximum point, and recursively search using the maximum points adjacent to the maximum point as starting points; until the distance between the maximum point obtained by the recursive search and the maximum point is the farthest distance, and use the maximum point obtained by the recursive search as the endpoint; repeat the aforementioned steps, using each maximum point in the preset number of maximum point sets as a starting point for searching, to obtain the endpoint corresponding to each maximum point.
[0038] Implementation methods of some battery positive and negative terminal position identification systems
[0039] The battery positive and negative electrode identification unit is further configured to record the number of several endpoints with the same coordinates as the number of occurrences of the endpoint coordinates; count the number of occurrences of each endpoint coordinate; and use the endpoint coordinates whose number of occurrences exceeds the preset number threshold as the positive and negative electrode positions of the battery.
[0040] Some implementation methods for battery positive and negative terminal position identification systems also include: a storage unit,
[0041] The storage unit is used to store the annotation results, which include: coordinates of auxiliary lines, mask, and point data; the point data includes the pixel values and coordinates of several maximum points.
[0042] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0043] 1. The present invention first extracts slice data from the battery image, obtains a set of maximum points through the slice data, takes the maximum points as the starting point, searches for the maximum point farthest from the starting point as the ending point, obtains multiple corresponding ending points, and analyzes them to obtain the positive and negative electrode positions of the battery.
[0044] 2. This invention provides a method for obtaining battery regions, which are composed of maximum points obtained based on moving auxiliary lines. Compared to completely manual annotation, this method reduces workload and eliminates the need for manually and precisely marking the target area; only an auxiliary line needs to be drawn. Furthermore, the accuracy requirements for the auxiliary line are low; it only needs to be approximately perpendicular to the battery lines, without limiting its specific position or angle, which greatly improves annotation efficiency.
[0045] 3. In this invention, noise in the battery image causes the lines in the linear region to break, which can lead to errors in the endpoint coordinates. Therefore, multiple endpoints are searched starting from different maxima points, and the positive and negative positions of the battery are obtained by analyzing the multiple endpoints. This improves the accuracy of searching for the positive and negative positions of the battery and reduces the requirements for the results of the previous recognition. Attached Figure Description
[0046] The preferred embodiments will now be described in a clear and easy-to-understand manner, in conjunction with the accompanying drawings, to further explain the above-mentioned characteristics, technical features, advantages, and implementation methods of the present invention.
[0047] Figure 1 This is a flowchart of a battery positive and negative electrode position identification method provided by the present invention;
[0048] Figure 2 This is a flowchart of a battery positive and negative electrode position identification method provided by the present invention;
[0049] Figure 3 This is a flowchart of a battery positive and negative electrode position identification method provided by the present invention;
[0050] Figure 4 This is a system block diagram of a battery positive and negative terminal position identification system provided by the present invention.
[0051] The following are the definitions of the numbers in the attached figures: 10--Acquisition unit; 20--Region acquisition unit; 30--Point set processing unit; 40--Battery positive and negative terminal identification unit; 50--Storage unit. Detailed Implementation
[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings and other implementation methods can be obtained based on these drawings without any creative effort.
[0053] To keep the drawings concise, each figure only schematically shows the parts relevant to the invention, and these do not represent the actual structure of the product. Furthermore, to facilitate understanding, in some figures, only one of components with the same structure or function is schematically depicted, or only one is labeled. In this document, "one" not only means "only one," but can also mean "more than one."
[0054] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0055] In this document, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0056] Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0057] In one embodiment, refer to the appendix to the specification. Figure 1 The present invention provides a method for identifying the positive and negative terminals of a battery, comprising:
[0058] S110: Acquire battery image. Pre-identification processing of the battery image yields the battery ROI region within the image.
[0059] S120 extracts several sets of slice data from the battery image.
[0060] In step S120, the slice data is obtained by slicing the battery image using auxiliary lines.
[0061] S130, extract several sets of corresponding maxima from several sets of slice data; among them, the linear region formed by the maxima in the several sets of maxima is the battery region.
[0062] In step S130, the battery region is the area of the battery in the battery image, which means that the background region in the battery image has been removed.
[0063] S140, extract a preset number of maximum value points set, use each maximum value point in the preset number of maximum value points set as a starting point to search, and obtain the endpoint corresponding to each starting point; the endpoint is the maximum value point that is farthest from the corresponding starting point.
[0064] In step S140, a search is performed starting from each of the extracted maxima points in the set of maxima points to obtain the maxima point farthest from each maxima point, which is then used as the endpoint corresponding to each starting point. The maxima points between each starting point and its corresponding endpoint form a linear set of points, and the preset number of sets can be set according to actual needs.
[0065] S150 uses a voting method to analyze the coordinates of several endpoints and selects the endpoint coordinates that appear more than a preset threshold as the positive and negative pole positions of the battery.
[0066] In step S150, methods such as voting can be used to analyze the positions of the positive and negative electrodes of the battery from several endpoints. Determining the positions of the positive and negative electrodes from multiple endpoints reduces the requirements for the previous recognition results, can adapt to images with a certain degree of noise, and avoids the impact of battery image noise on endpoint errors and the positions of the positive and negative electrodes of the battery.
[0067] In this embodiment, slice data is first extracted from the battery image. A set of maxima points is obtained from the slice data. Each maxima point in the extracted set of maxima points is taken as the starting point, and the maxima point farthest from the starting point is searched as the ending point. Multiple corresponding ending points are obtained, and the positions of the positive and negative electrodes of the battery are analyzed from them.
[0068] This embodiment is based on the foregoing embodiments, and refers to the appendix to the specification. Figure 2 A method for identifying the positive and negative terminals of a battery is provided, comprising steps S120 and S130, including:
[0069] S121, Mark auxiliary lines on the battery image; the auxiliary lines are only used to mark the starting point of the image slices, and they can be approximately perpendicular to the battery lines, without limiting their specific position or angle.
[0070] S122, repeatedly move the auxiliary line in the vertical direction. Each time the auxiliary line is moved, a set of slice data is obtained along the auxiliary line, and a set of maximum points is obtained from the slice data. This continues until the number of times the auxiliary line is moved reaches the preset number, and finally several sets of maximum points are obtained.
[0071] This embodiment provides a method for obtaining battery regions, which are composed of maximum points obtained based on moving auxiliary lines. Compared to completely manual annotation, this method reduces workload and eliminates the need for manually and precisely annotating the target area; only an auxiliary line needs to be drawn. Furthermore, the accuracy requirements for the auxiliary line are low; it only needs to be approximately perpendicular to the battery lines, without limiting its specific position or angle, which can greatly improve annotation efficiency.
[0072] This embodiment is based on the foregoing embodiments, and refers to the appendix to the specification. Figure 3 A method for identifying the positive and negative terminals of a battery is provided, step S140, including:
[0073] S141, randomly select a preset number of maximum point sets from several maximum point sets;
[0074] S142, use each maximum point in the preset set of maximum points as the starting point for the search;
[0075] S143, search for the maximum points adjacent to the maximum point, and perform a recursive search starting from the maximum points adjacent to the maximum point.
[0076] S144, until the distance between the maximum points obtained by the recursive search is the farthest distance, and take the maximum point obtained by the recursive search as the endpoint;
[0077] S145, Repeat steps S142 to S144, using each of the maximum points in the preset number of maximum point sets as the starting point for searching, to obtain the endpoint corresponding to each maximum point.
[0078] This embodiment uses a recursive search method, taking the maximum point furthest from each maximum point as the endpoint. Due to image quality issues, such as excessive noise, the linear regions constituting the battery area may exhibit broken lines. Therefore, the result of a single set of maximum points cannot be used as the sole criterion; it is necessary to repeatedly search for the endpoint corresponding to each maximum point in order to select the precise positive and negative battery locations from several endpoints.
[0079] This embodiment provides a method for identifying the positive and negative terminals of a battery, based on the aforementioned embodiments. Step S150 includes:
[0080] The number of endpoints with the same coordinates is recorded as the number of times the endpoint coordinates appear;
[0081] Count the number of times each endpoint coordinate appears;
[0082] The coordinates of the endpoints where the number of occurrences exceeds the preset threshold are taken as the positive and negative terminals of the battery.
[0083] This embodiment uses a voting method to determine the endpoints corresponding to the positive and negative terminals of the battery. When there are N endpoints with the same coordinates, the voting method records the number of times each endpoint's coordinates appear (N times). The endpoints whose frequency exceeds a preset threshold are identified as the positive and negative terminals of the battery. This embodiment determines the battery's positive and negative terminals from multiple endpoints using a voting method, reducing the requirements for the pre-recognition results and adapting to battery images with some noise. Ideally, each set of endpoints is identical, and only the first set needs to be selected. However, in reality, due to image quality issues, battery lines may be broken. Therefore, most endpoints in each set are the same, with a small portion differing due to image noise. Thus, a voting method is needed to select points with high overlap and exclude points with low overlap.
[0084] For example, the ideal endpoint would be as follows:
[0085] A set of endpoints A[(1,1),(2,2),(3,3),(4,4),(5,5)],
[0086] A set of endpoints B[(1,1),(2,2),(3,3),(4,4),(5,5)],
[0087] One set of endpoints is C[(1,1),(2,2),(3,3),(4,4),(5,5)], and the three sets of endpoints are exactly the same.
[0088] The actual endpoint obtained is as follows:
[0089] A set of endpoints A[(1,1),(2,2),(3,3),(4,4),(5,5)],
[0090] A set of endpoints B[(1,2),(2,1),(3,3),(4,4),(5,5)],
[0091] A set of endpoints C[(1,1),(2,2),(3,2),(4,3),(5,5)] contains three sets of endpoints that are not entirely identical. Points (1,1), (2,2), (3,3), (4,4), and (5,5) appear more than twice, while points (1,2), (2,1), (3,2), and (4,3) appear only once. A preset threshold of 2 is set. Using a voting method, points appearing less than the preset threshold are excluded, and points appearing more than the preset threshold are retained as the positive and negative coordinates of the battery.
[0092] This embodiment provides a method for identifying the positive and negative terminals of a battery, based on the aforementioned embodiments. After step S150, it further includes:
[0093] Save the annotation results, which include: coordinates of auxiliary lines, mask, and point data; the point data includes the pixel values and coordinates of several maxima.
[0094] In one embodiment, refer to the appendix to the specification. Figure 4 The present invention provides a battery positive and negative terminal position identification system, comprising:
[0095] Acquisition unit 10 is used to acquire battery images and send the battery images to area acquisition unit 20;
[0096] The region acquisition unit 20 is used to extract several sets of slice data from the battery image; extract several sets of corresponding maximum points from the several sets of slice data; wherein, the linear region formed by the maximum points in the several sets of maximum points is the battery region; and send the maximum point set to the point set processing unit 30.
[0097] The point set processing unit 30 is used to extract a preset number of maximum point sets, and use each maximum point in the preset number of maximum point sets as a starting point to search for the endpoint corresponding to each starting point; the endpoint is the maximum point that is farthest from the corresponding starting point; and send several endpoints to the battery positive and negative electrode identification unit 40.
[0098] The battery positive and negative electrode identification unit 40 is used to analyze the coordinates of several endpoints by means of a voting method, and select the endpoint coordinates that appear more than a preset threshold number of times as the positive and negative electrode positions of the battery.
[0099] In this embodiment, the region acquisition unit 20 extracts slice data from the battery image, obtains a set of maximum points through the slice data, and the linear region composed of the set of maximum points constitutes the battery region; the point set processing unit 30 takes the maximum points as the starting point and searches for the maximum point farthest from the starting point as the ending point to obtain multiple corresponding ending points; the battery positive and negative electrode identification unit 40 then analyzes and obtains the positive and negative electrode positions of the battery through a voting method.
[0100] This embodiment, based on the foregoing embodiments, provides a battery positive and negative terminal position identification system.
[0101] The region acquisition unit 20 is also used to mark auxiliary lines on the battery image; repeatedly move the auxiliary lines along the vertical direction of the auxiliary lines, and each time the auxiliary lines are moved, a set of slice data is obtained along the auxiliary lines, and a set of maximum points is obtained from the slice data; until the number of times the auxiliary lines are moved reaches the preset number, several sets of maximum points are finally obtained.
[0102] In this embodiment, the battery region is composed of maximum points obtained based on moving guide lines. Compared to completely manual annotation, this reduces workload and eliminates the need for manually and precisely marking the target area; only an guide line needs to be drawn. Furthermore, the accuracy requirements for the guide line are low; it only needs to be approximately perpendicular to the battery line, without limiting its specific position or angle, which greatly improves annotation efficiency.
[0103] This embodiment, based on the foregoing embodiments, provides a battery positive and negative terminal position identification system.
[0104] The point set processing unit 30 is further configured to randomly extract a preset number of maximum point sets from several maximum point sets; use each maximum point in the preset number of maximum point sets as a starting point for searching; search for maximum points adjacent to the maximum point, and recursively search using the maximum points adjacent to the maximum point as starting points; until the distance between the maximum points obtained by the recursive search is the farthest distance, and use the maximum points obtained by the recursive search as the endpoint; repeat the aforementioned steps, using each maximum point in the preset number of maximum point sets as a starting point for searching, to obtain the endpoint corresponding to each maximum point.
[0105] In this embodiment, the point set processing unit 30 uses a recursive search method to take the maximum point farthest from each maximum point as the endpoint. Due to image quality issues, such as excessive noise, the linear regions constituting the battery area may exhibit broken lines. Therefore, the result of a single set of maximum points cannot be taken as the standard. Thus, it is necessary to repeatedly search for the endpoint corresponding to each maximum point, and then evaluate several endpoints to analyze and obtain the positive and negative electrode positions of the battery.
[0106] This embodiment, based on the foregoing embodiments, provides a battery positive and negative terminal position identification system.
[0107] The battery positive and negative terminal identification unit 40 is also used to record the number of endpoints with the same coordinates as the number of occurrences of the endpoint coordinates; count the number of occurrences of each endpoint coordinate; and take the endpoint coordinates that have an occurrence count exceeding a preset threshold as the positive and negative terminal positions of the battery.
[0108] In this embodiment, the battery positive and negative electrode identification unit 40 can determine the endpoints corresponding to the positive and negative electrode positions of the battery through a voting method. The voting method treats endpoints with the same coordinates as the same point, counts the number of each endpoint, and the endpoints whose number exceeds a preset threshold are the positive and negative electrode positions of the battery.
[0109] This embodiment, based on the foregoing embodiments, provides a battery positive and negative terminal position identification system, and further includes: a storage unit 50.
[0110] Storage unit 50 is used to store the annotation results, which include: coordinates of auxiliary lines, mask, and point data; the point data includes the pixel values and coordinates of several maxima.
[0111] It should be noted that the above embodiments can be freely combined as needed. The above are merely preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for recognizing positive and negative electrode positions of a battery, characterized by, The method comprises the following steps: acquiring a battery image; extracting a plurality of sets of slice data from the battery image; extracting a plurality of sets of maximum value point sets from the plurality of sets of slice data; wherein a linear region formed by maximum value points in the plurality of sets of maximum value point sets is a battery region; extracting a preset number of sets of maximum value point sets, taking each maximum value point in the preset number of sets of maximum value point sets as a starting point to search, and obtaining a terminal point corresponding to each starting point; the terminal point is a maximum value point farthest from the corresponding starting point; analyzing the coordinates of the plurality of terminal points by voting, and selecting a terminal point coordinate with an occurrence number greater than a preset number threshold as a positive and negative electrode position of the battery; wherein the extracting a plurality of sets of slice data from the battery image and the extracting a plurality of sets of maximum value point sets from the plurality of sets of slice data comprise: labeling an auxiliary line on the battery image; repeatedly moving the auxiliary line along the vertical direction of the auxiliary line, obtaining a set of slice data along the auxiliary line each time the auxiliary line is moved, and obtaining a set of maximum value points from the slice data; until the number of times of moving the auxiliary line reaches a preset number, and finally obtaining a plurality of sets of maximum value point sets; the extracting a preset number of sets of maximum value point sets, taking each maximum value point in the preset number of sets of maximum value point sets as a starting point to search, and obtaining a terminal point corresponding to each starting point, characterized in that it comprises: randomly extracting a preset number of sets of maximum value point sets from the plurality of sets of maximum value point sets; taking each maximum value point in the preset number of sets of maximum value point sets as a starting point to search; searching for a maximum value point adjacent to the maximum value point, and recursively searching from the maximum value point adjacent to the maximum value point as a starting point; until the distance between the maximum value point obtained by recursive search and the maximum value point is the farthest distance, and the maximum value point obtained by recursive search is taken as a terminal point; repeating the preceding steps, taking each maximum value point in the preset number of sets of maximum value point sets as a starting point to search, and obtaining a terminal point corresponding to each maximum value point.
2. The method of claim 1, wherein The analyzing the coordinates of the plurality of terminal points by voting, and selecting a terminal point coordinate with an occurrence number greater than a preset number threshold as a positive and negative electrode position of the battery, characterized in that it comprises: counting the number of terminal points with the same coordinates as the occurrence number of the terminal point coordinates; counting the occurrence number of each terminal point coordinate; taking the terminal point coordinate with an occurrence number greater than the preset number threshold as the positive and negative electrode position of the battery.
3. The method of claim 1, wherein the method further comprises: After the analyzing the coordinates of the plurality of terminal points by voting, and selecting a terminal point coordinate with an occurrence number greater than a preset number threshold as a positive and negative electrode position of the battery, the method further comprises: saving a labeling result, the labeling result comprising: coordinates of the auxiliary line, a mask, and point data; wherein the point data comprises: pixel values and coordinates of the plurality of maximum value points.
4. A battery positive and negative electrode position recognition system, characterized by, The method comprises the following steps: an acquisition unit is configured to acquire a battery image; the battery image is sent to a region acquisition unit; the region acquisition unit is configured to extract a plurality of sets of slice data from the battery image; A plurality of maximum value point sets are extracted from a plurality of groups of the slice data; wherein a linear region composed of maximum value points in the plurality of maximum value point sets is a battery region; and the maximum value point sets are sent to a point set processing unit; The point set processing unit is configured to extract a preset number of groups of the maximum value point sets, search for a terminal point corresponding to each of the maximum value points in the preset number of groups of the maximum value point sets, taking each of the maximum value points as a starting point, the terminal point being a maximum value point farthest from the corresponding starting point, and send a plurality of terminal points to a battery positive and negative electrode identification unit; The battery positive and negative electrode identification unit is configured to analyze coordinates of the plurality of terminal points by a voting method, select a terminal point coordinate with an occurrence number exceeding a preset number threshold as a positive and negative electrode position of the battery; The region acquisition unit is further configured to mark an auxiliary line on the battery image, repeatedly move the auxiliary line in a vertical direction of the auxiliary line, obtain a maximum value point set from slice data obtained along the auxiliary line each time the auxiliary line is moved, and obtain a plurality of maximum value point sets until a number of times of moving the auxiliary line reaches a preset number. The point set processing unit is further configured to randomly extract a preset number of groups of the maximum value point sets from the plurality of maximum value point sets, search for a terminal point corresponding to each of the maximum value points in the preset number of groups of the maximum value point sets, taking each of the maximum value points as a starting point, search for a maximum value point adjacent to the maximum value point, and recursively search for a maximum value point, taking the maximum value point adjacent to the maximum value point as a starting point, until a distance between the maximum value point obtained by recursive search and the maximum value point is a farthest distance, and taking the maximum value point obtained by recursive search as a terminal point, and repeatedly perform the foregoing steps, taking each of the maximum value points in the preset number of groups of the maximum value point sets as a starting point to search for a terminal point corresponding to each of the maximum value points.
5. The battery positive and negative electrode position identification system according to claim 4, wherein The battery positive and negative electrode identification unit is further configured to count a number of terminal points with the same coordinate as an occurrence number of the terminal point coordinate, count the occurrence number of each terminal point coordinate, and select a terminal point coordinate with an occurrence number exceeding a preset number threshold as a positive and negative electrode position of the battery.
6. The battery positive and negative electrode position recognition system according to claim 4, characterized by, Further comprising a storage unit, The storage unit is configured to save a marking result, the marking result including a coordinate of an auxiliary line, a mask, and point data, the point data including pixel values and coordinates of a plurality of maximum value points.
Citation Information
Patent Citations
Battery negative and positive electrode profile extraction method
CN106127793A
Quality detection method and system for laminated soft-package lithium battery
CN113654493A