Method, device and storage medium for determining flatness
By obtaining the three-dimensional model data of the surface to be measured by the battery core pole and automatically determining its planeness, the accuracy problem caused by manual participation in the three-coordinate measurement method is solved, and a higher measurement accuracy is achieved.
Patent Information
- Application Number
- CN202411853473.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-08
AI Technical Summary
In the three-coordinate measurement method, standard coordinate points need to be manually determined and participated in the measurement, resulting in low accuracy in measuring the planeness of the pole surface of the battery core.
By obtaining the first model data of the surface to be measured of the battery core pole, including the three-dimensional coordinates of the plurality of first triangular face sheets, a three-dimensional model of the surface to be measured is synthesized, and the first plane degree of the surface to be measured is determined based on these data, indicating the distance difference between the surface to be measured and the reference surface.
No manual participation in the measurement is required, which avoids manual measurement errors and improves the measurement accuracy of the surface plane of the battery core.
Smart Images

Figure CN119779199A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of measurement technology, and in particular to a method, device and storage medium for determining flatness. Background Art
[0002] With the development of science and technology, batteries are widely used in electric vehicles such as electric motorcycles and electric cars, as well as energy storage power systems such as hydropower, thermal power and solar power stations. The battery cell is the storage part of the battery. The battery pole on the battery cell is used to connect external conductors or other batteries in the battery pack to transfer electrical energy. The manufacturing accuracy of the battery pole affects the performance of the battery. Therefore, after the battery pole is milled, it is necessary to measure the flatness of the surface of the battery pole to evaluate the manufacturing accuracy of the battery pole.
[0003] In the related art, the three-coordinate measurement method can usually be used to measure the flatness of the surface of the battery cell pole. Specifically, the battery cell is fixed, and three coordinate points are taken on the surface to be measured of the battery cell pole using a three-coordinate measuring instrument. By comparing the differences between the three coordinate points and the standard coordinate points, the flatness of the surface to be measured of the battery cell pole is determined.
[0004] However, in the three-coordinate measurement method, it is necessary to manually determine the standard coordinate points and participate in the measurement, resulting in low accuracy in measuring the flatness of the surface of the battery cell pole. Summary of the invention
[0005] The present application provides a method, device and storage medium for determining flatness to solve the problem that in the three-coordinate measurement method, it is necessary to manually determine standard coordinate points and participate in the measurement, resulting in low accuracy in measuring the flatness of the surface of a battery cell pole, thereby achieving the purpose of improving the accuracy of measuring the flatness of the surface of a battery cell pole.
[0006] In a first aspect, the present application provides a method for determining flatness, comprising:
[0007] Acquire first model data of a surface to be measured of a cell pole, wherein the first model data includes three-dimensional coordinates of a plurality of first triangular facets, and the plurality of first triangular facets are assembled to form a three-dimensional model of the surface to be measured;
[0008] A first flatness of the surface to be measured is determined according to the first model data, where the first flatness is used to indicate a distance difference between the surface to be measured and a reference surface.
[0009] Through the method provided in the first aspect, the first model data of the surface to be measured of the battery cell pole is obtained, and the first model data includes the three-dimensional coordinates of multiple first triangular facets, and the multiple first triangular facets are combined to form a three-dimensional model of the surface to be measured, so that the surface to be measured can be divided into a surface composed of multiple triangular facets. According to the three-dimensional coordinates of the first triangular facets, the positions of various parts of the surface to be measured in space can be quickly and accurately obtained through the first model data. According to the first model data, the first flatness of the surface to be measured is determined, and the first flatness is used to indicate the distance difference between the surface to be measured and the reference surface, so that the gap between the surface to be measured and the reference surface can be determined according to the position of the surface to be measured in space and the three-dimensional coordinates of the triangular facets, and the flatness of the surface to be measured can be obtained. No manual participation in the measurement is required, and manual measurement errors are avoided, thereby improving the accuracy of determining the flatness.
[0010] In a possible design, the step of obtaining first model data of a surface to be measured of a battery cell pole includes:
[0011] Performing three-dimensional modeling on the battery core to obtain a stereolithography STL file, wherein the STL file includes three-dimensional coordinates of a plurality of second triangular facets, and the second triangular facets are assembled to form a three-dimensional model of the battery core;
[0012] The three-dimensional coordinates of the first triangular facet belonging to the surface to be measured are extracted from the STL file to obtain the first model data.
[0013] In a possible design, determining the first flatness of the surface to be measured according to the first model data includes:
[0014] Determine, according to the three-dimensional coordinates of the plurality of first triangular facets, a first normal vector corresponding to each of the plurality of first triangular facets;
[0015] A first flatness of the surface to be measured is determined according to the plurality of first normal vectors.
[0016] In a possible design, determining the first flatness of the surface to be measured according to the plurality of first normal vectors includes:
[0017] Calculating a second normal vector of the reference surface according to the plurality of first normal vectors;
[0018] Calculate the differences between a plurality of the first normal vectors and the second normal vector to obtain a plurality of difference vectors;
[0019] Calculate the L2 norm of each difference vector respectively to obtain multiple second flatnesses;
[0020] The largest flatness among the plurality of second flatnesses is determined as the first flatness.
[0021] In a possible design, calculating the second normal vector of the reference surface according to the plurality of the first normal vectors includes:
[0022] Calculate an average normal vector of the plurality of first normal vectors;
[0023] The average normal vector is determined as the second normal vector.
[0024] In a possible design, calculating the second normal vector of the reference surface according to the plurality of the first normal vectors includes:
[0025] Calculate the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component of the plurality of first normal vectors respectively;
[0026] A vector consisting of the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component is determined as the second normal vector.
[0027] In a second aspect, the present application provides a device for determining flatness, comprising: a module for executing the method in the first aspect and any possible design of the first aspect.
[0028] In a third aspect, the present application provides an electronic device, including: a processor;
[0029] The processor is used to execute the computer executable program or instructions in the memory, so that the electronic device executes the method in the first aspect and any possible design of the first aspect.
[0030] In a fourth aspect, the present application provides an electronic device comprising: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes the method in the first aspect and any possible design of the first aspect.
[0031] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor in an electronic device, the computer program implements the method in the first aspect and any possible design of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1A schematic flow chart of a method for determining flatness provided in one embodiment of the present application.
[0034] Figure 2 A schematic diagram of a three-dimensional model of a battery cell pole provided in one embodiment of the present application.
[0035] Figure 3 A schematic flow chart of a method for determining flatness provided in one embodiment of the present application.
[0036] Figure 4 A schematic flow chart of a method for determining a first flatness of a surface to be measured provided in one embodiment of the present application.
[0037] Figure 5 A schematic diagram of a first normal vector provided in accordance with an embodiment of the present application.
[0038] Figure 6 A schematic flow chart of a method for determining a first flatness of a surface to be measured provided in one embodiment of the present application.
[0039] Figure 7 A schematic diagram of the structure of a device for determining flatness provided in one embodiment of the present application.
[0040] Figure 8 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0041] Fig. 9 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0042] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0043] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.
[0044] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0045] Exemplarily, the present application provides a method, device, electronic device, computer-readable storage medium and computer program product for determining flatness, which can quickly and accurately determine the flatness of the surface to be measured of the battery cell pole by analyzing the first model data of the surface to be measured of the battery cell pole, according to the three-dimensional coordinates of the triangular facets that are assembled to form the surface to be measured, without manual measurement, thus avoiding manual measurement errors. It also further improves the efficiency of detecting the manufacturing accuracy of the battery cell pole, thereby adapting to standardized production.
[0046] The method for determining flatness may be performed by an electronic device, or may be performed by a device for determining flatness in an electronic device. The device for determining flatness may be implemented by a combination of software and / or hardware. For example, the device for determining flatness may be an application (APP), a web page, or a public account.
[0047] The electronic device may be a server, a desktop computer, a mobile phone, a tablet computer, a laptop computer, a wearable device, a vehicle-mounted device, or an augmented reality (AR) / virtual reality (VR) device, etc. In order to simplify the description, the embodiment of the present application is described by taking the flatness determination device as an example.
[0048] Next, combine Figures 1 to 6 , the method for determining flatness provided in an embodiment of the present application is described.
[0049] See also Figure 1 , Figure 1A schematic diagram of a method for determining flatness provided in one embodiment of the present application. Figure 1 As shown, the method includes:
[0050] S101, obtaining first model data of a surface to be tested of a battery cell pole.
[0051] Among them, the battery cell is the basic component unit of the battery, also known as a battery monomer or battery chip. The battery cell can convert the stored energy into electrical energy through internal chemical reactions, thereby generating electric current.
[0052] The battery pole is a metal column connected to the positive and negative electrodes of the battery. The battery pole can be milled from the battery as a whole, or the battery pole can be connected to the battery by welding.
[0053] The shapes of the battery cell poles include cylindrical, flat, and threaded shapes, etc. The flatness of the surface where the battery cell pole is connected to other conductors (such as wires) will affect the conductivity of the battery cell. Therefore, during the manufacturing process of the battery cell, the flatness of the surface of the battery cell pole needs to be evaluated.
[0054] The surface to be measured is a plane of the battery cell pole. For example, when the battery cell pole is a cylindrical pole, the surface to be measured can be the upper surface of the cylindrical pole.
[0055] Based on this, before evaluating the flatness of the surface of the battery cell pole, the battery cell can be three-dimensionally modeled, and the flatness determination device obtains a three-dimensional model of the battery cell composed of triangular facets, and obtains the first model data of the surface to be measured from the three-dimensional model of the battery cell, thereby evaluating the flatness of the surface to be measured.
[0056] The first model data includes three-dimensional coordinates of a plurality of first triangular facets, and the plurality of first triangular facets are combined to form a three-dimensional model of the surface to be measured.
[0057] A triangular face is a two-dimensional geometric figure consisting of three vertices and three edges. Each edge of a triangular face connects two vertices to form a closed triangle. Multiple adjacent triangular facets can be assembled into a model of a three-dimensional object (such as a battery cell pole).
[0058] See also Figure 2 , Figure 2 A schematic diagram of a three-dimensional model of a battery cell pole provided in one embodiment of the present application. Figure 2 In the figure, the cell pole is represented by a cylindrical shape, and the part where the cell pole is connected to the cell is not shown. The solid line represents the triangular face pieces that are assembled to form the upper surface of the cell pole, and the dotted line represents the triangular face pieces that are assembled to form the side surface of the cell pole. Figure 2As shown, the surface to be measured may be an upper surface composed of triangular facets represented by solid lines, that is, the plurality of first triangular facets may include Figure 2 The solid lines represent triangular patches.
[0059] The first model data includes the three-dimensional coordinates of a plurality of first triangular facets. For a first triangular facet, the three-dimensional coordinates of the first triangular facet include the three-dimensional coordinates of the three vertices belonging to the first triangular facet. Figure 2 As shown, the three-dimensional coordinates of the first triangle A include vertex i A , vertex j A and vertex k A The three-dimensional coordinates of .
[0060] The three-dimensional coordinates of the first triangular facet may be coordinates based on a first coordinate system. The first coordinate system is, for example, a three-dimensional rectangular coordinate system with a point on the three-dimensional model of the battery cell pole as the origin, a direction parallel to a surface of the battery cell pole as the x-axis, a direction perpendicular to the surface as the y-axis, and a direction perpendicular to both the x-axis and the y-axis as the z-axis. Figure 2 As shown, a vertex i of the first triangle A A The three-dimensional coordinates of can be expressed as (x iA ,y iA , z iA ).
[0061] A plurality of first triangular facets are assembled to form a three-dimensional model of the surface to be measured, and the vertices of each first triangular facet are points on the surface to be measured. Therefore, the first model data can also be understood as a set of three-dimensional coordinates of multiple points on the surface to be measured.
[0062] For example, the plurality of first triangular facets include triangular facet A, triangular facet B, triangular facet C, and triangular facet D. The three vertices of triangular facet A are i A 、j A and k A The three vertices of triangle patch B are i B 、j B and k B The three vertices of the triangle C are i C 、j C and k C The three vertices of the triangle D are i D 、j D and k D The first model data may include the following content as shown in Table 1:
[0063] Table 1
[0064] Triangle A <![CDATA[i A (x iA ,y iA ,z iA )]]> <![CDATA[j A (x jA ,y jA ,z jA )]]> <![CDATA[k A (x kA ,y kA ,z kA )]]> Triangle patch B <![CDATA[i B (x iB ,y iB ,z iB )]]> <![CDATA[j B (x jB ,y jB ,z jB )]]> <![CDATA[k B (x kB ,y kB ,z kB )]]> Triangle patch C <![CDATA[i C (x iC ,y iC ,z iC )]]> <![CDATA[j C (x jC ,y jC ,z jC )]]> <![CDATA[k C (x kC ,y kC ,z kC )]]> Triangle patch D <![CDATA[i D (x iD ,y iD ,z iD )]]> <![CDATA[j D (x jD ,y jD ,z jD )]]> <![CDATA[k D (x kD ,y kD ,z kD )]]>
[0065] Based on this, the flatness determination device obtains the first model data of the surface to be measured of the battery cell pole, and the first model data includes the three-dimensional coordinates of multiple first triangular facets, so that the flatness determination device can divide the surface to be measured of the battery cell pole into multiple triangular facets, each of which can reflect a part of the characteristics of the surface to be measured. The flatness determination device obtains the three-dimensional coordinates of the three vertices of the multiple triangular facets on the surface to be measured in space, and can quickly and accurately know the positions of various parts of the surface to be measured in space.
[0066] S102: Determine a first flatness of the surface to be measured according to the first model data.
[0067] The first flatness is used to indicate the distance difference between the surface to be measured and the reference surface.
[0068] The reference surface is an ideal surface, and the position of the reference surface in space is the position of the surface to be measured under ideal conditions.
[0069] During the milling process of the battery pole, due to problems such as tool accuracy, workpiece rigidity and processing parameter errors, the manufactured battery pole will have manufacturing errors, and the surface of the battery pole will have errors compared with the reference surface of the surface. Flatness can be used to measure the error between the surface of the battery pole and the reference surface of the surface.
[0070] Based on this, the flatness determination device can determine the reference surface through the first model data, and determine the first flatness of the surface to be measured.
[0071] In some examples, a plane is determined based on three non-collinear points, and the flatness determination device may select three non-collinear vertices from the first model data, and determine the plane formed by the three non-collinear vertices as the reference surface.
[0072] Specifically, the plane equation of the reference surface can be calculated by the three-dimensional coordinates of the three non-collinear vertices in the first model data, so as to know the position of the reference surface in space. It should be noted that the three non-collinear vertices should be selected as three vertices dispersed on the surface to be measured. For example, the difference between the x-axis components of the three non-collinear vertices is greater than or equal to the first threshold, the difference between the y-axis components is greater than or equal to the second threshold, and the difference between the z-axis components is greater than or equal to the third threshold, so as to ensure that the selected vertices are points dispersed on the surface to be measured, avoid the situation where the three selected vertices are points in the area where there are errors on the surface to be measured, and ensure the accuracy of the reference surface.
[0073] In other examples, the flatness determination device can select multiple non-collinear vertices from the first model data, and divide the multiple non-collinear vertices into three groups, and calculate the average values of the x-axis component, y-axis component, and z-axis component of the three-dimensional coordinates of each group of vertices, thereby obtaining three average three-dimensional coordinates. The flatness determination device can determine the plane corresponding to the plane equation obtained from the three average three-dimensional coordinates as a reference surface, thereby further improving the accuracy of determining the reference surface.
[0074] In some other examples, the reference surface may be a preset surface. For example, a three-dimensional model of the battery cell pole in an ideal state may be pre-modeled to obtain an ideal three-dimensional model of the battery cell pole in an ideal state. The reference surface is the plane corresponding to the surface to be measured in the ideal three-dimensional model. The flatness determination device may place the ideal three-dimensional model into the first coordinate system to obtain the plane equation of the reference surface, thereby knowing the position of the reference surface in space.
[0075] Based on this, the flatness determination device can determine the first flatness of the surface to be measured according to the first model data and the position of the reference surface in space, thereby obtaining the manufacturing accuracy of the surface to be measured.
[0076] In some examples, the flatness determination device may calculate the distance difference between each first triangular facet and the reference surface to obtain multiple distance differences, and determine the average value of the multiple distance differences as the first flatness. Alternatively, the flatness determination device may also determine the maximum value of the multiple distance differences as the first flatness.
[0077] In addition, the flatness determination device can also locate the position of the first triangular facet corresponding to each distance difference through the size of the distance difference, thereby knowing the position where the flatness error exists on the surface to be measured, so as to facilitate subsequent processing of the position where the flatness error exists to eliminate or reduce the flatness error.
[0078] In an embodiment of the present application, a device for determining flatness obtains first model data of a surface to be measured of a battery cell pole, the first model data includes three-dimensional coordinates of a plurality of first triangular facets, and the plurality of first triangular facets are assembled to form a three-dimensional model of the surface to be measured, so that the device for determining flatness can divide the surface to be measured into a surface composed of a plurality of triangular facets, and according to the three-dimensional coordinates of the first triangular facets, the device for determining flatness can quickly and accurately obtain the positions of various parts of the surface to be measured in space through the first model data. The device for determining flatness determines the first flatness of the surface to be measured according to the first model data, and the first flatness is used to indicate the distance difference between the surface to be measured and the reference surface, so that the device for determining flatness can determine the gap between the surface to be measured and the reference surface according to the position of the surface to be measured in space and the three-dimensional coordinates of the triangular facets, and obtain the flatness of the surface to be measured, without the need for manual participation in measurement, thus avoiding manual measurement errors, and thus improving the accuracy of determining flatness.
[0079] Furthermore, the above-mentioned method for determining the flatness is simple and quick, does not require complicated calculations and lengthy measurement processes, and also improves the efficiency of detecting the manufacturing accuracy of the battery cell poles, thereby adapting to standardized production.
[0080] Based on the above exemplary description, in S101, the flatness determination device can be as follows: Figure 3 In the manner shown, first model data of the surface to be tested of the battery cell pole is obtained.
[0081] See also Figure 3 , Figure 3 A schematic diagram of a method for determining flatness provided in one embodiment of the present application. Figure 3 As shown, S101 can be implemented through the following Sa1 to Sa2.
[0082] Sa1. Perform three-dimensional modeling on the battery cell to obtain a stereolithography (STL) file.
[0083] The STL file includes the three-dimensional coordinates of a plurality of second triangular facets, and the second triangular facets are assembled to form a three-dimensional model of the battery cell.
[0084] In some examples, the flatness determination device may scan the battery cell visually or by laser, thereby performing three-dimensional modeling on the battery cell to obtain an STL file.
[0085] In other examples, the battery cell is pre-modeled in three dimensions using a three-dimensional scanner to obtain an STL file. The three-dimensional scanner sends the STL file to a flatness determination device, which receives the STL file to obtain the STL file.
[0086] Among them, the STL file is a file that only describes the geometric information of the surface of an object (such as a battery cell) and does not record color, material or other non-geometric attributes. The STL file format is simple and easy to generate and parse, which helps to improve the efficiency of the flatness determination device in performing flatness calculations.
[0087] Sa2. Extract the three-dimensional coordinates of the first triangular facet belonging to the surface to be measured from the STL file to obtain the first model data.
[0088] Since the battery cell and the battery cell pole are usually milled as a whole, the flatness determination device performs three-dimensional modeling on the battery cell as a whole, and the obtained STL file contains a complete three-dimensional model of the battery cell. The flatness determination device then directly reads the relevant data of the triangular facets corresponding to the battery cell pole from the STL file, thereby eliminating the need to distinguish the specific positions of the battery cell poles on the battery cell in advance, avoiding recognition errors during three-dimensional modeling, thereby affecting the flatness calculation results, and helping to improve the accuracy of flatness determination.
[0089] Based on the above exemplary description, in S102, the flatness determination device can be as follows: Figure 4 In the manner shown, the first flatness of the surface to be measured is determined.
[0090] See also Figure 4 , Figure 4 A schematic flow chart of a method for determining a first flatness of a surface to be measured provided in one embodiment of the present application. Figure 4 As shown, the method includes:
[0091] S201 . Determine first normal vectors corresponding to each of the plurality of first triangular facets according to the three-dimensional coordinates of the plurality of first triangular facets.
[0092] The normal vector refers to the vector represented by the straight line perpendicular to the plane (such as the first triangle). Figure 5 As shown, the first normal vector corresponding to the first triangle A is N A .
[0093] Specifically, for a first triangular face, two vectors can be obtained according to the three-dimensional coordinates of the three vertices of the first triangular face, and the cross product of the two vectors is the normal vector of the first triangular face.
[0094] For example, the three vertices of the first triangle A are i A 、j A and k A ,i A The three-dimensional coordinates of j are (5, 10, 11), A The three-dimensional coordinates of k are (4, 11, 11), AThe three-dimensional coordinates of are (4, 9, 9). The vector vector Depend on We can get a normal vector of the first triangle A
[0095] Based on this, the flatness determination device calculates the first normal vectors corresponding to each of the multiple first triangular facets respectively. The normal vector can represent the spatial relationship of the first triangular facets in an algebraic form. Therefore, the flatness determination device can use the normal vector to convert the spatial geometric relationship into an algebraic relationship when calculating the flatness, thereby calculating the flatness quickly, simply and accurately.
[0096] S202: Determine a first flatness of the surface to be measured according to a plurality of first normal vectors.
[0097] The normal vectors of two parallel planes in space are also parallel to each other. Based on this principle, the flatness determination device can determine the parallel relationship between the multiple first normal vectors, thereby determining the first flatness of the surface to be measured.
[0098] Based on the above exemplary description, in S202, the flatness determination device can be as follows: Figure 6 In the manner shown, the first flatness of the surface to be measured is determined based on a plurality of first normal vectors.
[0099] See also Figure 6 , Figure 6 A schematic flow chart of a method for determining a first flatness of a surface to be measured provided in one embodiment of the present application. Figure 6 As shown, S202 can be implemented through the following Sc1 to Sc4.
[0100] Sc1. Calculate a second normal vector of a reference surface based on multiple first normal vectors.
[0101] The flatness determination device may calculate the second normal vector of the reference surface in the following multiple ways.
[0102] Method 11, calculating an average normal vector of multiple first normal vectors, and determining the average normal vector as the second normal vector.
[0103] Specifically, the flatness determination device calculates the average value of the X-axis component, the Y-axis component, and the Z-axis component of the plurality of first normal vectors, respectively, and determines the vector composed of the average value of the X-axis component, the average value of the Y-axis component, and the average value of the Z-axis component as the average normal vector, thereby obtaining the second normal vector. The reference surface corresponding to the average normal vector can reflect the general trend of the first triangular facet, thereby making the reference surface more referenceable, thereby helping to improve the accuracy of determining the flatness.
[0104] For example, the first normal vectors include as well as The average value of the X-axis component is -3, the average value of the Y-axis component is -2, and the average value of the Z-axis component is 2, so the second normal vector of the reference surface is (-3, -2, 2).
[0105] Method 12: Calculate the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component of the plurality of first normal vectors, respectively, and determine the vector formed by the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component as the second normal vector.
[0106] Generally, multiple different normal vectors of an ideal plane should be parallel to each other. For the surface to be measured, the normal vectors that are parallel to each other account for a large proportion among multiple first normal vectors. Therefore, the flatness determination device can also determine the second normal vector by means of the median.
[0107] Sc2. Calculate the differences between the first normal vectors and the second normal vector to obtain a plurality of difference vectors.
[0108] Specifically, for a first normal vector, the flatness determination device calculates the difference between the X-axis component of the first normal vector and the X-axis component of the second normal vector, the difference between the Y-axis component and the Y-axis component of the second normal vector, and the difference between the Z-axis component and the Z-axis component of the second normal vector, thereby obtaining a difference vector corresponding to the first normal vector. The difference vector can reflect the difference between the first normal vector and the second normal vector, that is, it can reflect the difference between a part of the surface to be measured and the reference surface.
[0109] Based on this, the flatness determination device obtains a plurality of difference vectors.
[0110] Sc3. Calculate the L2 norm of each difference vector respectively to obtain multiple second flatnesses.
[0111] The L2 norm can reflect the size of a vector. The flatness determination device calculates the L2 norm of each difference vector, thereby obtaining multiple values that can reflect the size of the difference vector. Since the difference vector can reflect the difference between the first normal vector and the second normal vector, the size of the difference vector can reflect the size of the difference, and then reflect the distance difference between a part of the surface to be measured and the reference surface. Therefore, the flatness determination device can determine the L2 norms of multiple difference vectors as multiple second flatnesses of the surface to be measured.
[0112] Sc4. Determine the largest flatness among the multiple second flatnesses as the first flatness.
[0113] The flatness determination device determines the largest flatness among multiple second flatnesses as the first flatness, so that the flatness of the surface to be measured can be reflected through the maximum distance difference between the surface to be measured and the reference surface, thereby improving the accuracy of flatness determination.
[0114] Figure 7 This is a schematic diagram of a flatness determination device provided in one embodiment of the present application. Figure 7 As shown, the device includes: an acquisition module 101 and a determination module 102.
[0115] The acquisition module 101 is used to acquire first model data of the surface to be measured of the battery cell pole, wherein the first model data includes three-dimensional coordinates of a plurality of first triangular facets, and the plurality of first triangular facets are combined to form a three-dimensional model of the surface to be measured.
[0116] The determination module 102 is used to determine a first flatness of the surface to be measured according to the first model data, where the first flatness is used to indicate a distance difference between the surface to be measured and a reference surface.
[0117] It should be noted that the flatness determination device of the embodiment of the present application can be used to execute the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0118] In some examples, the acquisition module 101 is specifically used to perform three-dimensional modeling on the battery cell to obtain a stereolithography STL file, where the STL file includes three-dimensional coordinates of a plurality of second triangular facets, and the second triangular facets are assembled to form a three-dimensional model of the battery cell;
[0119] The three-dimensional coordinates of the first triangular facet belonging to the surface to be measured are extracted from the STL file to obtain the first model data.
[0120] In some examples, the determination module 102 is specifically configured to determine first normal vectors corresponding to each of the plurality of first triangular facets according to the three-dimensional coordinates of the plurality of first triangular facets;
[0121] A first flatness of the surface to be measured is determined according to a plurality of first normal vectors.
[0122] In some examples, the determination module 102 is further specifically configured to calculate a second normal vector of the reference surface according to the plurality of first normal vectors.
[0123] Differences between a plurality of first normal vectors and the second normal vector are calculated to obtain a plurality of difference vectors.
[0124] The L2 norm of each difference vector is calculated respectively to obtain multiple second flatnesses.
[0125] The largest flatness among the plurality of second flatnesses is determined as the first flatness.
[0126] In some examples, the determination module 102 is further specifically configured to calculate an average normal vector of multiple first normal vectors.
[0127] The average normal vector is determined as the second normal vector.
[0128] In some examples, the determination module 102 is further specifically configured to respectively calculate the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component of the plurality of first normal vectors.
[0129] A vector consisting of the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component is determined as the second normal vector.
[0130] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 8 As shown, the electronic device may include: a processor 201, when the processor 201 executes a computer executable program or instruction in the memory, the embodiment of the present application is implemented Figures 1 to 6 The method for determining flatness is shown.
[0131] Fig. 9 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig. 9 As shown, the electronic device may include: a processor 301 and a memory 302, wherein the memory 302 stores a computer program, and when the processor 301 executes the computer program, the embodiment of the present application is implemented. Figures 1 to 6 The method for determining flatness is shown.
[0132] The electronic device of the present application can be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar. The operations implemented by each module can be further referred to the relevant description of the method embodiment, which will not be repeated here. The modules here can also be replaced by components or circuits.
[0133] Illustratively, the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a processor in an electronic device to implement the method in the foregoing embodiment.
[0134] Exemplarily, the present application provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, at least one processor of an electronic device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions so that the electronic device implements the method in the foregoing embodiment.
[0135] Exemplarily, the present application also provides a chip, which is connected to a memory, or a memory is integrated on the chip, and when a software program stored in the memory is executed, the method in the above embodiment is implemented.
[0136] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. Available media can be magnetic media, (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state disks (SSDs)), etc.
[0137] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0138] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0139] Those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0140] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining flatness, characterized in that: The method comprises: Acquire first model data of a surface to be measured of a cell pole, wherein the first model data includes three-dimensional coordinates of a plurality of first triangular facets, and the plurality of first triangular facets are assembled to form a three-dimensional model of the surface to be measured; A first flatness of the surface to be measured is determined according to the first model data, where the first flatness is used to indicate a distance difference between the surface to be measured and a reference surface.
2. The method according to claim 1, characterized in that The step of obtaining first model data of the surface to be tested of the battery cell pole includes: Performing three-dimensional modeling on the battery core to obtain a stereolithography STL file, wherein the STL file includes three-dimensional coordinates of a plurality of second triangular facets, and the second triangular facets are assembled to form a three-dimensional model of the battery core; The three-dimensional coordinates of the first triangular facet belonging to the surface to be measured are extracted from the STL file to obtain the first model data.
3. The method according to claim 1, characterized in that Determining the first flatness of the surface to be measured according to the first model data includes: Determine, according to the three-dimensional coordinates of the plurality of first triangular facets, a first normal vector corresponding to each of the plurality of first triangular facets; A first flatness of the surface to be measured is determined according to the plurality of first normal vectors.
4. The method according to claim 3, characterized in that Determining the first flatness of the surface to be measured according to the plurality of first normal vectors comprises: Calculating a second normal vector of the reference surface according to the plurality of first normal vectors; Calculate the differences between a plurality of the first normal vectors and the second normal vector to obtain a plurality of difference vectors; Calculate the L2 norm of each difference vector respectively to obtain multiple second flatnesses; The largest flatness among the plurality of second flatnesses is determined as the first flatness.
5. The method according to claim 4, characterized in that The step of calculating the second normal vector of the reference surface according to the plurality of the first normal vectors comprises: Calculate an average normal vector of the plurality of first normal vectors; The average normal vector is determined as the second normal vector.
6. The method according to claim 4, characterized in that The step of calculating the second normal vector of the reference surface according to the plurality of the first normal vectors comprises: Calculate the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component of the plurality of first normal vectors respectively; A vector consisting of the median of the X-axis component, the median of the Y-axis component, and the median of the Z-axis component is determined as the second normal vector.
7. A device for determining flatness, characterized in that: The device comprises: a module for executing the flatness determination method according to any one of claims 1-6.
8. An electronic device, characterized in that: include: processor; The processor is used to execute a computer executable program or instruction in the memory, so that the electronic device executes the flatness determination method described in any one of claims 1-6.
9. An electronic device, characterized in that: include: at least one memory and at least one processor; The memory is used to store computer executable programs or instructions; The processor is used to call the computer executable program or instructions in the memory, so that the electronic device executes the flatness determination method described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program or instruction, and the computer-executable program or instruction is configured to execute the method for determining flatness according to any one of claims 1 to 6.