Charging gun identification device and method and vehicle with charging gun identification device

By acquiring the image features of the charging gun probe through a photoelectric charging gun identification device, the problems of high difficulty and aesthetics in charging gun identification are solved, and efficient and safe charging gun identification and automatic charging port cover control are achieved.

CN121640429APending Publication Date: 2026-03-10BEIJING SEETRUM TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing charging gun identification technologies suffer from high identification difficulty, high false identification rate, impact on safety and ease of use, and the charging gun identification device affects the aesthetics of the vehicle.

Method used

A photoelectric charging gun identification device is adopted. The photosensitive module acquires the image features of the charging gun probe and uses the structural characteristics of the charging gun for identification. The photosensitive module is hidden in the vehicle body to improve aesthetics, and the control unit generates control signals to control the opening and closing of the charging port cover.

Benefits of technology

It improves the accuracy and efficiency of charging gun identification, ensures safety, and enhances the overall aesthetics and ease of use of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121640429A_ABST
    Figure CN121640429A_ABST
Patent Text Reader

Abstract

The invention relates to a charging gun recognition device and method and a vehicle with the charging gun recognition device. The charging gun recognition method comprises the steps that image information of a detected object is acquired; performing feature extraction on the image information of the detected object to obtain charging gun probe image features of the detected object; and determining a charging gun identification result based on the charging gun probe image features. Determining a charging gun identification result based on the charging gun probe image feature comprises the following steps: in response to matching of the charging gun probe image feature and at least one charging gun feature pattern in a plurality of charging gun feature patterns, determining that a target charging gun exists in the detected object; and judging that the target charging gun does not exist in the detected object in response to the condition that the charging gun probe image feature is not matched with any charging gun feature pattern in the plurality of charging gun feature patterns.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charging gun identification technology, and more specifically, to a charging gun identification device and method, as well as a vehicle equipped with a charging gun identification device. Background Technology

[0002] In recent years, intelligent recognition technology has been widely applied in daily life, industrial production, and medical fields, bringing great convenience to people. For example, intelligent recognition technology can be applied to the body control system of new energy vehicles, realizing automatic control of the charging port cover by recognizing the charging gun. For example, when a charging gun is detected approaching, the charging port cover is controlled to open automatically, and when the charging gun is detected to be removed, the charging port cover is controlled to close automatically.

[0003] However, existing charging gun identification technologies also face numerous challenges. For example, the wide variety of charging gun types increases the difficulty of intelligent identification. Misidentification of the charging gun can lead to the charging port cover being opened unintentionally, potentially causing danger. For instance, a metal object near the charging port cover accidentally touching the port could cause a short circuit, generating sparks and resulting in injury to people or property. Similarly, the charging port cover opening automatically during a car wash could also cause a short circuit. Low charging gun identification sensitivity can result in the charging port cover failing to open automatically or opening slowly when the charging gun approaches.

[0004] Therefore, a charging gun identification solution is needed to improve identification accuracy. Summary of the Invention

[0005] One advantage of this application is that it provides a charging gun identification device and method, as well as a vehicle equipped with the charging gun identification device, wherein the optical charging gun identification device identifies the charging gun based on the characteristics of the charging gun probe image, thereby improving the identification efficiency of the charging gun identification device.

[0006] One advantage of this application is that it provides a charging gun identification device and method, as well as a vehicle equipped with the charging gun identification device, wherein the optical charging gun identification device can determine the feature pattern based on the influence of the structural characteristics of the charging gun on its photosensitive module, thereby improving the identification accuracy of the charging gun identification device.

[0007] One advantage of this application is that it provides a charging gun identification device and method, as well as a vehicle equipped with the charging gun identification device. The charging gun identification device can be installed in a suitable position on the vehicle body, which not only allows it to be hidden inside the vehicle body structure, improving the overall aesthetics of the vehicle, but also enables image sensing while being hidden inside the vehicle body, ensuring its charging gun identification function.

[0008] According to one aspect of this application, a charging gun identification method is provided, comprising:

[0009] Acquire image information of the object being detected;

[0010] Feature extraction is performed on the image information of the object under test to obtain the charging gun probe image features of the object under test; and

[0011] Determining the charging gun identification result based on the features of the charging gun probe image includes:

[0012] In response to the matching of the charging gun probe image features with at least one of the charging gun feature patterns among a plurality of charging gun feature patterns, it is determined that a target charging gun exists in the tested object; and

[0013] In response to the fact that the features of the charging gun probe image do not match any of the charging gun feature patterns among the plurality of charging gun feature patterns, it is determined that there is no target charging gun in the tested object.

[0014] In the charging gun identification method according to this application, the plurality of charging gun feature patterns include: a single isosceles trapezoid pattern, a single triangle pattern, a bone-shaped pattern, and a double isosceles trapezoid pattern.

[0015] In the charging gun identification method according to this application, determining the presence of a target charging gun in the tested object in response to the charging gun probe image feature matching at least one of the charging gun feature patterns among a plurality of charging gun feature patterns includes: determining the presence of an AC charging gun in the tested object in response to the charging gun probe image feature matching at least one of the single isosceles trapezoid pattern and the single triangle pattern; and determining the presence of a DC charging gun in the tested object in response to the charging gun probe image feature matching at least one of the bone-shaped pattern and the double isosceles trapezoid pattern.

[0016] In the charging gun identification method according to this application, determining the presence of an AC charging gun in the tested object in response to the charging gun probe image feature matching at least one of the single isosceles trapezoid pattern and the single triangle pattern includes: determining the presence of an AC charging gun in the tested object in response to an ambient brightness greater than or equal to a preset value and the charging gun probe image feature matching the single isosceles trapezoid pattern; and determining the presence of an AC charging gun in the tested object in response to an ambient brightness less than the preset value and the charging gun probe image feature matching the single triangle pattern; determining the presence of a DC charging gun in the tested object in response to the charging gun probe image feature matching at least one of the bone-shaped pattern and the double isosceles trapezoid pattern includes: determining the presence of an AC charging gun in the tested object in response to an ambient brightness greater than or equal to a preset value and the charging gun probe image feature matching the bone-shaped pattern; and determining the presence of an AC charging gun in the tested object in response to an ambient brightness less than the preset value and the charging gun probe image feature matching the double isosceles trapezoid pattern.

[0017] In the charging gun identification method according to this application, the charging gun identification method further includes: in response to the charging gun identification result indicating that a target charging gun exists in the tested object and the type of the target charging gun is consistent with the type of charging gun adapted to the specified charging port, determining that the target charging gun is a matched charging gun; and in response to the charging gun identification result indicating that a target charging gun exists in the tested object and the type of the target charging gun is inconsistent with the type of charging gun adapted to the specified charging port, determining that the target charging gun is a non-matched charging gun.

[0018] In the charging gun identification method according to this application, the charging gun identification method further includes: acquiring the vehicle's state detection result; and generating a control signal based on the charging gun identification result and the vehicle's state detection result, including: generating a first control signal in response to the vehicle's state being in an active state, for controlling the charging gun identification device to enter a sleep state; generating a second control signal in response to the vehicle's state being in a power-off state, for controlling the charging gun identification device to enter an active state; generating a third control signal in response to the charging gun identification result indicating that a target charging gun exists in the tested object and the vehicle's state being in a closed state, for controlling the charging port cover to open; and generating a fourth control signal in response to the charging gun identification result indicating that a target charging gun does not exist in the tested object, for controlling the charging port cover to close.

[0019] According to another aspect of this application, a charging gun identification device is provided, comprising:

[0020] The photosensitive module acquires image information of the object being detected.

[0021] A control unit electrically connected to the photosensitive module is used to acquire the charging gun identification result. The control unit includes:

[0022] The image preprocessing module is used to preprocess the image information of the object under test;

[0023] The feature extraction module is used to extract features from the image information of the object under test to obtain the charging gun probe image features of the object under test; and

[0024] The target recognition module is used to determine the charging gun recognition result based on the charging gun probe image features, and is further used to determine that a target charging gun exists in the tested object in response to the charging gun probe image features matching at least one of the charging gun feature patterns among a plurality of charging gun feature patterns; and to determine that no target charging gun exists in the tested object in response to the charging gun probe image features not matching any of the charging gun feature patterns among a plurality of charging gun feature patterns.

[0025] In the charging gun identification device according to this application, the plurality of charging gun feature patterns include: a single isosceles trapezoid pattern, a single triangle pattern, a bone-shaped pattern, and a double isosceles trapezoid pattern.

[0026] In the charging gun identification device according to this application, the target identification module is further configured to determine that an AC charging gun exists in the object under test in response to the charging gun probe image feature matching at least one of the single isosceles trapezoidal pattern and the single triangle pattern; and to determine that a DC charging gun exists in the object under test in response to the charging gun probe image feature matching at least one of the bone-shaped pattern and the double isosceles trapezoidal pattern.

[0027] In the charging gun identification device according to this application, the target identification module is further configured to determine that an AC charging gun exists in the tested object when the ambient brightness is greater than or equal to a preset value and the charging gun probe image feature matches the single isosceles trapezoidal pattern; to determine that an AC charging gun exists in the tested object when the ambient brightness is less than the preset value and the charging gun probe image feature matches the single triangle pattern; to determine that an AC charging gun exists in the tested object when the ambient brightness is greater than or equal to the preset value and the charging gun probe image feature matches the bone-shaped pattern; and to determine that an AC charging gun exists in the tested object when the ambient brightness is less than the preset value and the charging gun probe image feature matches the double isosceles trapezoidal pattern.

[0028] In the charging gun identification device according to this application, the target identification module is further configured to determine that the target charging gun is a matched charging gun in response to the charging gun identification result indicating that a target charging gun exists in the tested object and the type of the target charging gun is consistent with the type of charging gun adapted to the specified charging port; and to determine that the target charging gun is a non-matched charging gun in response to the charging gun identification result indicating that a target charging gun exists in the tested object and the type of the target charging gun is inconsistent with the type of charging gun adapted to the specified charging port.

[0029] In the charging gun identification device according to this application, the target identification module is further configured to acquire the vehicle's state detection result; and generate a control signal based on the charging gun identification result and the vehicle's state detection result. The target identification module is further configured to generate a first control signal in response to the vehicle being in a startup state, for controlling the charging gun identification device to enter a sleep state; generate a second control signal in response to the vehicle being in a power-off state, for controlling the charging gun identification device to enter a working state; generate a third control signal in response to the charging gun identification result indicating the presence of a target charging gun in the tested object and the vehicle being in a closed state, for controlling the charging port cover to open; and generate a fourth control signal in response to the charging gun identification result indicating the absence of a target charging gun in the tested object, for controlling the charging port cover to close.

[0030] In the charging gun identification device according to this application, the photosensitive module includes a photosensitive sensor and an optical component located on the photosensitive path of the photosensitive sensor.

[0031] In the charging gun identification device according to this application, the photosensitive sensor includes a spectral chip, and the optical components include an optical lens and a light-diffusing element.

[0032] In the charging gun identification device according to this application, the charging gun identification device further includes an infrared light.

[0033] According to another aspect of this application, a vehicle with a charging gun identification device is provided, comprising:

[0034] A vehicle equipped with a charging gun identification device, characterized in that it comprises:

[0035] The vehicle body includes a main body, a charging port disposed on the main body, and a charging port cover movably mounted on the charging port; and

[0036] The charging gun identification device described above is installed on the vehicle body.

[0037] In the vehicle equipped with a charging gun identification device according to this application, the charging gun identification device is obstructibly mounted in the vehicle body, and the vehicle body has a light-transmitting area corresponding to the photosensitive module of the charging gun identification device.

[0038] In the vehicle equipped with a charging gun identification device according to this application, the photosensitive module of the charging gun identification device is installed on any one of the following: the inside of the charging port cover, the inside of the photomask of the taillight, and the inside of the vehicle logo.

[0039] In the vehicle equipped with a charging gun identification device according to this application, a filterable resin material is provided in the light-transmitting area to form a filter located on the light-sensing path of the photosensitive sensor of the charging gun identification device.

[0040] In the vehicle equipped with a charging gun identification device according to this application, the charging gun identification device is installed on the vehicle body without obstruction, and the photosensitive module of the charging gun identification device is installed on any one of the wheel arch, fender, and air intake grille of the vehicle. Attached Figure Description

[0041] Various other advantages and benefits of this application will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. Furthermore, the same reference numerals denote the same parts throughout the drawings.

[0042] Figure 1 The illustration shows a perspective view of a vehicle equipped with a charging gun identification device according to an embodiment of this application.

[0043] Figure 2 The figure shows a schematic diagram of the installation position of the charging gun identification device according to an embodiment of this application.

[0044] Figure 3 The figure shows a schematic block diagram of a charging gun identification device according to an embodiment of this application.

[0045] Figure 4 The diagram shows a partial schematic of an AC charging gun.

[0046] Figure 5 The diagram shows a partial schematic of a DC charging gun.

[0047] Figure 6 The diagram illustrates the characteristic markings of a charging gun.

[0048] Figure 7 The illustration shows a schematic diagram of the characteristic patterns of a charging gun.

[0049] Figure 8 The illustration shows a schematic diagram of another charging gun's characteristic pattern.

[0050] Figure 9 The illustration shows a schematic diagram of another charging gun's characteristic pattern.

[0051] Figure 10 The illustration shows a schematic diagram of another charging gun's characteristic pattern.

[0052] Figure 11 The figure illustrates the confidence distribution of the identification results of the charging gun identification device according to an embodiment of this application.

[0053] Figure 12 The illustration shows a schematic diagram of a charging gun identification method according to an embodiment of this application. Detailed Implementation

[0054] Hereinafter, exemplary embodiments according to this application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments of this application. It should be understood that this application is not limited to the exemplary embodiments described herein.

[0055] like Figures 1 to 2 As shown, a vehicle 100 with a charging gun identification device according to an embodiment of this application is illustrated. The vehicle 100 with the charging gun identification device includes a vehicle body 10 and a charging gun identification device 20 mounted on the vehicle body 10. The charging gun identification device 20 can be used to identify the charging gun 200 and control the opening and closing of the charging port cover 13. The charging gun identification device 20 is suitable for use in new energy vehicles and can also be used in other vehicles that are charged by the charging gun 200.

[0056] Specifically, the vehicle body 10 includes a vehicle body 11, a charging port 12 disposed on the vehicle body 11, and a charging port cover 13 movably mounted on the charging port 12. The vehicle 100 equipped with a charging gun identification device has a charging port 14 within the charging port 12 for connecting a charging gun 200. When the charging gun identification device 20 detects a charging gun 200 matching the charging port 14 approaching the charging port cover 13, it controls the charging port cover 13 to open, exposing the charging port 14 so that the charging gun 200 can connect to the charging port 14. When the charging gun identification device 20 detects the charging gun 200 leaving the charging port 14, it controls the charging port cover 13 to close, covering the charging port 14 to prevent accidents.

[0057] like Figure 3As shown, the charging gun identification device 20 includes a photosensitive module 21 and a control unit 22. The photosensitive module 21 is used to acquire image information of the object being detected, and the control unit 22 is used to identify the charging gun 200 through the image information of the object being detected and generate corresponding control signals.

[0058] More specifically, the photosensitive module 21 includes an optical component 211 and a photosensitive sensor 212. The optical component 211 is located at the front end of the photosensitive sensor 212, that is, on the light-incident side of the photosensitive sensor 212, and is located on the light-sensing path of the photosensitive sensor 212. The charging gun identification device 20 receives light signals through the photosensitive module 21 and uses its photosensitive sensor 212 to achieve photoelectric conversion to obtain image information of the detected object. The optical component 211 includes a lens group 2111, and the photosensitive sensor 212 can be an image sensor or photosensitive array such as a CCD (Charge-Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor).

[0059] Preferably, the optical component 211 can operate in the infrared band, facilitating accurate identification of the charging gun 200 in relatively dark environments. Correspondingly, the charging gun identification device 20 can be equipped with an infrared lamp (not shown in the figure) for supplementary lighting.

[0060] In one modified embodiment of this application, the optical components 211 of the photosensitive module 21 include a lens group 2111 and a light homogenizer (not shown in the figure) for homogenizing the incident light, and the photosensitive sensor 212 is a spectral chip. When the photosensitive sensor 212 is implemented as a spectral chip, the charging gun identification device 20 can not only obtain the image information of the detected object through the photosensitive sensor 212, but also obtain the spectral information of the detected object for subsequent charging gun identification.

[0061] In this modified embodiment, the lens group 2111 and the light homogenizer of the optical component 211 are sequentially located along the light incident direction on the photosensitive path of the spectral chip, with the light homogenizer located between the spectral chip and the lens group 2111. Optionally, the light homogenizer and the lens group 2111 of the optical component 211 may also be sequentially located along the light incident direction on the photosensitive path of the spectral chip, with the lens group 2111 located between the spectral chip and the light homogenizer.

[0062] The spectral chip includes a filter structure and an image sensor. The filter structure is a broadband filter structure in the frequency domain or wavelength domain. The transmittance of different filter structures for different wavelengths is not exactly the same. The filter structure can be a metasurface, photonic crystal, nanopillar, multilayer film, dye, quantum dot, MEMS (microelectromechanical systems), FP etalon, cavity layer, waveguide layer, diffraction element, or other structures or materials with filtering properties.

[0063] It is worth mentioning that the charging gun identification device 20 is usually installed in a certain position on the vehicle near the charging port 12. If the installation position of the charging gun identification device 20 is not processed, the charging gun identification device 20 will be quite obtrusive and affect the overall aesthetics of the vehicle. On the other hand, it is also necessary to consider whether the installation position is suitable for installation, that is, it is necessary to consider that the charging gun identification device 20 can be installed in this position and can perform identification work.

[0064] In this embodiment, the charging gun identification device 20 is suitable for installation at locations such as behind the logo S1 of the vehicle, headlights, wheel arches, fenders, and grille areas. This allows the charging gun identification device 20 to be hidden within the vehicle body 10 after being installed at these locations, enhancing the overall aesthetics of the vehicle. It also makes the charging gun identification device 20 suitable for identification work after being installed at these locations, ensuring that its identification function is not affected by the obstruction of the vehicle body 10 structure while being hidden within the vehicle body 10.

[0065] It is worth mentioning that the charging gun identification device 20 is provided with an optical axis. The optical axis can be understood as the light ray (the light path perpendicular to the surface of the image sensor) at the center of the effective photosensitive area (actual identification area) of the image sensor of the charging gun identification device 20. The charging port 14 can also define a center point, for example, it can be the geometric center of the pattern formed by the charging probe 2003 and / or the charging hole, etc., and further define a central perpendicular line passing through the center point and perpendicular to the charging port 14 toward the surface of the charging port cover 13. The optical axis of the charging gun identification device 20 and the central perpendicular line of the charging port 14 preferably form a certain angle, that is, the optical axis of the charging gun identification device 20 and the central perpendicular line of the charging port 14 form a certain angle. The angle is preferably less than 90°, preferably less than or equal to 45°, and most preferably less than or equal to 20°; it can also be basically equal to 0°, that is, the two are parallel. Since users typically hold the charging gun 200 directly in front of the charging port 12, a smaller angle between the optical axis of the charging gun identification device 20 and the center vertical line of the charging port 14 is beneficial for the charging gun identification device 20 to quickly and accurately obtain information about the charging gun 200; to a certain extent, it can also reduce the requirements for the field of view of the charging gun identification device 20.

[0066] Furthermore, the charging gun identification device 20 is used to identify the presence of the charging gun 200, and then controls the opening of the charging port cover 13 to achieve automatic charging. Therefore, the charging gun identification device 20 and the charging port 12 should be positioned relatively close to each other. For example, the center distance between the charging gun identification device 20 and the charging port 14 should be less than or equal to 50cm, preferably less than or equal to 30cm, and if installation is possible, it can be further less than or equal to 15cm.

[0067] In one embodiment of this application, such as Figure 1 and Figure 2 As shown, the charging gun identification device 20 can be disposed inside the charging port 12 of the vehicle, located inside the charging port cover 13, that is, on the side facing the middle of the vehicle body 10. When the charging port cover 13 is in the closed state, the charging gun identification device 20 and the charging port 12 are covered by the charging port cover 13, which protects the charging gun identification device 20. The charging port cover 13 has a light-transmitting area 101 corresponding to the photosensitive module 21 of the charging gun identification device 20. The light-transmitting area 101 is made of transparent material to ensure that light can pass through the charging port cover 13 and enter the charging gun identification device 20. The car logo S1 can be disposed in the light-transmitting area 101, serving a decorative purpose while concealing the charging gun identification device 20, allowing customers to experience charging gun identification "unobtrusively".

[0068] It is worth mentioning that the car logo S1 is made of acrylic or other types of resin materials with a certain degree of light transmittance. While allowing light to pass through, it can also filter the light, essentially acting as a filter with the logo S1 pattern. For different types, materials, and colors of car logos S1, appropriate feature extraction methods and / or judgment methods can be selected.

[0069] In a modified embodiment of this application, the photosensitive module 21 of the charging gun identification device 20 is not covered by the charging port cover 13. Specifically, the charging gun identification device 20 is disposed inside the charging port 12. In this embodiment, the charging port cover 13 preferably has a hollow structure. The charging port cover 13 can cover the charging port 14 inside the charging port 12. However, the hollow structure of the charging port cover 13 corresponds to the photosensitive module 21 of the charging gun identification device 20, so that the photosensitive module 21 of the charging gun identification device 20 is not covered by the charging port cover 13.

[0070] In another embodiment, the vehicle includes wheel arches, i.e., chrome strips along the upper edge of the tires, with the charging port 12 and the charging port cover 13 adjacent to the wheel arches, and the charging gun identification device 20 disposed on the wheel arches of the vehicle. Since the wheel arches can be customized and then assembled onto the vehicle body 11, the charging gun identification device 20 can be installed on the wheel arches first, and then the wheel arches with the charging gun identification device 20 installed can be installed in the predetermined installation area of ​​the wheel arches on the vehicle body 11.

[0071] Optionally, a mounting hole can be provided on the wheel arch at a position corresponding to the charging gun identification device 20, and a light-transmitting cover can be installed at the mounting hole to allow light to enter the charging gun identification device 20 from the cover. The area where the cover is located forms the light-transmitting area 101 of the wheel arch. Preferably, the shape of the cover and the portion of the wheel arch surrounding the cover transition smoothly to maintain the aesthetics of the wheel arch.

[0072] Optionally, a hollow structure can be provided at the position of the wheel arch corresponding to the charging gun identification device 20, with the charging gun identification device 20 corresponding to the hollow structure, allowing light to directly enter the charging gun identification device 20 through the hollow structure. Further optionally, the shape of the charging gun identification device 20 is consistent with the shape of the hollow structure, and the charging gun identification device 20 is fitably embedded in the hollow structure. Preferably, the charging gun identification device 20 and the portion of the wheel arch surrounding the charging gun identification device 20 form a smooth transition, maintaining the aesthetics of the wheel arch.

[0073] It is worth mentioning that this embodiment does not require any additional design to the vehicle body 11. It only requires installing the charging gun identification device 20 on the existing wheel arch, that is, designing the installation position of the charging gun identification device 20 on the wheel arch. The existing wheel arch can be replaced with a wheel arch with the charging gun identification device 20.

[0074] In another embodiment, the vehicle includes a taillight assembly, which includes a light source and a light-transmitting cover over the light source. The light cover is a light-transmitting element, allowing light emitted from the taillight's light source to pass through it. In this embodiment, the charging port 12 and the charging port cover 13 are adjacent to the taillight assembly. The taillight assembly has a recognition device mounting position located within the light cover. The charging gun recognition device 20 is positioned at the recognition device mounting position in the taillight assembly and is hidden within the light cover.

[0075] In another embodiment, the vehicle includes a fender, the charging port 12 and the charging port cover 13 are adjacent to the fender, and the charging gun identification device 20 is disposed on the fender, that is, the fender has an identification device mounting position, and the charging gun identification device 20 is installed at the identification device mounting position on the fender, wherein the optical axis of the charging gun identification device 20 forms a corresponding angle with the center vertical line of the charging port 14, and the distance between the two is less than or equal to 50cm, preferably less than or equal to 30cm, and can be further less than or equal to 15cm if installation is possible.

[0076] In another embodiment, the vehicle includes a logo plate, i.e., a plate with a logo mounted on it. The logo plate is movably mounted on the vehicle and can switch between open and closed states. The charging port 12 is located within the logo plate, meaning the logo plate serves as a charging port cover 13. Essentially, a logo is mounted on the charging port cover 13. In this embodiment, the vehicle also includes an air intake grille. The charging port 12 and the logo plate serving as the charging port cover 13 are adjacent to the vehicle's air intake grille. The charging gun identification device 20 can be disposed inside the vehicle's air intake grille, i.e., the grille has an identification device mounting position, and the charging gun identification device 20 is mounted at the grille's identification device mounting position, thereby ensuring that the angle between the optical axis of the charging gun identification device 20 and the central perpendicular line of the charging port 14 meets the requirements, and the corresponding position also meets the light-sensing requirements. The air intake grille has a perforated structure corresponding to the charging gun identification device 20 to allow light to enter the charging gun identification device 20.

[0077] In another embodiment, the charging gun identification device 20 is located inside the charging port 12 on the inner side of the vehicle logo plate. When not charging, the charging gun identification device 20 is located inside the vehicle logo plate, hidden within it. The vehicle logo plate should have a light-transmitting area 101 corresponding to the photosensitive module 21 of the charging gun identification device 20, through which incident light can reach the photosensitive module 21 of the charging gun identification device 2020. After identification, if a charging gun 200 is present, the vehicle logo plate opens, exposing the charging port 14.

[0078] Optionally, in the application embodiment, the charging gun identification device 20 further includes the analog-to-digital converter 23 electrically connected between the photosensitive module 21 and the control unit 22, for performing digital-to-analog conversion on the signal output by the photosensitive module 21.

[0079] In this embodiment, the control unit 22 can be implemented as a microcontroller unit (MCU). Some vehicles have a body control module (BCM), where the MCU is the core of the entire BCM, capable of monitoring and controlling various load drivers in the body controller, such as the motor 25 connected to the charging port cover 13. Figure 3 As shown. Accordingly, in this embodiment, the control unit 22 is adapted to be electrically connected to the BCM signal input unit, and the charging gun identification device 20 further includes a control signal output unit 24 adapted to be electrically connected between the control unit 22 and the motor 25. After the charging gun identification device 20 identifies the charging gun and generates a control signal through the control unit 22, it transmits the control signal to the motor 25 through the control signal output unit 24 to drive the motor 25 to work, thereby opening or closing the charging port cover 13.

[0080] The control unit 22 stores algorithm models, thereby enabling feature extraction, recognition and judgment, and output of results. The control unit 22 also functions as an output control signal and a modulator, adapting to the communication protocols and interfaces of motors 25 in different vehicle models, such as LIN protocol and 12V voltage output.

[0081] In this embodiment, the control unit 22 employs a single-stage target detection algorithm for charging gun identification. The single-stage target detection algorithm mainly consists of four modules: an input terminal, a baseline network, a Neck network, and a Head output terminal. The input terminal is primarily used to input images and also performs image preprocessing. During preprocessing, the input image is scaled to the network's input size and normalized. The baseline network includes several high-performance classifier networks that can be used to extract features. The Neck network is mainly used to improve the diversity and robustness of features. The Head output terminal is mainly used to predict image features and output the target detection result.

[0082] Accordingly, in this embodiment, the control unit 22 includes: an image preprocessing module, a feature extraction module, and a target recognition module. The image preprocessing module is used to preprocess the image information of the object under test, the feature extraction module is used to extract features from the image information of the object under test, and the target recognition module is used to determine the charging gun recognition result.

[0083] It is worth mentioning that, theoretically, the overall outer contour of the charging gun 200 can be used as a recognizable feature for identifying the charging gun 200. The image features of the charging gun 200's outer contour can be extracted during the feature extraction process of the image information of the object under test. When a pattern matching the overall outer contour of the charging gun 200 appears in the image of the charging gun 200, it is determined that the charging gun 200 exists in the object under test; when no pattern matching the overall outer contour appears in the image of the charging gun 200, it is determined that the charging gun 200 does not exist in the object under test. However, existing charging guns 200 come in a wide variety of shapes. Identifying the charging gun 200 using its overall outer contour features would require establishing a large database, increasing the amount of data processing, increasing the difficulty of data processing, and prolonging the data processing time. Furthermore, it is difficult to collect complete data on various types of charging guns 200, which may lead to an incomplete database and the inability to identify charging guns 200 that are not recorded in the database.

[0084] This application finds that, in order to satisfy the universality of the charging gun 200, the arrangement of the charging probes 2003 of DC charging guns 210 of different shapes is consistent, and the arrangement of the charging probes 2003 of AC charging guns 220 of different shapes is also consistent. This makes the outer contour of the array of charging probes 2003 formed by arranging the charging probes 2003 and probe holes 2002 of DC charging guns 210 of different shapes in a preset manner consistent, and the outer contour of the array of charging probes 2003 formed by arranging the charging probes 2003 and probe holes 2002 of AC charging guns 220 of different shapes in another preset manner consistent.

[0085] Accordingly, this application proposes using the outer contour of the charging gun 200 probe array as an identifiable feature of the charging gun 200, and determining the presence of the charging gun 200 in the tested object based on the image features of the charging gun 200 probes and / or the probe holes 2002. That is, during the feature extraction process of the image information of the tested object, the image features of the charging gun 200 probes of the tested object are obtained. This reduces the amount of data processing, simplifies the data processing process, improves recognition efficiency, achieves rapid recognition, and allows customers to experience "seamless" charging.

[0086] A database can be pre-established based on the outer contour features of the charging gun 200 probe array. During database modeling, the charging gun 200's usage scenarios are simulated by taking multiple images of the handheld charging gun 200 taken by different people for model training. Images with blurred features of the probe holes 2002 of the charging gun 200 are excluded. The recognition distance is between 30cm and 50cm, and the recognition FOV angle is approximately 70°. Images are acquired at different angles, with varying backgrounds and lighting conditions to build the charging gun 200 model. Feature annotation is performed on the acquired images of the charging gun 200, and the model is trained. During feature annotation of the acquired images of the charging gun 200, specific charging probes 2003 or probe holes 2002 can be outlined by adding an outer frame to the outside of specific charging probes 2003 or probe holes 2002, forming a charging gun feature pattern 400, such as... Figure 6 As shown. When selecting images for the model training set, images that are clearly visible within the field of view (FOV) and at a distance of 30cm-50cm, showing both the fast-charging feature block (i.e., the charging gun feature pattern 400 corresponding to the DC charging gun 210) and the slow-charging feature block (i.e., the charging gun feature pattern 400 corresponding to the AC charging gun 220), are chosen to increase detection accuracy. The trained model can be burned into the charging gun identification device 20.

[0087] Specifically, currently, the charging guns 200 for general-purpose vehicles, including those conforming to the Chinese national standard GB / T20234, can be divided into DC charging guns 210 and AC charging guns 220. The DC charging gun 210 is a high-current, high-power charging gun 200, typically the fast-charging DC charging gun 210 equipped in fast-charging stations for new energy vehicles. The AC charging gun 220 is typically a home AC charging station or a portable slow-charging AC charging gun 220.

[0088] like Figure 4 As shown, the head 2001 of an AC charging gun 220 has seven probe holes 2002, and each hole is equipped with a charging probe 2003, meaning the AC charging gun 220 has seven charging probes 2003. Figure 5As shown, the head 2001 of the DC charging gun 210 has 9 probe holes 2002, and each probe hole 2002 is provided with a charging probe 2003, that is, the DC charging gun 210 has 9 charging probes 2003.

[0089] This application also found that the structural configuration of the charging gun 200 probe of the charging gun 200 can affect the image information of the charging probe 2003 in the image information of the charging gun 200 acquired by the photosensitive module 21 of the charging gun identification device 20, thereby affecting the identification accuracy of the charging gun identification system.

[0090] Specifically, among the charging probes 2003 of the charging gun 200, some charging probes 2003 protrude more, with their tops near the opening of the probe hole 2002 and close to the outer surface of the charging head; others are located deeper within the probe hole 2002, with their tops further away from the opening of the probe hole 2002 and the outer surface of the charging head. Some charging probes 2003 are brighter in color, for example, silver, while others are darker in color, for example, black.

[0091] During the process of the photosensitive module 21 acquiring image information of the charging gun 200, the photosensitive module 21 is more likely to acquire relatively complete image information of the prominent and brightly colored charging probe 2003. Consequently, the image information of the prominent and brightly colored charging probe 2003 can be extracted more easily during subsequent feature extraction. The image portion of the charging probe 2003 located deeper in the probe hole 2002 may be unclear and may be missed during feature extraction.

[0092] like Figure 4 As shown, in the AC charging gun 220, the upper five charging probes 2003 protrude more, forming protruding probes 2004, which are easier to detect; the lower two charging probes 2003 are recessed deeper into the probe holes 2002, forming recessed probes 2005, which are harder to detect. The outer contour of the array of charging probes 2003 formed by the upper five charging probes 2003 and the corresponding probe holes 2002 is close to a trapezoid, more specifically, close to an isosceles trapezoid. Correspondingly, the charging gun feature pattern 400 matching the AC charging gun 220 includes a single trapezoidal pattern, more specifically, a single isosceles trapezoidal pattern (such as...). Figure 7 (As shown).

[0093] like Figure 5As shown, among the charging probes 2003 of the DC charging gun 210, seven charging probes 2003 are prominent and silver, designated as protruding silver probes 2006. The other two charging probes 2003 are also prominent, but their outer surface is black, designated as protruding black probes 2007. The outer contour of the array of charging probes 2003 formed by the seven silver charging probes 2003 and the corresponding probe holes 2002 is approximately bone-shaped or hourglass-shaped. Accordingly, the charging gun feature pattern 400 matching the DC charging gun 210 includes a bone-shaped pattern (or an hourglass-shaped pattern), such as... Figure 8 As shown.

[0094] In application scenarios where the light is dim, i.e., when the ambient brightness is low, it is difficult to detect more of the charging probes 2003 in the charging gun 200. In order to improve the recognition rate, a corresponding charging gun feature pattern 400 is added.

[0095] In low-light conditions during application, the three charging probes 2003 of the AC charging gun 220 are more easily detected, and the outer contour of the array of charging probes 2003 formed by these three charging probes 2003 and the corresponding probe holes 2002 is close to a triangle, more specifically, close to an isosceles triangle. Correspondingly, the charging gun feature pattern 400 matching the AC charging gun 220 also includes a single triangle pattern, more specifically, a single isosceles triangle pattern, such as... Figure 9 As shown.

[0096] In low-light conditions, the six charging probes 2003 of the DC charging gun 210 are more easily detected. The outer contour of the array of charging probes 2003 formed by these six probes 2003 and their corresponding probe holes 2002 approximates two spaced-apart trapezoids, more specifically, two spaced-apart isosceles trapezoids. Correspondingly, the charging gun feature pattern 400 matching the DC charging gun 210 also includes a double trapezoidal pattern, more specifically, a double isosceles trapezoidal pattern, such as... Figure 10 As shown.

[0097] After extracting the probe image features of the charging gun 200 of the object under test, the extracted probe image features of the charging gun 200 can be compared with the charging gun feature pattern 400. When the probe image features of the charging gun 200 match at least one of the multiple charging gun feature patterns 400, it is determined that the object under test contains a target charging gun 200; when the probe image features of the charging gun 200 do not match any of the multiple charging gun feature patterns 400, it is determined that the object under test does not contain a target charging gun 200.

[0098] Accordingly, the target recognition module is used to determine the charging gun recognition result based on the features of the charging gun 200 probe image, and is further used to determine that a target charging gun 200 exists in the tested object in response to the matching of the features of the charging gun 200 probe image with at least one of the multiple charging gun feature patterns 400; and to determine that a target charging gun 200 does not exist in the tested object in response to the non-matching of the features of the charging gun 200 probe image with any of the multiple charging gun feature patterns 400.

[0099] Specifically, when the image features of the charging gun 200 probe match at least one of the single isosceles trapezoidal pattern and the single triangle pattern, it is determined that an AC charging gun 220 exists in the object under test; when the image features of the charging gun 200 probe match at least one of the bone-shaped pattern and the double isosceles trapezoidal pattern, it is determined that a DC charging gun 210 exists in the object under test. Accordingly, the target recognition module is further configured to determine that an AC charging gun 220 exists in the object under test in response to the image features of the charging gun 200 probe matching at least one of the single isosceles trapezoidal pattern and the single triangle pattern; and to determine that a DC charging gun 210 exists in the object under test in response to the image features of the charging gun 200 probe matching at least one of the bone-shaped pattern and the double isosceles trapezoidal pattern.

[0100] When the ambient brightness is low, if the image features of the charging gun 200 probe match the single isosceles trapezoid pattern, it is determined that an AC charging gun 220 exists in the object under test; if the image features of the charging gun 200 probe match the bone-shaped pattern, it is determined that a DC charging gun 210 exists in the object under test. When the ambient brightness is low, if the image features of the charging gun 200 probe match the single triangle pattern, it is determined that an AC charging gun 220 exists in the object under test; if the image features of the charging gun 200 probe match the double isosceles trapezoid pattern, it is determined that a DC charging gun 210 exists in the object under test.

[0101] Accordingly, the target recognition module is further configured to determine that an AC charging gun 220 exists in the tested object when the ambient brightness is greater than or equal to a preset value and the image features of the charging gun 200 probe match the single isosceles trapezoidal pattern; to determine that an AC charging gun 220 exists in the tested object when the ambient brightness is less than the preset value and the image features of the charging gun 200 probe match the single triangle pattern; to determine that a DC charging gun 210 exists in the tested object when the ambient brightness is greater than or equal to the preset value and the image features of the charging gun 200 probe match the bone-shaped pattern; and to determine that a DC charging gun 210 exists in the tested object when the ambient brightness is less than the preset value and the image features of the charging gun 200 probe match the double isosceles trapezoidal pattern.

[0102] Typically, a vehicle may only have one charging port 14, therefore the charging gun 200 compatible with the vehicle is fixed. For example, one vehicle may only be compatible with AC charging gun 220, and another vehicle may only be compatible with DC charging gun 210. The charging gun identification device 20 needs to compare whether the identified charging gun 200 is consistent with the charging gun 200 compatible with the vehicle.

[0103] When the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and the type of the target charging gun 200 is consistent with the type of the charging gun 200 adapted to the designated charging port 14, the target charging gun 200 is determined to be a matched charging gun 200. For example, when the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and both the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 are AC charging guns 220, the target charging gun 200 is determined to be a matched charging gun 200. When the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and both the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 are DC charging guns 210, the target charging gun 200 is determined to be a matched charging gun 200.

[0104] When the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and the type of the target charging gun 200 is inconsistent with the type of the charging gun 200 adapted to the designated charging port 14, the target charging gun is determined to be a non-matching charging gun 200. For example, when the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and the target charging gun 200 is a DC charging gun 210, while the charging gun 200 adapted to the designated charging port 14 is an AC charging gun 220, the target charging gun is determined to be a non-matching charging gun 200; when the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and the target charging gun 200 is an AC charging gun 220, while the charging gun 200 adapted to the designated charging port 14 is a DC charging gun 210, the target charging gun 200 is determined to be a non-matching charging gun 200.

[0105] Accordingly, the target identification module is further configured to determine that the target charging gun 200 is a matched charging gun 200 in response to the charging gun identification result indicating that a target charging gun 200 exists in the tested object and the type of the target charging gun 200 is consistent with the type of the charging gun 200 adapted to the designated charging port 14; and to determine that the target charging gun 200 is a non-matched charging gun 200 in response to the charging gun identification result indicating that a target charging gun 200 exists in the tested object and the type of the target charging gun 200 is inconsistent with the type of the charging gun 200 adapted to the designated charging port 14.

[0106] The target recognition module is further configured to, in response to the charging gun recognition result indicating the presence of a target charging gun 200 in the tested object, and both the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 are AC charging guns 220, determine that the target charging gun 200 is a matched charging gun 200; in response to the charging gun recognition result indicating the presence of a target charging gun 200 in the tested object, and both the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 are DC charging guns 210, determine that the target charging gun 200 is a matched charging gun 200; in response to If the charging gun identification result indicates that a target charging gun 200 exists in the tested object, and the target charging gun 200 is a DC charging gun 210, while the charging gun 200 adapted to the designated charging port 14 is an AC charging gun 220, then the target charging gun is determined to be a non-matching charging gun 200.

[0107] After identifying whether a charging gun 200 exists in the tested object, the target recognition module can further determine whether to open the charging port cover 13 based on the vehicle's status. When the vehicle is in the "start" state, a first control signal is generated to control the charging gun recognition device 20 to enter a sleep state. When the vehicle is in the "power off" state, a second control signal is generated to control the charging gun recognition device 20 to enter the "working" state. When the charging gun recognition result indicates that a target charging gun 200 exists in the tested object and the vehicle is in the "off" state, a third control signal is generated. This third control signal is a digital signal used to drive different types of motors 25 to switch on and off, thereby controlling the opening of the charging port cover 13 connected to the motor 25. More specifically, when the charging gun recognition result indicates that a matching charging gun 200 exists in the tested object and the vehicle is in the "off" state, a third control signal is generated to control the opening of the charging port cover 13. When it is detected that the charging gun 200 has been pulled out, and the charging gun recognition result indicates that a target charging gun 200 does not exist in the tested object, a fourth control signal is generated to control the closing of the charging port cover 13.

[0108] Accordingly, the target recognition module is further configured to acquire the vehicle's state detection result; and generate a control signal based on the charging gun recognition result and the vehicle's state detection result. More specifically, it is configured to generate a first control signal in response to the vehicle being in a powered-on state, to control the charging gun recognition device 20 to enter a sleep state; generate a second control signal in response to the vehicle being in a powered-off state, to control the charging gun recognition device 20 to enter a working state; generate a third control signal in response to the charging gun recognition result indicating the presence of a target charging gun 200 in the tested object and the vehicle being in a powered-off state, to control the charging port cover 13 to open; and generate a fourth control signal in response to the charging gun recognition result indicating the absence of a target charging gun 200 in the tested object, to control the charging port cover 13 to close.

[0109] In this embodiment of the application, the confidence level of the charging gun identification result of the charging gun identification device 20 was statistically analyzed, and it was found that the confidence level of the charging gun identification result was evenly distributed between 0.85 and 0.95. For example... Figure 11 As shown. The confidence level of the charging gun identification result is the degree of credibility of the charging gun identification result, which can be represented by the accuracy rate of the charging gun identification result. Of course, it can also be represented by other data that can reflect the degree of credibility of the charging gun identification result.

[0110] Based on the aforementioned charging gun identification device 20, such as Figure 12As shown, this application also proposes a charging gun identification method, including: S110, acquiring image information of a detected object; S120, performing feature extraction on the image information of the detected object to obtain the charging gun 200 probe image features of the detected object; and S130, determining the charging gun identification result based on the charging gun 200 probe image features. S130 determining the charging gun identification result based on the charging gun 200 probe image features includes: S131, in response to the charging gun 200 probe image features matching at least one of a plurality of charging gun feature patterns 400, determining that a target charging gun 200 exists in the detected object; and S132, in response to the charging gun 200 probe image features not matching any of the plurality of charging gun feature patterns 400, determining that a target charging gun 200 does not exist in the detected object.

[0111] In one example of this application, determining the presence of a target charging gun 200 in the tested object in response to the matching of the charging gun 200 probe image features with at least one of the plurality of charging gun feature patterns 400 includes: determining the presence of an AC charging gun 220 in the tested object in response to the matching of the charging gun 200 probe image features with at least one of the single isosceles trapezoid pattern and the single triangle pattern; and determining the presence of a DC charging gun 210 in the tested object in response to the matching of the charging gun 200 probe image features with at least one of the bone-shaped pattern and the double isosceles trapezoid pattern.

[0112] In one example of this application, determining the presence of an AC charging gun 220 in the tested object in response to the charging gun 200 probe image feature matching at least one of the single isosceles trapezoid pattern and the single triangle pattern includes: determining the presence of an AC charging gun 220 in the tested object in response to an ambient brightness greater than or equal to a preset value and the charging gun 200 probe image feature matching the single isosceles trapezoid pattern; and determining the presence of an AC charging gun 220 in the tested object in response to an ambient brightness less than the preset value and the charging gun 200 probe image feature matching the single triangle pattern.

[0113] The determination of the presence of a DC charging gun 210 in the test object in response to the matching of the probe image features of the charging gun 200 with at least one of the bone-shaped pattern and the double isosceles trapezoidal pattern includes: determining the presence of a DC charging gun 210 in the test object in response to the ambient brightness being greater than or equal to a preset value and the probe image features of the charging gun 200 matching the bone-shaped pattern; and determining the presence of a DC charging gun 210 in the test object in response to the ambient brightness being less than the preset value and the probe image features of the charging gun 200 matching the double isosceles trapezoidal pattern.

[0114] In one example of this application, the charging gun identification method further includes: determining that the target charging gun 200 is a matched charging gun 200 in response to the charging gun identification result indicating that a target charging gun 200 exists in the tested object, and the type of the target charging gun 200 is consistent with the type of the charging gun 200 adapted to the designated charging port 14; and determining that the target charging gun is a non-matched charging gun 200 in response to the charging gun identification result indicating that a target charging gun 200 exists in the tested object, and the type of the target charging gun 200 is inconsistent with the type of the charging gun 200 adapted to the designated charging port 14.

[0115] In one example of this application, in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the type of the target charging gun 200 being consistent with the type of the charging gun 200 adapted to the designated charging port 14, determining that the target charging gun 200 is a matched charging gun 200 includes: in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 both being AC charging guns 220, determining that the target charging gun 200 is a matched charging gun 200; and in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the target charging gun 200 and the charging gun 200 adapted to the designated charging port 14 both being DC charging guns 210, determining that the target charging gun 200 is a matched charging gun 200.

[0116] In response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the type of the target charging gun 200 being inconsistent with the type of the charging gun 200 adapted to the designated charging port 14, determining the target charging gun as a non-matching charging gun 200 includes: in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the target charging gun 200 being a DC charging gun 210, while the charging gun 200 adapted to the designated charging port 14 being an AC charging gun 220, determining the target charging gun as a non-matching charging gun 200; and in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object, and the target charging gun 200 being an AC charging gun 220, while the charging gun 200 adapted to the designated charging port 14 being a DC charging gun 210, determining the target charging gun 200 as a non-matching charging gun 200.

[0117] In one example of this application, the charging gun identification method further includes: acquiring the vehicle's state detection result; and generating a control signal based on the charging gun identification result and the vehicle's state detection result.

[0118] The control signal generated based on the charging gun identification result and the vehicle status detection result includes: generating a first control signal in response to the vehicle being in an active state, for controlling the charging gun identification device 20 to enter a sleep state; generating a second control signal in response to the vehicle being in a power-off state, for controlling the charging gun identification device 20 to enter an active state; generating a third control signal in response to the charging gun identification result indicating the presence of a target charging gun 200 in the tested object and the vehicle being in a closed state, for controlling the charging port cover 13 to open; and generating a fourth control signal in response to the charging gun identification result indicating the absence of a target charging gun 200 in the tested object, for controlling the charging port cover 13 to close.

[0119] The basic principles of this application have been described with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.

[0120] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0121] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.

[0122] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0123] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A charging gun identification method, characterized in that, The method comprises: acquiring image information of a detected object; performing feature extraction on the image information of the detected object to obtain a charging gun probe image feature of the detected object; and determining a charging gun recognition result based on the charging gun probe image feature, comprising: determining that a target charging gun exists in the detected object in response to the charging gun probe image feature matching at least one charging gun feature pattern in a plurality of charging gun feature patterns; and determining that the target charging gun does not exist in the detected object in response to the charging gun probe image feature not matching any charging gun feature pattern in the plurality of charging gun feature patterns. The plurality of charging gun feature patterns comprises a single isosceles trapezoid pattern, a single triangle pattern, a bone-shaped pattern, and a double isosceles trapezoid pattern. In response to the charging gun probe image feature matching at least one charging gun feature pattern in a plurality of charging gun feature patterns, determining that a target charging gun exists in the detected object, comprising:

2. The charging gun identification method of claim 1, wherein, determining that an alternating current charging gun exists in the detected object in response to the charging gun probe image feature matching at least one of the single isosceles trapezoid pattern and the single triangle pattern; and 3. The charging gun identification method of claim 2, wherein, determining that a direct current charging gun exists in the detected object in response to the charging gun probe image feature matching at least one of the bone-shaped pattern and the double isosceles trapezoid pattern. In response to the charging gun probe image feature matching at least one of the single isosceles trapezoid pattern and the single triangle pattern, determining that an alternating current charging gun exists in the detected object, comprising: determining that an alternating current charging gun exists in the detected object in response to the environment brightness being greater than or equal to a preset value and the charging gun probe image feature matching the single isosceles trapezoid pattern; and 4. The charging gun identification method of claim 3, wherein, determining that an alternating current charging gun exists in the detected object in response to the environment brightness being less than the preset value and the charging gun probe image feature matching the single triangle pattern. In response to the charging gun probe image feature matching at least one of the bone-shaped pattern and the double isosceles trapezoid pattern, determining that a direct current charging gun exists in the detected object, comprising: determining that a direct current charging gun exists in the detected object in response to the environment brightness being greater than or equal to a preset value and the charging gun probe image feature matching the bone-shaped pattern; and determining that a direct current charging gun exists in the detected object in response to the environment brightness being less than the preset value and the charging gun probe image feature matching the double isosceles trapezoid pattern. The charging gun recognition method further comprises: determining that the target charging gun is a matching charging gun in response to the charging gun recognition result being that a target charging gun exists in the detected object and the type of the target charging gun being consistent with the type of a charging gun adapted to a specified charging port; and 5. The charging gun identification method of claim 3, wherein, determining that the target charging gun is a non-matching charging gun in response to the charging gun recognition result being that a target charging gun exists in the detected object and the type of the target charging gun being inconsistent with the type of a charging gun adapted to the specified charging port. The charging gun recognition method further comprises: acquiring a state detection result of a vehicle; and 6. The charging gun identification method of claim 1, wherein, ​ ​ Generating a control signal based on the charging gun recognition result and the state detection result of the vehicle, including: In response to the vehicle state being a start state, generating a first control signal for controlling the charging gun recognition device to enter a sleep state; In response to the vehicle state being a power-off state, generating a second control signal for controlling the charging gun recognition device to enter a working state; In response to the charging gun recognition result being that the target charging gun exists in the measured object, and the vehicle state being an off state, generating a third control signal for controlling the charging port cover to open; and In response to the charging gun recognition result being that the target charging gun does not exist in the measured object, generating a fourth control signal for controlling the charging port cover to close.

7. A charging gun identification device, characterized in that, Including: A photosensitive module for acquiring image information of a measured object; A control unit electrically connected to the photosensitive module for acquiring a charging gun recognition result, the control unit including: An image preprocessing module for preprocessing the image information of the measured object; A feature extraction module for extracting features from the image information of the measured object to obtain charging gun probe image features; and A target recognition module for determining a charging gun recognition result based on the charging gun probe image features, and further for determining that a target charging gun exists in the measured object in response to the charging gun probe image features matching at least one of a plurality of charging gun feature patterns, and determining that a target charging gun does not exist in the measured object in response to the charging gun probe image features not matching any of the plurality of charging gun feature patterns.

8. The charging gun identification device of claim 7, wherein, The plurality of charging gun feature patterns include a single isosceles trapezoid pattern, a single triangle pattern, a bone-shaped pattern, and a double isosceles trapezoid pattern.

9. The charging gun identification device of claim 8, wherein, The target recognition module is further configured to determine that an alternating current charging gun exists in the measured object in response to the charging gun probe image features matching at least one of the single isosceles trapezoid pattern and the single triangle pattern, and determine that a direct current charging gun exists in the measured object in response to the charging gun probe image features matching at least one of the bone-shaped pattern and the double isosceles trapezoid pattern.

10. The charging gun identification apparatus according to claim 9, wherein The target recognition module is further configured to determine that an alternating current charging gun exists in the measured object in response to the environment brightness being greater than or equal to a preset value and the charging gun probe image features matching the single isosceles trapezoid pattern, and determine that an alternating current charging gun exists in the measured object in response to the environment brightness being less than the preset value and the charging gun probe image features matching the single triangle pattern; In response to the environment brightness being greater than or equal to a preset value and the charging gun probe image features matching the bone-shaped pattern, determine that an alternating current charging gun exists in the measured object; And, in response to the environment brightness being less than the preset value and the charging gun probe image features matching the double isosceles trapezoid pattern, determine that an alternating current charging gun exists in the measured object.

11. The charging gun identification apparatus according to claim 9, wherein The target recognition module is further configured to determine that the target charging gun is a matched charging gun in response to the charging gun recognition result indicating that the target charging gun exists in the measured object and the type of the target charging gun is consistent with the type of the charging gun adapted to the specified charging port. The target recognition module is further configured to determine that the target charging gun is a non-matched charging gun in response to the charging gun recognition result indicating that the target charging gun exists in the measured object and the type of the target charging gun is inconsistent with the type of the charging gun adapted to the specified charging port.

12. The charging gun identification apparatus according to claim 11, wherein, The target recognition module is further configured to obtain a state detection result of the vehicle, and generate a control signal based on the charging gun recognition result and the state detection result of the vehicle. The target recognition module is further configured to generate a first control signal for controlling the charging gun recognition device to enter a sleep state in response to the vehicle state being a start state, generate a second control signal for controlling the charging gun recognition device to enter a working state in response to the vehicle state being a power-off state, generate a third control signal for controlling the charging port cover to open in response to the charging gun recognition result indicating that the target charging gun exists in the measured object and the vehicle state being an off state, and generate a fourth control signal for controlling the charging port cover to close in response to the charging gun recognition result indicating that the target charging gun does not exist in the measured object. The photosensitive module includes a photosensitive sensor and an optical assembly located on a photosensitive path of the photosensitive sensor.

13. The charging gun identification apparatus according to claim 7, wherein, The photosensitive sensor includes a spectrum chip, and the optical assembly includes an optical lens and a light uniformizing piece, the light uniformizing piece and the optical lens being located on the photosensitive path of the spectrum chip in sequence.

14. The charging gun identification device of claim 13, wherein, The charging gun recognition device further includes an infrared lamp.

15. The charging gun identification apparatus according to claim 13, wherein, The charging gun recognition device includes:

16. A vehicle with a charging gun identification device, characterized in that a vehicle body including a vehicle main body, a charging port provided on the vehicle main body, and a charging port cover movably mounted at the charging port; and a charging gun recognition device according to any one of claims 7-15 mounted on the vehicle body. The charging gun recognition device is mounted in the vehicle body in a shieldable manner, and the vehicle body has a light transmission region corresponding to a photosensitive module of the charging gun recognition device. The photosensitive module of the charging gun recognition device is mounted on any one of an inner side of the charging port cover, an inner side of a light cover piece of a tail lamp part, and an inner side of a vehicle logo of the vehicle.

17. The vehicle with a charging gun identification device of claim 16, wherein, The light transmission region is provided with filterable resin material to form a light filter on a photosensitive path of a photosensitive sensor of the charging gun recognition device.

18. The vehicle with a charging gun identification device of claim 17, wherein, The charging gun recognition device is mounted on the vehicle body in a non-shieldable manner, and the photosensitive module of the charging gun recognition device is mounted on any one of a wheel arch, a fender, and an air intake grille of the vehicle.

19. The vehicle with a charging gun identification device of claim 17, wherein, ​ 20. The vehicle with a charging gun identification device of claim 16, wherein, ​