Image detection method, system, device and medium for sealing gasket
The electrical connector sealing gasket on the battery pack is detected through image detection, which solves the problem of difficult detection of gasket deformation and shedding, realizes the timely detection and handling of gasket problems, and improves the safety of electric vehicles.
Patent Information
- Application Number
- CN202311285192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the electrical connector gasket of the battery pack is prone to deformation and fall off, but is not easily detected defects, resulting in the failure of the waterproof seal and poor safety.
An image detection method for sealing gasket is provided. By controlling the sealing gasket visual detection device to acquire target images, and targeted image detection is carried out in combination with the sealing gasket detection standards corresponding to different battery pack models, it is found that the gasket of the electrical connector may have problems.
This method can accurately and promptly discover possible problems with the sealing gasket of the electrical connector, providing a basis for further maintenance or replacement of the sealing gasket, and effectively avoid safety hazards in battery-swapping vehicles.
Smart Images

Figure CN119784664A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy technology, and in particular to a sealing gasket image detection method, system, equipment and medium. Background Art
[0002] The energy used by electric vehicles is the electricity provided by the battery packs they carry. Electric vehicles need to be charged after the electricity is used up. The battery packs of electric vehicles are generally divided into fixed and replaceable types. The replaceable battery packs are generally fixed to the vehicle's bracket through a movable installation method. The battery packs can be removed for separate replacement or charging operations. After the replaced battery packs are fully charged, they can be installed on the vehicle.
[0003] The battery pack is used to achieve electrical connection through the battery connector. For example, when the battery pack is electrically connected to an electric vehicle or to a charging rack, the battery connector on the battery pack needs to be plugged into the vehicle-end electrical connector on the electric vehicle or the charging electrical connector on the charging rack to achieve electrical connection. A sealing gasket is provided on the battery connector for waterproof sealing.
[0004] At present, the sealing gasket may be deformed or fall off due to aging or scratches during the battery replacement process, resulting in failure of the waterproof seal and poor safety. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the defect in the prior art that the electrical connector sealing gasket of the battery pack is easy to deform and fall off but not easy to detect, and to provide an image detection method, system, equipment and medium for the sealing gasket.
[0006] The present invention solves the above technical problems through the following technical solutions:
[0007] In a first aspect, the present invention provides a sealing gasket image detection method for performing image detection on a sealing gasket of an electrical connector on a battery pack, the image detection method comprising:
[0008] Control the sealing gasket visual detection device to collect a target image; the target image includes a target sealing gasket
[0009] Preferably, a light source device is further provided on the battery rack, and the light source device and the sealing gasket visual detection device are respectively located on both sides of the target sealing gasket, and the image detection system further includes:
[0010] The start-up module is used to start the light source device to provide the sealing gasket visual inspection device with a light source directed toward the target sealing gasket.
[0011] The light source emitted by the light source device of this scheme increases the ambient light intensity, so that the captured image has better pixel quality, providing a more reliable basis for image processing, and when the target sealing gasket is located between the light source device and the sealing gasket visual inspection device, it acts as a backlight source to enhance the clarity of the image edge.
[0012] In a third aspect, the present invention further provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the image detection method for the sealing gasket as described in the first aspect.
[0013] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the image detection method for the sealing gasket as described in the first aspect.
[0014] The positive progressive effect of the present invention is that the image detection method, system, equipment and medium of the sealing gasket provided by the present invention can accurately and timely discover possible problems with the sealing gasket of the electrical connector by taking images and performing targeted image detection in combination with the sealing gasket detection standards corresponding to different battery pack models, thereby providing a basis for further maintenance or replacement of the sealing gasket and effectively avoiding the safety hazards of battery-swap vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a first flow chart of the image detection method for a sealing gasket according to Embodiment 1 of the present invention.
[0016] Figure 2 This is a flow chart of step S12 in the image detection method for a sealing gasket according to embodiment 1 of the present invention.
[0017] Figure 3 This is a second flow chart of the image detection method for the sealing gasket according to Embodiment 1 of the present invention.
[0018] Figure 4 This is a third flow chart of the image detection method for the sealing gasket according to the first embodiment of the present invention.
[0019] Figure 5 This is a flow chart of the image detection method of the sealing gasket according to the second embodiment of the present invention.
[0020] Figure 6 This is a flow chart of step S1014 in the image detection method of the sealing gasket according to embodiment 2 of the present invention.
[0021] Figure 7 This is a module schematic diagram of the image detection system for the sealing gasket of Example 3 of the present invention.
[0022] Figure 8 This is a module schematic diagram of the image detection system for the sealing gasket of Example 4 of the present invention.
[0023] Fig. 9 This is a schematic diagram of the structure of an electronic device for implementing the image detection method of a sealing gasket according to Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0024] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0025] Example 1
[0026] The image detection method of the sealing gasket of this embodiment is as follows: Figure 1 As shown, the image detection method is used to perform image detection on the sealing gasket of the electrical connector on the battery pack, and the image detection method includes:
[0027] S11, controlling the sealing gasket visual inspection device to collect a target image; the target image includes an image of an area corresponding to the target sealing gasket.
[0028] S12: Detect the state of the target sealing gasket based on the target image and standard information.
[0029] The electrical connector in this embodiment includes but is not limited to a circuit organization structure for connecting the battery pack in the battery pack. It is arranged at the end of the battery pack. The electrical connector gasket and the electrical connector are arranged to fit each other for insulation, waterproofing, dustproofing and fixation. By performing image detection on the target gasket of the electrical connector, it is possible to effectively avoid abnormal conditions of the target gasket that may cause the waterproofing to fail, and it is possible to ensure that the target gasket of the battery installed on the battery-swap vehicle can form an effective seal with the vehicle-end electrical connector. The performance of various indicators of the electrical connector is indirectly ensured by the good degree of sealing. This image detection can also be used to determine whether there is foreign matter blocking the end face of the electrical connector that affects the connection effect.
[0030] For the above step S11, the target image is determined according to the setting position of the electrical connector on the battery pack. Since the target image includes the image of the sealing gasket of the electrical connector on the battery pack that has been completely detached, the partial image that has not been completely detached, and the overall image that has not been detached, the target image can be used to detect whether the status of the sealing gasket of the electrical connector is normal.
[0031] For the above step S12, the standard information corresponding to each type of battery pack is different. By using the collected target image and standard information to perform status detection on the target sealing gasket, it is possible to accurately detect whether the sealing gasket has fallen off from the sealing port of the electrical connector of the battery pack, causing the battery pack to lose protection; or, it is possible to accurately detect whether the sealing gasket has undergone plastic deformation.
[0032] This solution makes full use of the gasket visual inspection device to carry out targeted image acquisition, and uses standard information and the acquired target image to detect the status of the gasket, so as to accurately and timely discover possible abnormal conditions of the gasket, and provide a basis for further maintenance or replacement of the gasket.
[0033] In an optional embodiment, Figure 2 As shown, step S12 specifically includes:
[0034] S121. Obtain standard information based on the model of the battery pack; the standard information includes an identification reference line of the target sealing gasket.
[0035] S122, dividing the target sealing gasket in the target image into a number of pixel intervals with equal spacing in the edge direction, and converting the pixel intervals into distance values through a preset algorithm; the distance value is used to represent the distance from the edge pixel point to the identification reference line.
[0036] S123: Determine the current state of the target sealing gasket according to the comparison result between the distance value and the preset range.
[0037] For the above step S121, the position of the identification reference line of the target sealing gasket corresponding to different types of battery packs is different. After using a camera to identify the outline of the battery pack electrical connector, the image is accurately positioned pixel by pixel to determine the outer shape area of the electrical connector, and the line between the inflection points on both sides of the outer edge of the electrical connector is found as the identification reference line. The line between the inflection points on both sides of the front end face of the electrical connector can also be found as the identification reference line.
[0038] For the above step S122, the corresponding part of the target gasket in the target image is divided into a number of pixel intervals at equal intervals along its edge direction, and each pixel interval is converted into a distance value using a preset algorithm. By obtaining S1-S n distance values, so that for the above multiple different distance values, it is possible to judge the state of the target sealing gasket, ensure the image detection result, and at the same time, compared with the detection method of calculating the distance between each edge pixel point and the identification baseline to judge the current state of the target sealing gasket, the amount of calculation of the image detection process is reduced, while taking into account the detection efficiency.
[0039] For the above step S123, the preset range is determined by the minimum lower limit value and the maximum upper limit value of the target sealing gasket from the baseline. When the distance value is less than the minimum lower limit value, the target sealing gasket is protruding or detached, and the current state of the target sealing gasket is determined to be an abnormal state; when the distance value is greater than the maximum upper limit value, the target sealing gasket is missing or disconnected, and the current state of the target sealing gasket is determined to be an abnormal state; when the distance value is greater than the minimum lower limit value and less than the maximum upper limit value, the target sealing gasket is in a normal fit, and the current state of the target sealing gasket is determined to be a normal state.
[0040] Step S123 specifically includes:
[0041] If the distance value falls within the preset range, it is determined that the target gasket is in a normal state.
[0042] If the distance value does not fall within the preset range, it is determined that the target sealing gasket is in an abnormal state; the abnormal state includes any one of a detached state, a protruding state, a missing state and a disconnected state.
[0043] The pixel points in several pixel intervals in the edge direction can reflect the state of the sealing gasket of the electrical connector at its setting position. By comparing the distance value with the preset range, possible concave and convex points can be found, and then it can be determined whether the target sealing gasket of the electrical connector is deformed, missing or disconnected.
[0044] This solution can simply, directly and accurately determine whether the sealing gasket is in a normal state or an abnormal state by comparing the distance value with a preset range.
[0045] Specifically, in this embodiment, the sealing gasket visual inspection device is arranged on the battery rack, and the battery rack includes a plurality of battery slots, each of which can store a corresponding preset battery pack. Accordingly, a sealing gasket visual inspection device is installed in each battery slot, and is arranged corresponding to the position of the sealing gasket of the electrical connector of the battery pack, such as Figure 3 As shown, before step S11, the image detection method further includes:
[0046] S1011. Identify the model of the battery pack to be tested.
[0047] S1012. Confirm the battery compartment corresponding to the battery pack based on the battery pack model, and transfer the battery pack to the corresponding battery compartment.
[0048] With respect to the above steps S1011-S1012, before the battery pack is placed in the battery compartment, the model of the battery swapping vehicle can be identified with the help of the entrance identification system of the battery swapping station to obtain the model of the battery pack, or the model of the battery pack removed from the battery swapping vehicle can be detected with the help of the detection system in the battery swapping station, thereby confirming the battery compartment corresponding to the battery pack of this model and transporting the battery pack to the battery compartment, so that the sealing gasket of the electrical connector of the battery pack can be inspected by the sealing gasket visual inspection device in the battery compartment.
[0049] In this solution, each battery slot only corresponds to a specific type of battery pack, and the sealing gasket visual inspection device is fixed based on the specific type of battery pack in the battery slot, thereby completing the model identification of the battery pack before the battery pack is transferred to the battery slot. This can fully ensure that the battery pack is accurately transferred to the corresponding battery slot, and facilitate the sealing gasket visual inspection device to directly inspect the sealing gasket on the electrical connector of the battery pack, taking into account the accuracy and efficiency of the inspection of the sealing gasket of the electrical connector.
[0050] In other embodiments, the sealing gasket visual inspection device can also be set up in other equipment in the battery transfer station, such as the battery transfer equipment, as long as it is on the route or equipment that must be passed during the battery pack transfer process.
[0051] In an optional embodiment, a light source device is provided on a side of the target sealing gasket facing away from the sealing gasket visual inspection device.
[0052] In another optional implementation, a light source device is further provided on the battery rack, and the light source device and the sealing gasket visual inspection device are respectively located on both sides of the target sealing gasket.
[0053] like Figure 4 As shown, before step S11, it also includes:
[0054] S10, turning on the light source device to provide the sealing gasket visual inspection device with a light source directed toward the target sealing gasket.
[0055] There may be insufficient light in the working environment when using the sealing gasket visual inspection device for image inspection, resulting in poor quality of the captured image and affecting the subsequent image inspection of the target sealing gasket. Therefore, before using the sealing gasket visual inspection device for image inspection, start the light source device in the direction of the target sealing gasket to ensure that the illumination range can completely cover the range of the target sealing gasket of the electrical connector.
[0056] The light source emitted by the light source device of this scheme increases the intensity of ambient light, so that the captured image has better pixel quality, providing a more reliable basis for image processing; by setting the light source device and the sealing gasket visual detection device for use in conjunction, the image of the target sealing gasket of the electrical connector captured can be made clearer and the recognition of edge pixels can be higher; when the target sealing gasket is located between the light source device and the sealing gasket visual detection device, the light source device acts as a backlight source, enhancing the detection accuracy of the pixels at the edge of the image, thereby further increasing the accuracy of detection of the target sealing gasket of the electrical connector.
[0057] The gasket image detection method of the present embodiment makes full use of the process of the battery pack being removed from the battery-swapping vehicle and transferred to the battery rack during battery-swapping. By taking images and combining them with the gasket detection standards corresponding to different battery pack models, targeted image detection is performed. This can accurately and timely identify possible problems with the gaskets of electrical connectors, provide a basis for further maintenance or gasket replacement, and effectively avoid safety hazards in battery-swapping vehicles.
[0058] Example 2
[0059] The image detection method of the sealing gasket in this embodiment is improved on the basis of the embodiment 1. In this embodiment, the sealing gasket visual detection device is arranged in the battery compartment where the battery pack can be stored and the position of the sealing gasket visual detection device is adjustable, such as Figure 5 As shown, before step S11, the image detection method further includes:
[0060] S1011. Identify the model of the battery pack to be tested.
[0061] S1013, obtaining the position information of the gasket visual inspection device, and determining whether the gasket visual inspection device is in a preset position corresponding to the battery pack. If not, executing step S1014.
[0062] S1014: Based on the model of the battery pack, adjust the current posture of the sealing gasket visual inspection device to a preset posture.
[0063] For the above steps S1011-S1014, the battery rack has an electrical connection device that docks with the electrical connector of the battery pack to achieve charging, discharging and communication. After the battery pack is transferred to the battery compartment, the electrical connector can communicate with the electrical connection device to identify the model of the battery pack to be detected. The model of the battery pack can also be obtained by image acquisition before the battery pack is transferred to the battery compartment. The posture information includes at least one of the position information and posture information of the sealing gasket visual inspection device. Whether the sealing gasket visual inspection device is currently in a preset posture is detected based on the position information and / or posture information. Different battery pack models correspond to different preset postures of the sealing gasket visual inspection device. The model of the battery pack is obtained, and the sealing visual inspection device is gradually adjusted to the corresponding preset position and / or preset posture.
[0064] In this solution, the sealing gasket visual inspection device is set to be adjustable, and each battery compartment is compatible with multiple types of battery packs. The model of the battery pack is identified before or after the battery pack is correctly transferred to the corresponding battery compartment. Therefore, based on the model of the battery pack, the preset position of the sealing gasket visual inspection device corresponding to the position of the electrical connector of the battery pack can be determined, and the position of the sealing gasket visual inspection device can be adjusted to accurately detect the status of the sealing gasket. At the same time, the adjustable sealing gasket visual inspection device can expand the detection range, thereby improving the flexibility and accuracy of the sealing gasket detection of the electrical connector.
[0065] like Figure 6 As shown, step S1014 specifically includes:
[0066] S10141. Obtain coordinate parameter values corresponding to the current position of the sealing gasket visual inspection device based on the posture information.
[0067] S10142. Calculate the adjustment amount according to the coordinate parameter value and the coordinate parameter value corresponding to the preset posture.
[0068] S10143. Control the sealing gasket visual inspection device to adjust to a preset position according to the adjustment amount.
[0069] This solution automatically adjusts the posture of the sealing gasket visual inspection device according to the calculated adjustment amount, thereby ensuring the accuracy of the posture adjustment.
[0070] The sealing gasket visual inspection device comprises a mounting bracket arranged on a battery rack and a visual inspection device movable on the mounting bracket.
[0071] In one embodiment, step S10143 specifically includes: adjusting the visual inspection device to a position corresponding to a preset posture along the length direction of the battery pack;
[0072] In another embodiment, step S10143 specifically includes: adjusting the visual inspection device to a position corresponding to a preset posture along the width direction of the battery pack.
[0073] In other embodiments, the visual inspection device may be adjusted along both the length direction and the width direction of the battery pack.
[0074] This solution adaptively adjusts the visual inspection equipment along the length direction or the width direction or both directions of the battery pack, thereby improving the accuracy and flexibility of the preset posture adjustment.
[0075] In the present embodiment, by performing model identification before or after the battery pack is transferred to the battery compartment, the information of the battery pack can be fully confirmed to adjust the sealing gasket visual inspection device based on the battery pack model; and when it is determined that the sealing gasket visual inspection device is not in the preset posture corresponding to the battery pack, the posture of the sealing gasket visual inspection device is automatically adjusted according to the calculated adjustment amount, thereby ensuring the accuracy of the posture adjustment and improving the accuracy of the image detection results.
[0076] Example 3
[0077] The image detection system of the sealing gasket of the present embodiment is used to perform image detection on the sealing gasket of the electrical connector on the battery pack, such as Figure 7 As shown, the image detection system includes: a sealing gasket visual detection device 310 and a detection module 320.
[0078] The sealing gasket visual inspection device 310 is arranged at a position corresponding to the sealing gasket on the battery rack and is used to collect a target image; the target image includes an image of an area corresponding to the target sealing gasket;
[0079] The detection module 320 is used to detect the state of the target sealing gasket based on the target image and the standard information.
[0080] The electrical connector in this embodiment includes but is not limited to a circuit organization structure for connecting the battery pack in the battery pack. It is arranged at the end of the battery pack. The electrical connector gasket and the electrical connector are arranged to fit each other for insulation, waterproofing, dustproofing and fixation. By performing image detection on the target gasket of the electrical connector, it is possible to effectively avoid abnormal conditions of the target gasket that may cause the waterproofing to fail, and it is possible to ensure that the target gasket of the battery installed on the battery-swap vehicle can form an effective seal with the vehicle-end electrical connector. The performance of various indicators of the electrical connector is indirectly ensured by the good degree of sealing. This image detection can also be used to determine whether there is foreign matter blocking the end face of the electrical connector that affects the connection effect.
[0081] The target image is determined based on the setting position of the electrical connector on the battery pack. Since the target image includes the image of the sealing gasket of the electrical connector on the battery pack that has been completely detached, the partial image of the sealing gasket that has not been completely detached, and the overall image of the sealing gasket that has not been detached, the target image collected by the sealing gasket visual inspection device 310 can be used to detect whether the status of the sealing gasket of the electrical connector is normal.
[0082] The standard information corresponding to each type of battery pack is different. The detection module 320 uses the collected target image and standard information to perform status detection on the target sealing gasket, so as to accurately detect whether the sealing gasket has fallen off from the sealing port of the electrical connector of the battery pack, causing the battery pack to lose protection; or, to accurately detect whether the sealing gasket has undergone plastic deformation.
[0083] This solution makes full use of the gasket visual inspection device to carry out targeted image acquisition, and uses standard information and the acquired target image to detect the status of the gasket, so as to accurately and timely discover possible abnormal conditions of the gasket, and provide a basis for further maintenance or replacement of the gasket.
[0084] In an optional embodiment, Figure 7 As shown, the detection module 320 specifically includes: a first acquisition unit 321 , a division unit 322 and a comparison unit 323 .
[0085] The first acquisition unit 321 is used to acquire standard information based on the model of the battery pack; the standard information includes an identification reference line of a target sealing gasket.
[0086] The division unit 322 is used to divide the target sealing gasket in the target image into a number of pixel intervals with equal spacing along the edge direction, and convert the pixel intervals into distance values through a preset algorithm; the distance value is used to represent the distance from the edge pixel point to the identification reference line.
[0087] The comparison unit 323 determines the current state of the target gasket according to the comparison result between the distance value and the preset range.
[0088] The positions of the identification reference lines of the target sealing gaskets corresponding to different types of battery packs are different, and the first acquisition unit 321 needs to obtain the battery pack model to determine the standard information. After using a camera to take a photo to identify the outline of the battery pack electrical connector, the image is accurately positioned pixel by pixel to determine the electrical connector shape area, and the line between the inflection points on both sides of the outer edge of the electrical connector is found as the identification reference line. The line between the inflection points on both sides of the front face of the electrical connector can also be found as the identification reference line.
[0089] The division unit 322 divides the corresponding part of the target gasket in the target image into a number of pixel intervals at equal intervals along the edge direction, and converts each pixel interval into a distance value by using a preset algorithm. n distance values, so that for the above multiple different distance values, it is possible to judge the state of the target sealing gasket, ensure the image detection result, and at the same time, compared with the detection method of calculating the distance between each edge pixel point and the identification baseline to judge the current state of the target sealing gasket, the amount of calculation of the image detection process is reduced, while taking into account the detection efficiency.
[0090] The preset range is determined by the minimum lower limit value and the maximum upper limit value of the target sealing gasket from the baseline. When the distance value is less than the minimum lower limit value, the target sealing gasket is protruding or detached, and the comparison unit 323 determines that the current state of the target sealing gasket is an abnormal state; when the distance value is greater than the maximum upper limit value, the target sealing gasket is missing or disconnected, and the comparison unit 323 determines that the current state of the target sealing gasket is an abnormal state; when the distance value is greater than the minimum lower limit value and less than the maximum upper limit value, the target sealing gasket is in a normal fit, and the comparison unit 323 determines that the current state of the target sealing gasket is a normal state.
[0091] The comparison unit 323 is specifically used for:
[0092] If the distance value falls within the preset range, it is determined that the target gasket is in a normal state.
[0093] If the distance value does not fall within the preset range, it is determined that the target sealing gasket is in an abnormal state; the abnormal state includes any one of a detached state, a protruding state, a missing state and a disconnected state.
[0094] The pixel points of several pixel intervals in the edge direction can reflect the state of the sealing gasket of the electrical connector at its setting position through the outer contour. When the outer contour represented by the pixel points is abnormally convex or concave compared with the preset contour, it can be considered that deformation has occurred. By comparing the distance value with the preset range, possible concave and convex points can be found, and then it can be determined whether the target sealing gasket of the electrical connector is deformed, missing or disconnected.
[0095] This solution can simply, directly and accurately determine whether the sealing gasket is in a normal state or an abnormal state by comparing the distance value with a preset range.
[0096] Specifically, in this embodiment, the sealing gasket visual inspection device is arranged on the battery rack, and the battery rack includes a plurality of battery slots, each of which can store a corresponding preset battery pack. Accordingly, a sealing gasket visual inspection device is installed in each battery slot, and is arranged corresponding to the position of the sealing gasket of the electrical connector of the battery pack, such as Figure 8 As shown, the image detection system further includes: a recognition module 301 and a confirmation module 302;
[0097] The identification module 301 is used to identify the model of the battery pack to be detected.
[0098] The confirmation module 302 confirms the battery compartment corresponding to the battery pack based on the model of the battery pack, and transfers the battery pack to the corresponding battery compartment.
[0099] The battery rack has an electrical connection device that docks with the electrical connector of the battery pack to achieve charging, discharging and communication. The identification module 301 communicates with the electrical connection device based on the electrical connector to identify the model of the battery pack to be detected. The confirmation module 302 determines the location of the battery compartment corresponding to the battery pack according to the acquired battery pack model to ensure the accuracy of the battery pack transfer.
[0100] This solution fixes the sealing gasket visual inspection device, and each battery compartment only corresponds to a specific model of battery pack. The model identification of the battery pack is completed before the battery pack is transferred to the battery compartment, which can fully ensure that the battery pack is accurately transferred to the corresponding battery compartment, and also reserves sufficient time for inspection, taking into account the accuracy and efficiency of the inspection of the sealing gasket of the electrical connector.
[0101] In other embodiments, the sealing gasket visual inspection device can also be set up in other equipment in the battery transfer station, such as the battery transfer equipment, as long as it is on the route or equipment that must be passed during the battery pack transfer process.
[0102] In an optional embodiment, a light source device is provided on a side of the target sealing gasket facing away from the sealing gasket visual inspection device.
[0103] In another optional implementation, a light source device is further provided on the battery rack, and the light source device and the sealing gasket visual inspection device are respectively located on both sides of the target sealing gasket.
[0104] like Figure 8 As shown, the image detection system of the sealing gasket further includes: a starting module 300;
[0105] The start module 300 is used to start the light source device to provide a light source toward the target sealing gasket for the sealing gasket visual inspection device.
[0106] There may be insufficient light in the working environment when using the sealing gasket visual inspection device for image inspection, resulting in poor quality of the captured image and affecting the subsequent image inspection of the target sealing gasket. Therefore, before using the sealing gasket visual inspection device for image inspection, start the light source device in the direction of the target sealing gasket to ensure that the illumination range can completely cover the range of the target sealing gasket of the electrical connector.
[0107] The light source emitted by the light source device of this scheme increases the intensity of ambient light, so that the captured image has better pixel quality, providing a more reliable basis for image processing; by setting the light source device and the sealing gasket visual detection device for use in conjunction, the image of the target sealing gasket of the electrical connector captured can be made clearer and the recognition of edge pixels can be higher; when the target sealing gasket is located between the light source device and the sealing gasket visual detection device, it acts as a backlight source, enhancing the detection accuracy of the pixels at the edge of the image, thereby further increasing the accuracy of detection of the target sealing gasket of the electrical connector.
[0108] The gasket image detection system of the present embodiment makes full use of the process of the battery pack being removed from the battery-swapping vehicle and transferred to the battery rack during battery swapping, and uses the gasket visual detection device to capture images. The detection module performs targeted image detection in combination with the gasket detection standards corresponding to different battery pack models, and can accurately and timely detect possible problems with the gaskets of electrical connectors, provide a basis for further maintenance or gasket replacement, and effectively avoid safety hazards in battery-swapping vehicles.
[0109] Example 4
[0110] The image detection system of the sealing gasket of this embodiment is improved on the basis of the embodiment 3. In this embodiment, the sealing gasket visual detection device is arranged in the battery compartment where the battery pack can be stored and the position of the sealing gasket visual detection device is adjustable, such as Figure 8 As shown, the image detection system further includes: a recognition module 301, a judgment module 303 and an adjustment module 304;
[0111] The identification module 301 is used to identify the model of the battery pack to be detected.
[0112] The judgment module 303 is used to obtain the position information of the sealing gasket visual inspection device and judge whether the sealing gasket visual inspection device is in a preset position corresponding to the battery pack. If not, the adjustment module 304 is called.
[0113] The adjustment module 304 is used to adjust the current posture of the sealing gasket visual inspection device to a preset posture based on the model of the battery pack.
[0114] The battery rack has an electrical connection device that docks with the electrical connector of the battery pack to achieve charging, discharging and communication. The identification module 301 can communicate with the electrical connection device based on the electrical connector to identify the model of the battery pack to be detected after the battery pack is transferred to the battery compartment. The identification module 301 can also obtain the model of the battery pack by image acquisition before the battery pack is transferred to the battery compartment. The posture information includes at least one of the position information and posture information of the sealing gasket visual inspection device. The judgment module 303 simultaneously detects whether the sealing gasket visual inspection device is currently in a preset posture based on the position information and / or posture information. Different battery pack models correspond to different preset postures of the sealing gasket visual inspection device. After obtaining the battery pack model, the adjustment module 304 gradually adjusts the sealing visual inspection device to the corresponding preset position and / or preset posture.
[0115] In this solution, the sealing gasket visual inspection device is set to be adjustable, and each battery compartment is compatible with multiple types of battery packs. The model of the battery pack is identified before or after the battery pack is correctly transferred to the corresponding battery compartment. Therefore, based on the model of the battery pack, the preset position of the sealing gasket visual inspection device corresponding to the position of the electrical connector of the battery pack can be determined, and the position of the sealing gasket visual inspection device can be adjusted to accurately detect the status of the sealing gasket. At the same time, the adjustable sealing gasket visual inspection device can expand the detection range, thereby improving the flexibility and accuracy of the sealing gasket detection of the electrical connector.
[0116] like Figure 8 As shown, the adjustment module 304 specifically includes: a second acquisition unit 3041 , a calculation unit 3042 and an adjustment unit 3043 .
[0117] The second acquisition unit 3041 is used to acquire the coordinate parameter value corresponding to the current position of the sealing gasket visual inspection device based on the posture information.
[0118] The calculation unit 3042 is used to calculate the adjustment amount according to the coordinate parameter value and the coordinate parameter value corresponding to the preset posture.
[0119] The adjustment unit 3043 is used to control the sealing gasket visual inspection device to adjust to a preset posture according to the adjustment amount.
[0120] This solution automatically adjusts the posture of the sealing gasket visual inspection device according to the calculated adjustment amount, thereby ensuring the accuracy of the posture adjustment.
[0121] The sealing gasket visual inspection device comprises a mounting bracket arranged on a battery rack and a visual inspection device movable on the mounting bracket.
[0122] In one embodiment, the adjustment unit 3043 is specifically used to: adjust the visual inspection device to a position corresponding to a preset posture along the length direction of the battery pack;
[0123] In another embodiment, the adjustment unit 3043 is specifically used to adjust the visual inspection device to a position corresponding to a preset posture along the width direction of the battery pack.
[0124] In other embodiments, the visual inspection device may be adjusted both along the length direction and along the width direction of the battery pack.
[0125] This solution adaptively adjusts the visual inspection equipment along the length direction or the width direction or both directions of the battery pack, thereby improving the accuracy and flexibility of the preset posture adjustment.
[0126] The image detection system of the sealing gasket in the present embodiment can fully confirm the information of the battery pack and adjust the sealing gasket visual detection device based on the battery pack model by performing model identification before or after the battery pack is transferred to the battery compartment. When it is determined that the sealing gasket visual detection device is not in a preset posture corresponding to the battery pack, the posture of the sealing gasket visual detection device is automatically adjusted according to the calculated adjustment amount, thereby ensuring the accuracy of the posture adjustment and improving the accuracy of the image detection results.
[0127] Example 5
[0128] Fig. 9 The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the image detection method of the sealing gasket in Embodiment 1 or the image detection method of the sealing gasket in Embodiment 2 is implemented when the processor executes the program. Fig. 9 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0129] like Fig. 9 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).
[0130] The bus 93 includes a data bus, an address bus, and a control bus.
[0131] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0132] The memory 92 may also include a program / utility 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0133] The processor 91 executes various functional applications and data processing by running the computer programs stored in the memory 92 , such as implementing the image detection method of the sealing gasket of Example 1 or the image detection method of the sealing gasket of Example 2 of the present invention.
[0134] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the model generating device 90 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 96. Fig. 9 As shown, the network adapter 96 communicates with other modules of the model-generated device 90 via the bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0135] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0136] Example 6
[0137] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the image detection method for the sealing gasket of Embodiment 1 or the image detection method for the sealing gasket of Embodiment 2 is implemented.
[0138] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0139] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the image detection method for the sealing gasket of Example 1 or the image detection method for the sealing gasket of Example 2.
[0140] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0141] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A sealing gasket image detection method for performing image detection on a sealing gasket of an electrical connector on a battery pack, characterized in that: The image detection method comprises: Controlling the sealing gasket visual inspection device to collect a target image; the target image includes an image of an area corresponding to the target sealing gasket; The state of the target sealing gasket is detected based on the target image and standard information.
2. The image detection method of the sealing gasket according to claim 1, characterized in that: The step of detecting the state of the target sealing gasket based on the target image and the standard information includes: Acquiring the standard information based on the model of the battery pack; the standard information includes an identification reference line of the target sealing gasket; Divide the target sealing gasket in the target image into a number of pixel intervals at equal intervals in the edge direction, and convert the pixel intervals into distance values using a preset algorithm; the distance values are used to represent the distance from the edge pixel point to the identification reference line; The current state of the target sealing gasket is determined according to a comparison result between the distance value and a preset range.
3. The image detection method of the sealing gasket according to claim 2, characterized in that: The step of determining the current state of the target sealing gasket according to the comparison result between the distance value and the preset range includes: If the distance value falls within the preset range, it is determined that the target sealing gasket is in a normal state; If the distance value does not fall within the preset range, it is determined that the target sealing gasket is in an abnormal state; the abnormal state includes any one of a detached state, a protruding state, a missing state and a disconnected state.
4. The image detection method of the sealing gasket according to any one of claims 1 to 3, characterized in that: The sealing gasket visual inspection device is disposed in a battery compartment for storing a battery pack and is disposed corresponding to the position of the sealing gasket of the electrical connector of the battery pack. Before the step of controlling the sealing gasket visual inspection device to collect a target image, the image inspection method further includes: Identify the model of the battery pack to be tested; The battery compartment corresponding to the battery pack is confirmed based on the model of the battery pack, and the battery pack is transferred to the corresponding battery compartment.
5. The image detection method of the sealing gasket according to any one of claims 1 to 3, characterized in that: The sealing gasket visual inspection device is disposed in a battery compartment where a battery pack can be stored and the position of the sealing gasket visual inspection device is adjustable. Before the step of controlling the sealing gasket visual inspection device to collect a target image, the image detection method further includes: Identify the model of the battery pack to be tested; Acquire the posture information of the sealing gasket visual inspection device, and determine whether the sealing gasket visual inspection device is in a preset posture corresponding to the battery pack; If not, based on the model of the battery pack, the current posture of the sealing gasket visual inspection device is adjusted to the preset posture.
6. The image detection method of the sealing gasket according to claim 5, characterized in that: The step of adjusting the current posture of the sealing gasket visual inspection device to the preset posture comprises: Acquire a coordinate parameter value corresponding to a current position of the sealing gasket visual inspection device based on the posture information; Calculating an adjustment amount according to the coordinate parameter value and the coordinate parameter value corresponding to the preset posture; The sealing gasket visual inspection device is controlled to adjust to the preset posture according to the adjustment amount.
7. The image detection method of the sealing gasket according to claim 6, characterized in that: The sealing gasket visual inspection device comprises a mounting bracket disposed on the battery rack and a visual inspection device movable on the mounting bracket; The step of controlling the sealing gasket visual inspection device to adjust to the preset posture according to the adjustment amount includes: Adjusting the visual inspection device to a position corresponding to the preset posture along the length direction of the battery pack; And / or, adjusting the visual inspection device along the width direction of the battery pack to a position corresponding to the preset posture.
8. The image detection method for a sealing gasket according to any one of claims 1 to 3, characterized in that: A light source device is provided on the side of the target sealing gasket away from the sealing gasket visual detection device; Before the step of controlling the sealing gasket visual inspection device to collect the target image, the image inspection method further includes: The light source device is turned on to provide the sealing gasket visual inspection apparatus with a light source directed toward the target sealing gasket.
9. The image detection method for a sealing gasket according to any one of claims 1 to 3, characterized in that: A light source device is also provided on the battery rack, and the light source device and the sealing gasket visual detection device are respectively located on both sides of the target sealing gasket; Before the step of controlling the sealing gasket visual inspection device to collect the target image, the image inspection method further includes: The light source device is turned on to provide the sealing gasket visual inspection apparatus with a light source directed toward the target sealing gasket.
10. A sealing gasket image detection system for performing image detection on the sealing gasket of an electrical connector on a battery pack, characterized in that: The image detection system comprises: A sealing gasket visual inspection device is arranged at a position corresponding to the sealing gasket and is used to collect a target image; the target image includes an image of an area corresponding to the target sealing gasket; A detection module is used to perform status detection on the target sealing gasket based on the target image and standard information.
11. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the image detection method for the sealing gasket according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image detection method for the sealing gasket according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Production method of toothbrush head with visual detection function
CN122056713A
A toothbrush head production method with visual detection function
CN122056713B