Sealing nail feeding control method, device, electronic equipment and storage medium

The position of the sealing nail and battery is determined through the image recognition and control module, which solves the problem of poor flexibility in the existing sealing nail loading process, achieves precise loading and assembly of sealing nails, and improves installation efficiency.

CN113985830BActive Publication Date: 2024-10-29WUHAN YIFI LASER CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111310761.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-10-29
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

The existing sealing nail has poor flexibility in the loading process, inconvenient assembly, and complex structure.

Method used

By acquiring images of the target sealing nail and battery, the position and assembly position of the sealing nail are identified and determined, and the image acquisition module and loading control module are used to control the loading mechanism for precise placement.

Benefits of technology

It achieves more accurate and convenient loading of sealing nails, adapts to various incoming materials and installation problems, and improves the efficiency of positioning and installation of sealing nails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113985830B_ABST
    Figure CN113985830B_ABST
Patent Text Reader

Abstract

The present invention provides a feeding control method, device, electronic device and storage medium for sealing nails, wherein the method comprises: obtaining an image of a target sealing nail and an image of a target battery; determining the position of the target sealing nail based on the image of the target sealing nail and determining the assembly position of the target sealing nail based on the image of the target battery when the target sealing nail is determined to be qualified and in the correct direction based on the image of the target sealing nail and the cleanliness of the surface of the target battery is determined to be qualified based on the image of the target battery; and controlling the feeding mechanism to obtain the target sealing nail from the position of the target sealing nail, and placing the target sealing nail at the assembly position of the target sealing nail. The feeding control method, device, electronic device and storage medium for sealing nails provided by the embodiments of the present invention can better perform the positioning and installation work of the sealing nails based on the image of the target sealing nail and the image of the target battery, and the feeding of the sealing nails is more accurate and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial control technology, and in particular to a sealing nail feeding control method, device, electronic equipment and storage medium. Background Art

[0002] During the production process of lithium-ion batteries and other batteries, electrolyte is injected through the injection hole. After the injection is completed, the injection hole needs to be sealed with a sealing pin to prevent leakage of the electrolyte.

[0003] The existing sealing nail feeding process is generally based on a specific structure, such as a groove, etc. The sealing nail is allowed to enter the above specific structure through mechanical operation, and the feeding mechanism grabs the sealing nail in the above specific structure and assembles the sealing nail to the sealing nail assembly position on the battery. However, the structure of the existing sealing nail feeding device is complicated, and the above specific structure and the sealing nail assembly position are fixed, so the feeding flexibility is poor and inconvenient. Summary of the invention

[0004] The present invention provides a sealing nail feeding control method, device, electronic equipment and storage medium, which are used to solve the technical problem of poor convenience in the sealing nail feeding process in the prior art.

[0005] The present invention provides a sealing nail feeding control method, comprising:

[0006] acquiring an image of a target sealing nail and an image of a target battery;

[0007] In the case where it is determined based on the image of the target sealing nail that the target sealing nail is qualified and has a correct direction, and the cleanliness of the surface of the target battery is determined based on the image of the target battery, the position of the target sealing nail is determined based on the image of the target sealing nail, and the assembly position of the target sealing nail is determined based on the image of the target battery;

[0008] After controlling the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin, the target sealing pin is placed at the assembly position of the target sealing pin.

[0009] According to a sealing pin feeding control method provided by the present invention, determining the position of the target sealing pin based on the image of the target sealing pin specifically includes:

[0010] identifying a first target circle in the image of the target sealing pin;

[0011] Acquire the coordinates of the center of the first target circle in the image of the target sealing nail;

[0012] The position of the target sealing pin is determined based on the coordinates of the center of the first target circle.

[0013] According to a sealing nail feeding control method provided by the present invention, the assembly position of the target sealing nail is determined based on the image of the target battery, specifically comprising:

[0014] identifying a second target circle in the image of the target battery;

[0015] Acquire the coordinates of the center of the second target circle in the image of the target battery;

[0016] Based on the coordinates of the center of the second target circle, the target sealing pin assembly position is determined.

[0017] According to a sealing pin feeding control method provided by the present invention, determining the position of the target sealing pin based on the coordinates of the center of the first target circle specifically includes:

[0018] Based on the coordinates of the center of the first target circle, obtaining a first pixel position difference between the center of the first target circle and a first reference point;

[0019] determining a first position difference between a first reference position and a position of the target sealing pin based on the first pixel position difference and an imaging parameter of the image of the target sealing pin;

[0020] Based on the first reference position and the first position difference, the target sealing pin position is determined.

[0021] According to a sealing nail feeding control method provided by the present invention, the step of identifying a first target circle in an image of the target sealing nail specifically includes:

[0022] identifying a circle in the image of the target sealing pin;

[0023] Any circle in the circle in the image of the target sealing nail whose radius matches the first target radius is determined as the first target circle.

[0024] According to a sealing pin feeding control method provided by the present invention, the assembly position of the target sealing pin is determined based on the coordinates of the center of the second target circle, specifically comprising:

[0025] Based on the coordinates of the center of the second target circle, acquiring a second pixel position difference between the center of the second target circle and a second reference point;

[0026] determining a second position difference between a second reference position and an assembly position of the target sealing nail based on the second pixel position difference and an imaging parameter of the image of the target battery;

[0027] Based on the second reference position and the second position difference, the target sealing pin assembly position is determined.

[0028] According to a sealing nail feeding control method provided by the present invention, the identifying a second target circle in the image of the target battery specifically includes:

[0029] identifying a circle in the image of the target battery;

[0030] A circle in the image of the target battery whose radius matches the second target radius is determined as the second target circle.

[0031] The present invention also provides a sealing nail feeding control device, comprising:

[0032] An image acquisition module, used to acquire an image of a target sealing nail and an image of a target battery;

[0033] a position acquisition module, for determining the position of the target sealing nail based on the image of the target sealing nail, and determining the assembly position of the target sealing nail based on the image of the target battery, when it is determined based on the image of the target sealing nail that the target sealing nail is qualified and in the correct direction, and when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is qualified; and

[0034] The feeding control module is used to control the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin and then place the target sealing pin at the assembly position of the target sealing pin.

[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any of the above-mentioned sealing pin feeding control methods are implemented.

[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned sealing nail feeding control methods are implemented.

[0037] The sealing pin feeding control method, device, electronic device and storage medium provided by the present invention determine the position of the target sealing pin and the assembly position of the target sealing pin based on the image of the target sealing pin and the image of the target battery, control the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin, and then place the target sealing pin at the assembly position of the target sealing pin. The method, device, electronic device and storage medium can adapt to various incoming materials and various sealing pin installation problems, can better perform the positioning and installation work of the sealing pin, and the feeding of the sealing pin is more accurate and convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a schematic flow chart of the sealing nail feeding control method provided by the present invention;

[0040] Figure 2 It is a structural schematic diagram of a feeding control device for sealing nails provided by the present invention;

[0041] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] In the description of the embodiments of the present invention, it should be noted that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limitations on the embodiments of the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance, and do not involve order.

[0044] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.

[0045] In order to overcome the above-mentioned problems of the prior art, the present invention provides a sealing nail feeding control method, device, electronic device and storage medium. The inventive concept is to determine the actual position of the target soft-pack battery cell based on the image of the target soft-pack battery cell, control the picking mechanism to move to the actual position of the target soft-pack battery cell, and obtain the target soft-pack battery cell by grabbing or sucking, thereby realizing efficient and accurate feeding of the sealing nail.

[0046] Figure 1 1 is a flow chart of a sealing nail feeding control method provided by the present invention. Figure 1 The feeding control method of the sealing pin according to the embodiment of the present invention is described. Figure 1 As shown, the method includes: step 101, acquiring an image of a target sealing nail and an image of a target battery.

[0047] Specifically, the image of the target sealing nail may be acquired based on the image or video of the target sealing nail acquired by the image acquisition device.

[0048] The image acquisition device may be a camera or a video camera, etc.

[0049] The image acquisition device may acquire an image of the target sealing nail by photographing the target sealing nail from directly above, or may acquire a video of the target sealing nail by shooting from directly above, etc.

[0050] The video of the target sealing nail may be processed by screenshot or the like to obtain an image of the target sealing nail.

[0051] The image of the target battery may be acquired based on the image or video of the target battery acquired by the image acquisition device.

[0052] The image acquisition device may be a camera or a video camera, etc.

[0053] The image acquisition device may acquire an image of the target battery by photographing the target battery from directly above, or may acquire a video of the target battery by shooting from directly above.

[0054] The video of the target battery can be processed by screenshot and the like to obtain an image of the target battery.

[0055] Step 102: When it is determined based on the image of the target sealing pin that the target sealing pin is qualified and has the correct direction, and when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is qualified, the position of the target sealing pin is determined based on the image of the target sealing pin, and the assembly position of the target sealing pin is determined based on the image of the target battery.

[0056] Specifically, target recognition may be performed on the image of the target sealing nail based on any target recognition method, so as to recognize the target sealing nail in the image of the target sealing nail.

[0057] After the target sealing pin in the image of the target sealing pin is identified, the direction of the target sealing pin may be determined based on the image of the target sealing pin, and whether the target sealing pin is qualified may be detected.

[0058] The overall shape of the sealing pin is a circular sheet. The first surface of the circular sheet is a smooth surface, and the second surface is provided with a plurality of circular rings (which can be called "steps") formed by processing, and the circular rings are concentric with the circular sheet.

[0059] It can be understood that the image of the target sealing pin is an image of the first surface of the target sealing pin or an image of the second surface of the target sealing pin.

[0060] The direction of the target sealing pin can be determined by detecting the number of circles in the image of the target sealing pin.

[0061] The target recognition can be performed on the image of the target sealing nail based on any target recognition method, such as template matching or artificial neural network, to recognize the circle in the image of the target sealing nail.

[0062] Exemplarily, the circles in the image of the target sealing nail may be detected by Hough transform, thereby counting the number of circles in the image of the target sealing nail.

[0063] When the number of circles in the image of the target sealing pin is less than the number threshold, it can be determined that the image of the target sealing pin is the image of the first side of the target sealing pin, and the direction of the target sealing pin is incorrect; when the number of circles in the image of the target sealing pin is greater than or equal to the number threshold, it can be determined that the image of the target sealing pin is the image of the second side of the target sealing pin, and the direction of the target sealing pin is correct.

[0064] The quantity threshold can be set according to actual conditions, and the embodiment of the present invention does not specifically limit the value of the quantity threshold. In an ideal case, the quantity threshold is 2, that is, there is only one circle in the image of the first surface.

[0065] In the case that the direction of the target sealing pin is correct, whether the target sealing pin is qualified can be detected based on the ring in the image of the target sealing pin.

[0066] Based on the ring in the image of the target sealing pin, detecting whether the target sealing pin is qualified may include at least one of the following:

[0067] Acquire the maximum outer diameter of the ring in the image of the target sealing nail;

[0068] The pixel value of each ring in the image of the target sealing nail is obtained.

[0069] If the maximum outer diameter of the ring in the image of the target sealing pin does not fall within the preset length interval, it means that the ring with the largest outer diameter cannot enter the injection hole of the target battery (the maximum outer diameter is greater than the upper limit of the length interval and the area is too large) or cannot jam the injection hole of the target battery (the maximum outer diameter is less than the lower limit of the length interval and the area is too small), and the target sealing pin is unqualified.

[0070] If the pixel values ​​of at least one circular ring in the image of the target sealing nail are uneven, that is, the brightness of a certain position in the at least one circular ring in the image is significantly different from the brightness of the nearby area on the circular ring, it means that there are impurities (the brightness of the position is significantly lower than the brightness of the nearby area) or pits (the brightness of the position is significantly higher than the brightness of the nearby area) at that position, and the target sealing nail is unqualified.

[0071] The length interval can be determined based on the radius of the injection hole. The specific range of the length interval is not specifically limited in the embodiment of the present invention.

[0072] After determining that the target sealing pin is qualified and has the correct direction, the target battery image can be subjected to target recognition based on any target recognition method, such as template matching or artificial neural network, to identify the injection hole of the target battery in the target battery image.

[0073] Optionally, after the liquid injection hole of the target battery in the image of the target battery is identified, it may be determined whether the brightness of the area surrounding the liquid injection hole is lower than a preset brightness threshold.

[0074] If the brightness of the area around the injection hole is lower than the brightness threshold, it can be determined that the cleanliness of the target battery surface is unqualified; if the brightness of the area around the injection hole is higher than the brightness threshold, it can be determined that the cleanliness of the target battery surface is qualified.

[0075] The brightness threshold may be set according to actual conditions, and the embodiment of the present invention does not specifically limit the value of the brightness threshold.

[0076] Optionally, the area around the injection hole is a circular ring concentric with the injection hole, the outer diameter of the circular ring is a preset value, and the inner diameter is the radius of the injection hole; the area around the injection hole can be divided into multiple sub-areas according to the radius.

[0077] For the area around the injection hole, an area consisting of adjacent pixels whose brightness values ​​are less than a brightness threshold in the area around the injection hole in the image of the target battery is obtained as a dirty area.

[0078] If there are only discrete pixels with brightness values ​​less than the brightness threshold in the area around the injection hole in the image of the target battery, or there are no pixels with brightness values ​​less than the brightness threshold, it can be determined that there is no dirty area in the area around the injection hole.

[0079] The calculation formula of the cleanliness Q of the target battery surface is as follows:

[0080]

[0081] Where S represents the area around the injection hole; S i represents the area of ​​the dirty area in the ith sub-area; n represents the total number of sub-areas; a i represents the weight of the ith sub-region. The closer to the injection hole, the i The larger the value of .

[0082] It should be noted that the area of ​​the region surrounding the injection hole and the area of ​​the dirty region may both be actual areas or pixel areas.

[0083] When the target sealing pin is qualified and in the correct direction, and the cleanliness of the target battery surface is qualified, after the target sealing pin in the target sealing pin image is identified, the position of the target sealing pin in the target sealing pin image may be determined.

[0084] Based on the imaging parameters of the target sealing pin image (such as focal length and object distance, etc.), the position of the target sealing pin in the target sealing pin image can be mapped to the real space to obtain the actual position of the target sealing pin in the real space as the assembly position of the target sealing pin.

[0085] When the target sealing pin is qualified and oriented correctly, and the cleanliness of the target battery surface is qualified, after the injection hole of the target battery in the target battery image is identified, the position of the injection hole of the target battery in the target battery image can be determined.

[0086] Based on the imaging parameters of the target battery image (such as focal length and object distance, etc.), the position of the target battery's injection hole in the target battery image can be mapped to the real space, and the actual position of the target battery's injection hole in the real space is obtained as the assembly position of the target sealing pin.

[0087] The position of an object in an image (such as a sealing pin or a filling hole) refers to the position of the object in the image.

[0088] The horizontal and vertical directions of the image can be used as the X-axis and the Y-axis respectively, and a coordinate system can be established based on the X-axis and the Y-axis. The position of the feature point in the target in the coordinate system can be determined as the position of the target in the image.

[0089] The feature point may be one or more pre-selected points in the target, for example, the feature point is the center of the sealing pin.

[0090] Several refers to one or more.

[0091] It is understandable that, in step 102, before determining the position of the target sealing nail, the image of the target sealing nail may be preprocessed to improve the image quality; before determining the assembly position of the target sealing nail, the image of the target battery may be preprocessed to improve the image quality.

[0092] The preprocessing method may include at least one of image segmentation, image enhancement and image binarization.

[0093] Step 103 , after controlling the feeding mechanism to obtain the target sealing nail from the position of the target sealing nail, place the target sealing nail at the assembly position of the target sealing nail.

[0094] Specifically, after each loading is completed, the loading mechanism can return to its initial position.

[0095] After determining the target sealing pin position and the target sealing pin assembly position, a first route starting from the initial position and ending at the target sealing pin position and a second route starting from the target sealing pin position and ending at the target sealing pin assembly position can be determined.

[0096] The feeding mechanism is controlled to move along the first route to the position of the target sealing nail to obtain the target sealing nail.

[0097] The feeding mechanism can be in the form of a suction cup or a robot.

[0098] When the feeding mechanism is composed of a suction cup, the feeding mechanism can obtain the target sealing nail by suction; when the feeding mechanism is composed of a manipulator, the feeding mechanism can grab the target sealing nail by wrapping the target sealing nail.

[0099] After the feeding mechanism obtains the target sealing pin, the feeding mechanism can be controlled to carry the target sealing pin and move along the second route to the assembly position of the target sealing pin, and the target sealing pin is placed at the assembly position of the target sealing pin to complete the feeding of the sealing pin.

[0100] It should be noted that before step 101, when it is determined based on the image of the target sealing pin that the direction of the target sealing pin is incorrect, the flipping mechanism can be controlled to flip the target sealing pin so that the direction of the target sealing pin is correct, and the image of the target sealing pin can be recaptured after flipping; when it is determined based on the image of the target sealing pin that the direction of the target sealing pin is correct and the target sealing pin is unqualified, the first unloading mechanism can be controlled to discard the target sealing pin; when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is unqualified, the second unloading mechanism can be controlled to remove the target battery so as to recapture the image of the target battery after cleaning the surface of the target battery.

[0101] The embodiment of the present invention determines the position of the target sealing pin and the assembly position of the target sealing pin based on the image of the target sealing pin and the image of the target battery, controls the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin, and then places the target sealing pin at the assembly position of the target sealing pin. The embodiment of the present invention can adapt to various incoming materials and various sealing pin installation problems, can better perform the positioning and installation work of the sealing pin, and the feeding of the sealing pin is more accurate and convenient.

[0102] Based on the content of any of the above embodiments, determining the position of the target sealing pin based on the image of the target sealing pin specifically includes: identifying a first target circle in the image of the target sealing pin.

[0103] Specifically, target recognition can be performed on the image of the target sealing nail based on any target recognition method, such as template matching or artificial neural network, to recognize the first target circle in the image of the target sealing nail.

[0104] The first target circle is the outline of the target sealing nail.

[0105] The coordinates of the center of the first target circle in the image of the target sealing nail are obtained.

[0106] Specifically, after the first target circle is identified, the center of the first target circle may be determined.

[0107] After the center of the first target circle is determined, the coordinates of the center of the first target circle in the image of the target sealing nail may be acquired.

[0108] Based on the coordinates of the center of the first target circle, the position of the target sealing pin is determined.

[0109] Specifically, after obtaining the coordinates of the center of the first target circle in the image of the target sealing nail, the coordinates of the center of the first target circle can be mapped to the real space based on the imaging parameters of the image of the target sealing nail (such as focal length and object distance, etc.), and the coordinates of the center of the target sealing nail in the real space are obtained as the position of the target sealing nail.

[0110] The embodiment of the present invention identifies the outline of the target sealing pin in the image of the target sealing pin, and determines the position of the target sealing pin in the real space according to the outline of the target sealing pin in the image of the target sealing pin, so that the real position of the target sealing pin can be determined more accurately and conveniently, thereby realizing more accurate and convenient sealing pin feeding based on the real position of the target sealing pin.

[0111] Based on the content of any of the above embodiments, determining the assembly position of the target sealing nail based on the image of the target battery specifically includes: identifying a second target circle in the image of the target battery.

[0112] Specifically, target recognition can be performed on the image of the target battery based on any target recognition method, such as template matching or artificial neural network, to recognize the second target circle in the image of the target battery.

[0113] The second target circle is the outline of the injection hole of the target battery.

[0114] The coordinates of the center of the second target circle in the image of the target battery are obtained.

[0115] Specifically, after the second target circle is identified, the center of the second target circle may be determined.

[0116] After the center of the second target circle is determined, the coordinates of the center of the second target circle in the image of the target battery may be acquired.

[0117] Based on the coordinates of the center of the second target circle, the target sealing pin assembly position is determined.

[0118] Specifically, after obtaining the coordinates of the center of the second target circle in the image of the target battery, the coordinates of the center of the second target circle can be mapped to the real space based on the imaging parameters of the image of the target sealing nail (such as focal length and object distance, etc.), and the coordinates of the center of the injection hole of the target battery in the real space are obtained as the assembly position of the target sealing nail.

[0119] The embodiment of the present invention identifies the outline of the injection hole of the target battery in the image of the target battery, and determines the position of the injection hole of the target battery in real space according to the outline of the injection hole of the target battery in the image of the target battery. The real position of the injection hole of the target battery can be determined more accurately and conveniently, thereby realizing more accurate and convenient sealing nail feeding based on the real position of the injection hole of the target battery.

[0120] Based on the content of any of the above embodiments, based on the coordinates of the center of the first target circle, determining the position of the target sealing pin specifically includes: based on the coordinates of the center of the first target circle, obtaining a first pixel position difference between the center of the first target circle and a first reference point.

[0121] Specifically, the first reference point is a mapping of a predetermined first reference position in the image of the target sealing nail.

[0122] In the image of the target sealing nail, a position difference (ie, a pixel offset value) between the center of the first target circle and the first reference point may be obtained as the first pixel position difference.

[0123] The position difference between the center of the first target circle and the first reference point can be obtained by subtracting the coordinates of the center of the first target circle and the coordinates of the first reference point in the image of the target sealing nail.

[0124] The calculation formula of the first pixel position difference can be expressed as:

[0125]

[0126] Wherein, pixel_distance1 represents the first pixel position difference; the coordinates of the center of the first target circle and the coordinates of the first reference point in the image of the target sealing nail are (X1, Y1) and (X2, Y2), respectively.

[0127] A first position difference between the first reference position and the position of the target sealing pin is determined based on the first pixel position difference and an imaging parameter of the image of the target sealing pin.

[0128] Specifically, the first pixel position difference can be mapped to the real space based on the imaging parameters of the image of the target sealing nail (such as focal length and object distance, etc.), and the actual position difference between the first reference position and the position of the target sealing nail in the real space is obtained as the first position difference.

[0129] The calculation formula of the first position difference can be expressed as

[0130]

[0131] Wherein, distance1 represents the first position difference, and k1 represents the first conversion coefficient. The first conversion coefficient k1 is used for conversion between the distance in the image of the target sealing nail and the distance in the real space.

[0132] Based on the first reference position and the first position difference, the target sealing pin position is determined.

[0133] Specifically, the first position difference indicates the actual position difference between the first reference position and the position of the target sealing pin in the real space. Therefore, the position of the target sealing pin in the real space can be determined according to the first reference position and the first position difference.

[0134] The embodiment of the present invention determines the position of the target sealing pin based on the position difference between the center of the first target circle in the image of the target sealing pin and the first reference point and the first reference position in the real space, and can more accurately and conveniently determine the real position of the target sealing pin, thereby enabling more accurate and convenient sealing pin loading based on the real position of the target sealing pin.

[0135] Based on the content of any of the above embodiments, identifying a first target circle in the image of the target sealing nail specifically includes: identifying a circle in the image of the target sealing nail.

[0136] Specifically, the circle in the image of the target sealing nail may be identified based on various Hough transform, randomized circle detection (RCD) and other methods.

[0137] Various types of Hough transforms may include but are not limited to Circular Hough Transform (CHT), Randomized Hough Transform (RHT), and the like.

[0138] Any circle in the circle in the image of the target sealing nail whose radius matches the first target radius is determined as the first target circle.

[0139] Specifically, after the circles in the image of the target sealing nail are identified, the radius of each circle identified in the image of the target sealing nail may be acquired.

[0140] The calculation formula for the radius of the circle in the image can be expressed as

[0141]

[0142]

[0143] Where d represents the diameter of the circle in the target image, and the coordinates of the pixel points with the minimum and maximum X-axis coordinates of the circle are (X i , Y i ) and (X j , Y j ); r represents the radius of the circle in the labeled image.

[0144] It is understandable that (X i , Y i ) and (X j , Y j ) can also represent the coordinates of the pixel points with the minimum and maximum Y-axis coordinates of the circle.

[0145] The first target radius is a mapping of the real radius of the target sealing pin in the image of the target sealing pin.

[0146] For each circle identified in the image of the target sealing pin, the radius of the circle is matched to the first target radius.

[0147] If the absolute value of the difference between the radius of the circle and the first target radius is less than or equal to a preset first threshold, it is determined that the radius of the circle matches the first target radius, and the circle is a circle whose radius matches the first target radius.

[0148] If the absolute value of the difference between the radius of the circle and the first target radius is greater than a preset first threshold, it is determined that the radius of the circle does not match the first target radius, and the circle is not a circle whose radius matches the first target radius.

[0149] The first threshold value can be set according to actual conditions, for example, the first threshold value is 1 pixel. The embodiment of the present invention does not specifically limit the specific value of the first threshold value.

[0150] If there is only one circle in the image of the target sealing nail whose radius matches the first target radius, then the circle is determined as the first target circle.

[0151] If there are multiple circles in the image of the target sealing nail whose radius matches the first target radius, any one of them may be determined as the first target circle.

[0152] The embodiment of the present invention determines the first target circle by identifying a circle in the image of the target sealing nail whose radius matches the first target radius, and can more quickly, accurately and conveniently identify the target sealing nail in the image of the target sealing nail, thereby enabling more accurate and convenient sealing nail feeding based on the target sealing nail in the image of the target sealing nail.

[0153] Based on the content of any of the above embodiments, based on the coordinates of the center of the second target circle, determining the assembly position of the target sealing pin specifically includes: based on the coordinates of the center of the second target circle, obtaining a second pixel position difference between the center of the second target circle and the second reference point.

[0154] Specifically, the second reference point is a mapping of a predetermined second reference position in the image of the target battery.

[0155] In the image of the target battery, a position difference (ie, a pixel offset value) between the center of the second target circle and the second reference point may be obtained as the second pixel position difference.

[0156] The position difference between the center of the second target circle and the second reference point can be obtained by subtracting the coordinates of the center of the second target circle and the coordinates of the second reference point in the image of the target battery.

[0157] The calculation formula of the second pixel position difference can be expressed as:

[0158]

[0159] Wherein, pixel_distance2 represents the second pixel position difference; the coordinates of the center of the second target circle and the coordinates of the second reference point in the image of the target battery are (X3, Y3) and (X4, Y4), respectively.

[0160] Based on the second pixel position difference and the imaging parameter of the image of the target battery, a second position difference between the second reference position and the assembly position of the target sealing nail is determined.

[0161] Specifically, the second pixel position difference can be mapped to the real space based on the imaging parameters of the image of the target battery (such as focal length and object distance, etc.), and the actual position difference between the second reference position in the real space and the position of the injection hole of the target battery is obtained as the second position difference.

[0162] The calculation formula of the second position difference can be expressed as

[0163]

[0164] Wherein, distance2 represents the second position difference, and k2 represents the second conversion coefficient. The second conversion coefficient k2 is used for conversion between the distance in the image of the target battery and the distance in the real space.

[0165] Based on the second reference position and the second position difference, the target sealing pin assembly position is determined.

[0166] Specifically, the second position difference represents the actual position difference between the second reference position in the real space and the position of the injection hole of the target battery. Therefore, based on the second reference position and the second position difference, the position of the injection hole of the target battery in the real space can be determined, and the position of the injection hole of the target battery in the real space can be used as the assembly position of the target sealing nail.

[0167] The embodiment of the present invention determines the position of the injection hole of the target battery according to the position difference between the center of the second target circle in the image of the target battery and the second reference point and the second reference position in the real space, and can more accurately and conveniently determine the real position of the injection hole of the target battery, thereby enabling more accurate and convenient sealing nail loading based on the real position of the injection hole of the target battery.

[0168] Based on the content of any of the above embodiments, identifying a second target circle in the image of the target battery specifically includes: identifying a circle in the image of the target battery.

[0169] Specifically, the circle in the image of the target battery can be identified based on various Hough transforms, random circle detection and other methods.

[0170] A circle in the image of the target battery whose radius matches the second target radius is determined as the second target circle.

[0171] Specifically, after the circles in the image of the target battery are identified, the radius of each circle identified in the image of the target battery may be acquired.

[0172] The second target radius is a mapping of the actual radius of the injection hole of the target battery in the image of the target sealing nail.

[0173] For each circle identified in the image of the target battery, the radius of the circle is matched to the second target radius.

[0174] If the absolute value of the difference between the radius of the circle and the second target radius is less than or equal to a preset second threshold, it is determined that the radius of the circle matches the second target radius, and the circle is a circle whose radius matches the second target radius.

[0175] If the absolute value of the difference between the radius of the circle and the second target radius is greater than a preset second threshold, it is determined that the radius of the circle does not match the second target radius, and the circle is not a circle whose radius matches the second target radius.

[0176] The second threshold value can be set according to actual conditions, for example, the second threshold value is 0.5 pixels. The embodiment of the present invention does not specifically limit the specific value of the second threshold value.

[0177] If there is only one circle in the image of the target battery whose radius matches the second target radius, then this circle is determined as the second target circle.

[0178] If there are multiple circles in the image of the target battery whose radius matches the second target radius, any one of them may be determined as the second target circle.

[0179] The embodiment of the present invention determines the second target circle by identifying a circle in the image of the target battery whose radius matches the second target radius, and can more quickly, accurately and conveniently identify the injection hole of the target battery in the image of the target battery, thereby enabling more accurate and convenient sealing nail loading based on the injection hole of the target battery in the image of the target battery.

[0180] The feeding control device for the sealing nail provided by the present invention is described below. The feeding control device for the sealing nail described below and the feeding control method for the sealing nail described above can be referred to each other.

[0181] Figure 2is a schematic diagram of the structure of a sealing nail feeding control device according to an embodiment of the present invention. Based on the contents of any of the above embodiments, Figure 2 As shown, the device includes an image acquisition module 201, a position acquisition module 202 and a feeding control module 203, wherein:

[0182] An image acquisition module 201 is used to acquire an image of a target sealing nail and an image of a target battery;

[0183] A position acquisition module 202 is used to determine the position of the target sealing nail based on the image of the target sealing nail, and determine the assembly position of the target sealing nail based on the image of the target battery, when it is determined that the target sealing nail is qualified and has a correct direction based on the image of the target sealing nail, and the cleanliness of the surface of the target battery is qualified based on the image of the target battery;

[0184] The feeding control module 203 is used to control the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin and then place the target sealing pin at the assembly position of the target sealing pin.

[0185] Specifically, the image acquisition module 201, the position acquisition module 202 and the feeding control module 203 are electrically connected in sequence.

[0186] The image acquisition module 201 can directly acquire the image of the target sealing nail or obtain the image of the target sealing nail by taking a screenshot of a video of the target sealing nail.

[0187] The image acquisition module 201 may also directly acquire the image of the target battery or obtain the image of the target battery by taking a screenshot of the video of the target battery.

[0188] The position acquisition module 202 may perform target recognition on the image of the target sealing nail based on any target recognition method, and recognize the target sealing nail in the image of the target sealing nail;

[0189] The position acquisition module 202 may also perform target recognition on the image of the target battery based on any target recognition method, and recognize the liquid injection hole of the target battery in the image of the target battery.

[0190] When the target sealing pin is qualified and oriented in the correct direction, and the cleanliness of the target battery surface is qualified, the position acquisition module 202 can also determine the position of the target sealing pin in the image of the target sealing pin based on the coordinate system in the image; based on the imaging parameters of the image of the target sealing pin (such as focal length and object distance, etc.), the position of the target sealing pin in the image of the target sealing pin can be mapped to the real space to obtain the actual position of the target sealing pin in the real space as the assembly position of the target sealing pin.

[0191] When the target sealing pin is qualified and oriented in the correct direction, and the cleanliness of the target battery surface is qualified, the position acquisition module 202 can also determine the position of the target battery's injection hole in the target battery image based on the coordinate system in the image; based on the imaging parameters of the target battery image (such as focal length and object distance, etc.), the position of the target battery's injection hole in the target battery image can be mapped to the real space, and the actual position of the target battery's injection hole in the real space is obtained as the assembly position of the target sealing pin.

[0192] The feeding control module 203 can control the feeding mechanism to move along the first route to the position of the target sealing pin to obtain the target sealing pin.

[0193] After the feeding mechanism obtains the target sealing pin, the feeding control module 203 can control the target sealing pin to be carried, move along the second route to the assembly position of the target sealing pin, place the target sealing pin at the assembly position of the target sealing pin, and complete the feeding of the sealing pin.

[0194] The sealing nail feeding control device provided in an embodiment of the present invention is used to execute the sealing nail feeding control method of the present invention. Its implementation method is consistent with the implementation method of the sealing nail feeding control method provided by the present invention, and can achieve the same beneficial effects, which will not be repeated here.

[0195] The sealing nail feeding control device is used for the sealing nail feeding control method in the above embodiments. Therefore, the description and definition in the sealing nail feeding control method in the above embodiments can be used for understanding each execution module in the embodiments of the present invention.

[0196] The embodiment of the present invention determines the position of the target sealing pin and the assembly position of the target sealing pin based on the image of the target sealing pin and the image of the target battery, controls the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin, and then places the target sealing pin at the assembly position of the target sealing pin. The embodiment of the present invention can adapt to various incoming materials and various sealing pin installation problems, can better perform the positioning and installation work of the sealing pin, and the feeding of the sealing pin is more accurate and convenient.

[0197] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions stored in the memory 330 and can be run on the processor 310 to execute the sealing nail feeding control method provided by the above-mentioned method embodiments, the method comprising: acquiring the image of the target sealing nail and the image of the target battery; determining the position of the target sealing nail based on the image of the target sealing nail and the target battery surface cleanliness based on the image of the target sealing nail, and determining the assembly position of the target sealing nail based on the image of the target battery after the target sealing nail is obtained from the position of the target sealing nail by controlling the feeding mechanism, and placing the target sealing nail at the assembly position of the target sealing nail.

[0198] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0199] The processor 310 in the electronic device provided in the embodiment of the present invention can call the logic instructions in the memory 330, and its implementation method is consistent with the implementation method of the sealing nail feeding control method provided by the present invention, and can achieve the same beneficial effects, which will not be repeated here.

[0200] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the sealing nail feeding control method provided by the above-mentioned method embodiments, the method including: acquiring an image of a target sealing nail and an image of a target battery; when it is determined based on the image of the target sealing nail that the target sealing nail is qualified and in the correct direction, and when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is qualified, the position of the target sealing nail is determined based on the image of the target sealing nail, and the assembly position of the target sealing nail is determined based on the image of the target battery; after controlling the feeding mechanism to obtain the target sealing nail from the position of the target sealing nail, the target sealing nail is placed at the assembly position of the target sealing nail.

[0201] When the computer program product provided in the embodiment of the present invention is executed, the above-mentioned sealing nail feeding control method is implemented. Its specific implementation method is consistent with the implementation method described in the embodiment of the aforementioned method, and can achieve the same beneficial effects, which will not be repeated here.

[0202] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the sealing pin feeding control method provided in the above-mentioned embodiments, the method comprising: acquiring an image of a target sealing pin and an image of a target battery; when it is determined based on the image of the target sealing pin that the target sealing pin is qualified and has the correct direction, and when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is qualified, the position of the target sealing pin is determined based on the image of the target sealing pin, and the assembly position of the target sealing pin is determined based on the image of the target battery; after controlling the feeding mechanism to obtain the target sealing pin from the position of the target sealing pin, the target sealing pin is placed at the assembly position of the target sealing pin.

[0203] When the computer program stored on the non-transitory computer-readable storage medium provided in the embodiment of the present invention is executed, the above-mentioned sealing nail feeding control method is implemented. Its specific implementation method is consistent with the implementation method recorded in the embodiment of the aforementioned method, and can achieve the same beneficial effects, which will not be repeated here.

[0204] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0205] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 invention.

Claims

1. A sealing nail feeding control method, characterized in that: include: acquiring an image of a target sealing nail and an image of a target battery; In the case where it is determined based on the image of the target sealing nail that the target sealing nail is qualified and has a correct direction, and the cleanliness of the surface of the target battery is determined based on the image of the target battery, the position of the target sealing nail is determined based on the image of the target sealing nail, and the assembly position of the target sealing nail is determined based on the image of the target battery; After controlling the feeding mechanism to obtain the target sealing nail from the position of the target sealing nail, the target sealing nail is placed at the assembly position of the target sealing nail; The determining, based on the image of the target sealing nail, that the target sealing nail is qualified and has a correct direction comprises: Detecting circles in the image of the target sealing nail based on Hough transform, and determining the number of circles in the image of the target sealing nail; Determining that the direction of the target sealing pin is correct based on the number of circles in the image of the target sealing pin being greater than or equal to a preset number threshold; Acquire the maximum outer diameter of the circular ring in the image of the target sealing nail and the pixel value of each circular ring in the image of the target sealing nail; Based on the maximum outer diameter and the pixel values ​​of each circular ring, it is determined that the target sealing nail is qualified.

2. The sealing nail feeding control method according to claim 1, characterized in that: The determining the position of the target sealing pin based on the image of the target sealing pin specifically includes: identifying a first target circle in the image of the target sealing pin; Acquire the coordinates of the center of the first target circle in the image of the target sealing nail; The position of the target sealing pin is determined based on the coordinates of the center of the first target circle.

3. The sealing nail feeding control method according to claim 1 or 2, characterized in that: The step of determining the assembly position of the target sealing nail based on the image of the target battery specifically includes: identifying a second target circle in the image of the target battery; Acquire the coordinates of the center of the second target circle in the image of the target battery; Based on the coordinates of the center of the second target circle, the target sealing pin assembly position is determined.

4. The sealing nail feeding control method according to claim 2, characterized in that: The determining the position of the target sealing pin based on the coordinates of the center of the first target circle specifically includes: Based on the coordinates of the center of the first target circle, obtaining a first pixel position difference between the center of the first target circle and a first reference point; determining a first position difference between a first reference position and a position of the target sealing pin based on the first pixel position difference and an imaging parameter of the image of the target sealing pin; Based on the first reference position and the first position difference, the target sealing pin position is determined.

5. The sealing nail feeding control method according to claim 2 or 4, characterized in that: The step of identifying a first target circle in the image of the target sealing nail specifically includes: identifying a circle in the image of the target sealing pin; Any circle in the circle in the image of the target sealing nail whose radius matches the first target radius is determined as the first target circle.

6. The sealing nail feeding control method according to claim 3, characterized in that: The step of determining the assembly position of the target sealing pin based on the coordinates of the center of the second target circle specifically includes: Based on the coordinates of the center of the second target circle, acquiring a second pixel position difference between the center of the second target circle and a second reference point; determining a second position difference between a second reference position and an assembly position of the target sealing nail based on the second pixel position difference and an imaging parameter of the image of the target battery; Based on the second reference position and the second position difference, the target sealing pin assembly position is determined.

7. The sealing nail feeding control method according to claim 3, characterized in that: The step of identifying a second target circle in the image of the target battery specifically includes: identifying a circle in the image of the target battery; A circle in the image of the target battery whose radius matches the second target radius is determined as the second target circle.

8. A feeding control device for sealing nails, characterized in that: include: An image acquisition module, used to acquire an image of a target sealing nail and an image of a target battery; a position acquisition module, for determining the position of the target sealing nail based on the image of the target sealing nail, and determining the assembly position of the target sealing nail based on the image of the target battery, when it is determined based on the image of the target sealing nail that the target sealing nail is qualified and in the correct direction, and when it is determined based on the image of the target battery that the cleanliness of the surface of the target battery is qualified; and A feeding control module, used for controlling a feeding mechanism to obtain the target sealing nail from the position of the target sealing nail and then place the target sealing nail at the assembly position of the target sealing nail; The determining, based on the image of the target sealing nail, that the target sealing nail is qualified and has a correct direction comprises: Detecting circles in the image of the target sealing nail based on Hough transform, and determining the number of circles in the image of the target sealing nail; Determining that the direction of the target sealing pin is correct based on the number of circles in the image of the target sealing pin being greater than or equal to a preset number threshold; Acquire the maximum outer diameter of the circular ring in the image of the target sealing nail and the pixel value of each circular ring in the image of the target sealing nail; Based on the maximum outer diameter and the pixel values ​​of each circular ring, it is determined that the target sealing nail is qualified.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the sealing pin feeding control method according to any one of claims 1 to 7 are implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the sealing pin feeding control method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Battery sealing nail assembly control method, device and equipment

    CN111740070A