Vehicle charging port identification method and related device
By acquiring vehicle body color information and lighting information to correct grayscale images, the accuracy problem caused by lighting differences in charging port recognition is solved, thus improving charging efficiency and quality.
Patent Information
- Application Number
- CN202211540725.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-12-02
AI Technical Summary
Due to varying lighting conditions at different times and charging locations, color differences can occur in the charging port recognition images, affecting the charging efficiency and quality of automatic vehicle charging.
By acquiring vehicle body color information, determining illumination information, and correcting the grayscale image based on the illumination information, a second grayscale image is obtained to determine whether the charging port is the target charging port.
It improves the accuracy of charging port identification, thereby enhancing the charging efficiency and quality of automatic charging.
Smart Images

Figure CN115937133B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle charging, in particular to a vehicle charging port identification method and related equipment. BACKGROUND
[0002] With the popularization of electric vehicle applications and the progress of science and technology, automatic charging technology has emerged. The current automatic charging technology is to move the vehicle to a designated chargeable position associated with the charging device, and control the automatic charging equipment to charge the vehicle. Therefore, the current charging port identification is to preliminarily determine the target charging port position by adjusting the vehicle position, and collect images at the target charging port position, and realize charging port identification through image matching. However, due to different light conditions at different times and different charging positions, the collected images will have color difference, which reduces the accuracy of charging port identification and affects the charging efficiency and charging quality of vehicle automatic charging. SUMMARY
[0003] The present application provides a vehicle charging port identification method and related equipment to solve the problem that the current charging port identification method collects images with color difference due to different times and different charging positions, which reduces the accuracy of charging port identification and affects the charging efficiency and charging quality of vehicle automatic charging.
[0004] In a first aspect, the present application provides a vehicle charging port identification method, comprising:
[0005] Obtaining first gray-scale image information in a preset range;
[0006] Obtaining vehicle body color information of a target vehicle to which a to-be-detected charging port belongs;
[0007] Determining illumination information in the preset range based on the first gray-scale image information and the vehicle body color information;
[0008] Obtaining second gray-scale image information in the preset range according to the illumination information and the first gray-scale image information;
[0009] Judging whether the to-be-detected charging port is the target charging port based on the second gray-scale image information.
[0010] Optionally, the obtaining of the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs comprises:
[0011] Obtaining license plate information of the target vehicle;
[0012] Obtaining pre-stored vehicle feature information of the target vehicle according to the license plate information;
[0013] Determining the vehicle body color information of the target vehicle based on the pre-stored vehicle feature information.
[0014] Optionally, the determining the illumination information in the preset range based on the first gray image information and the vehicle body color information comprises:
[0015] determining the gray variation information in the preset range based on the first gray image information;
[0016] determining the illumination direction information in the preset range according to the gray variation information.
[0017] Optionally, the vehicle charging port recognition method further comprises:
[0018] determining the illumination intensity information in the preset range based on the illumination direction information and the gray variation information.
[0019] Optionally, the acquiring the second gray image information in the preset range according to the illumination information and the first gray image information comprises:
[0020] adjusting the first gray image information until the vehicle body gray in the preset range is equal to a target gray according to the illumination information;
[0021] acquiring the second gray image information in the case that the vehicle body gray information in the preset range is equal to the target gray.
[0022] Optionally, before the step of adjusting the first gray image information until the vehicle body gray in the preset range is equal to a target gray according to the illumination information, the method further comprises:
[0023] acquiring the target gray based on the illumination information and the vehicle body color information.
[0024] Optionally, the judging whether the to-be-detected charging port is the target charging port based on the second gray image information comprises:
[0025] acquiring target gray image information of the to-be-detected charging port according to the second gray image information;
[0026] acquiring image gray distribution information of the to-be-detected charging port based on the target gray image information;
[0027] judging whether the to-be-detected charging port is the target charging port according to the image gray distribution information.
[0028] In a second aspect, the present application further provides a vehicle charging port recognition device, characterized in that comprising:
[0029] a first acquiring module, configured to acquire first gray image information in a preset range;
[0030] The second acquisition module is configured to acquire body color information of a target vehicle to which the to-be-detected charging port belongs.
[0031] The determination module is configured to determine illumination information in the preset range based on the first gray-scale image information and the body color information.
[0032] The third acquisition module is configured to acquire second gray-scale image information in the preset range according to the illumination information and the first gray-scale image information.
[0033] The judgment module is configured to judge whether the to-be-detected charging port is the target charging port based on the second gray-scale image information.
[0034] In a third aspect, the present application further provides an electronic device, which comprises a memory and a processor, and the processor is configured to execute the steps of the vehicle charging port identification method according to any one of the first aspect.
[0035] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is configured to execute the steps of the vehicle charging port identification method according to any one of the first aspect when executed by a processor.
[0036] According to the above technical solution, the present application provides a vehicle charging port identification method and related equipment, which comprises the following steps: acquiring first gray-scale image information in a preset range; acquiring body color information of a target vehicle to which a to-be-detected charging port belongs; determining illumination information in the preset range based on the first gray-scale image information and the body color information; acquiring second gray-scale image information in the preset range according to the illumination information and the first gray-scale image information; and judging whether the to-be-detected charging port is the target charging port based on the second gray-scale image information. Since there is a color difference in the images collected by the current charging port identification method due to different times and different charging positions, the accuracy of charging port identification is reduced, and the charging efficiency and charging quality of automatic vehicle charging are affected. However, in the present application, the body color is used as a reference value to determine the color difference information between the body color in the first gray-scale image and the actual body color, the illumination information in the preset range is determined based on the color difference information, the first gray-scale image information is corrected according to the illumination information, the second gray-scale image information is acquired, and it is judged whether the to-be-detected charging port is the target charging port. In this way, the influence of illumination on the first gray-scale image can be eliminated, the color difference of the image can be reduced, the accuracy of charging port identification can be improved, and the charging efficiency and charging quality of automatic charging can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0038] Figure 1 A schematic flow chart of a vehicle charging port identification method provided by an embodiment of the present application is shown in the figure.
[0039] Figure 2 A schematic structural diagram of a vehicle charging port identification device provided by an embodiment of the present application is shown in the figure.
[0040] Figure 3 A schematic structural diagram of an electronic device provided by an embodiment of the present application is shown in the figure.
[0041] Figure 4 A schematic structural diagram of a computer readable storage medium provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0042] The embodiments will be described in detail below, and examples are shown in the drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following embodiments do not represent all the embodiments consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as described in detail in the claims. In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described below are only exemplary.
[0043] As shown in the figure, the embodiments of the present application provide a vehicle charging port identification method, which comprises: Figure 1
[0044] Step S110, acquiring first gray scale image information in a preset range.
[0045] Exemplarily, the above-mentioned preset range is an image acquisition range including the to-be-detected charging port and part of the vehicle body around the to-be-detected charging port.
[0046] Step S120, acquiring vehicle body color information of a target vehicle to which the to-be-detected charging port belongs.
[0047] Exemplarily, the vehicle body color information of the target vehicle can be determined based on login information of the charging device.
[0048] Step S130, determining illumination information in the above-mentioned preset range based on the above-mentioned first gray scale image information and the above-mentioned vehicle body color information.
[0049] Exemplarily, the gray-scale image information of the part of the vehicle body around the to-be-detected charging port in the preset range can be acquired based on the first gray-scale image. The gray-scale value information of the vehicle body color information can be acquired, the gray-scale difference between the gray-scale image information of the part of the vehicle body and the gray-scale value information of the vehicle body color information can be acquired, and the illumination information can be determined based on the gray-scale difference.
[0050] In step S140, the second gray-scale image information in the preset range is acquired according to the illumination information and the first gray-scale image information.
[0051] Exemplarily, the first gray-scale image can be adjusted according to the illumination information, the gray-scale value of the part of the vehicle body around the to-be-detected charging port in the preset range is adjusted to the gray-scale value of the vehicle body color information, and the second gray-scale image information in the preset range is acquired.
[0052] In step S150, whether the to-be-detected charging port is the target charging port is determined based on the second gray-scale image information.
[0053] By taking the vehicle body color as a reference value, the color difference information between the vehicle body color in the first gray-scale image and the actual vehicle body color is determined, the illumination information in the preset range can be determined based on the color difference information, the first gray-scale image information is corrected according to the illumination information, the second gray-scale image information is acquired, and whether the to-be-detected charging port is the target charging port is determined, which can eliminate the influence of illumination on the first gray-scale image, reduce the color difference of the image, and further improve the accuracy of charging port recognition and the charging efficiency and charging quality of automatic charging.
[0054] According to some embodiments, the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs is acquired, including:
[0055] The license plate information of the target vehicle is acquired.
[0056] The pre-stored vehicle feature information of the target vehicle is acquired according to the license plate information.
[0057] The vehicle body color information of the target vehicle is determined based on the pre-stored vehicle feature information.
[0058] Exemplarily, the license plate information of the target vehicle can be acquired by an image acquisition device of the charging device, and the pre-stored vehicle feature information of the target vehicle corresponding to the license plate information can be acquired by a server data of the charging device, wherein the pre-stored vehicle feature information can include vehicle body color information, vehicle model information, vehicle size information, etc. In a case where the pre-stored vehicle feature information matches the vehicle feature information of the target vehicle, the vehicle body color information of the target vehicle is determined as the vehicle body color information in the pre-stored vehicle feature information.
[0059] The vehicle body color information of the target vehicle is acquired through the pre-stored vehicle feature information provided by the target vehicle, so that the vehicle body color of the target vehicle does not need to be extracted every time the vehicle is charged, the charging port recognition time is prolonged, and the accuracy of the vehicle body color extraction is poor, thereby improving the accuracy of the charging port recognition, and improving the recognition quality and the recognition efficiency.
[0060] According to some embodiments, the above-mentioned illumination information in the preset range is determined based on the above-mentioned first grayscale image information and the above-mentioned vehicle body color information, comprising:
[0061] Based on the above-mentioned first grayscale image information, the grayscale change information in the preset range is determined;
[0062] According to the above-mentioned grayscale change information, the illumination direction information in the preset range is determined.
[0063] Exemplarily, the image grayscale value distribution in the preset range can be acquired based on the above-mentioned first grayscale image information. The grayscale change information of the part of the vehicle body around the charging port to be detected in the preset range can be determined according to the image grayscale value distribution. In the case of increasing grayscale value, the associated area illumination enhancement can be determined, and in the case of decreasing grayscale value, the associated area illumination weakening can be determined.
[0064] The grayscale change information in the preset range is determined through the first grayscale image information, and the illumination direction information in the preset range is determined based on the above-mentioned grayscale change information. Since the large grayscale value represents the light color of the image, and the small grayscale value represents the color of the image, the grayscale value change of the part of the vehicle body around the charging port to be detected in the preset range can be determined through the grayscale change in the preset range, the influence of the illumination on the grayscale value can be determined, and then the illumination direction can be determined. The correction quality of the first grayscale image can be improved through the above-mentioned illumination direction, and then the accuracy of the charging port recognition can be improved, and the recognition quality and the recognition efficiency can be improved.
[0065] According to some embodiments, the above-mentioned vehicle charging port recognition method further comprises:
[0066] Based on the above-mentioned illumination direction information and the above-mentioned grayscale change information, the illumination intensity information in the preset range is determined.
[0067] Exemplarily, the above-mentioned illumination intensity information can be determined according to the grayscale difference between the above-mentioned illumination direction information and the different grayscale value distribution regions.
[0068] The correction quality of the first grayscale image can be improved through the above-mentioned illumination intensity information, and then the accuracy of the charging port recognition can be improved, and the recognition quality and the recognition efficiency can be improved.
[0069] According to some embodiments, the step of obtaining the second gray scale image information within the preset range according to the light information and the first gray scale image information comprises:
[0070] According to the light information, the first gray scale image information is adjusted until the body gray scale within the preset range is equal to the target gray scale.
[0071] In the case that the body gray scale information within the preset range is equal to the target gray scale, the second gray scale image information is obtained.
[0072] For example, the target gray scale is the gray scale value corresponding to the body color of the target vehicle.
[0073] According to the direction of the light and the intensity of the light, the first gray scale image information is adjusted until the gray scale in the non-charging port area within the preset range reaches the target gray scale, that is, the influence of the light on the gray scale is considered to be eliminated, the light conditions in the entire preset range are unified, the quality of the image can be improved, and the accuracy of the charging port recognition can be improved, and the recognition quality and efficiency are improved.
[0074] According to some embodiments, before the step of adjusting the first gray scale image information according to the light information until the body gray scale within the preset range is equal to the target gray scale, the method further comprises:
[0075] Based on the light information and the body color information, the target gray scale is obtained.
[0076] For example, the gray scale information of the body color of the target vehicle can be obtained. According to the light direction information and / or the light intensity information and the gray scale information of the body color, the target gray scale can be obtained.
[0077] According to the direction of the light and the intensity of the light, the gray scale information of the body color of the target vehicle is adjusted to obtain the target gray scale. The influence of the light on the body gray scale in the standard state can be determined, and the correction quality of the first gray scale image can be improved, the matching difficulty of the first gray scale image can be reduced, and the accuracy of the charging port recognition can be improved, and the recognition quality and efficiency are improved.
[0078] According to some embodiments, the step of determining whether the to-be-detected charging port is the target charging port based on the second gray scale image information comprises:
[0079] According to the second gray scale image information, the target gray scale image information of the to-be-detected charging port is obtained.
[0080] Based on the target gray scale image information, the image gray scale distribution information of the to-be-detected charging port is obtained.
[0081] According to the image gray distribution information, it is determined whether the to-be-detected charging port is the target charging port.
[0082] By the gray image information of the to-be-detected charging port, the image gray distribution information of the to-be-detected charging port is determined, and by matching the image gray distribution information with the image gray distribution information of the target charging port of the target vehicle, it is determined whether the to-be-detected charging port is the target charging port based on the matching degree, which can improve the charging port recognition efficiency and quality and improve the accuracy of charging port recognition.
[0083] As shown in Figure 2 , Figure 2 a schematic structural diagram of a vehicle charging port recognition device provided by an embodiment of the present application.
[0084] An embodiment of the present application provides a vehicle charging port recognition device 200, which comprises:
[0085] A first acquisition module is configured to acquire first gray image information in a preset range.
[0086] A second acquisition module is configured to acquire body color information of a target vehicle to which a to-be-detected charging port belongs.
[0087] A determination module is configured to determine illumination information in the preset range based on the first gray image information and the body color information.
[0088] A third acquisition module is configured to acquire second gray image information in the preset range according to the illumination information and the first gray image information.
[0089] A judgment module is configured to determine whether the to-be-detected charging port is the target charging port based on the second gray image information.
[0090] A vehicle charging port recognition device 200 can implement Figure 1 the processes in the method embodiment, which will not be repeated here.
[0091] Please refer to Figure 3 , Figure 3 a schematic structural diagram of an electronic device provided by an embodiment of the present application.
[0092] An embodiment of the present application provides an electronic device 300, which comprises a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and capable of running on the processor 320, and the processor 320 implements the following steps when executing the computer program 311:
[0093] acquiring first gray image information in a preset range;
[0094] Obtain body color information of a target vehicle to which the charging port to be detected belongs;
[0095] Determine illumination information in the preset range based on the first grayscale image information and the body color information;
[0096] Obtain second grayscale image information in the preset range according to the illumination information and the first grayscale image information;
[0097] Judge whether the charging port to be detected is the target charging port based on the second grayscale image information.
[0098] In the specific implementation process, when the processor 320 executes the computer program 311, the following steps can be implemented Figure 1 Any embodiment of the corresponding embodiment.
[0099] Since the electronic device introduced in the embodiment is a device used to implement the device in the embodiment of the application, the specific implementation of the electronic device and its various forms can be understood by those skilled in the art based on the method introduced in the embodiment of the application. Therefore, how the electronic device implements the method in the embodiment of the application will not be described in detail here, as long as the device used by those skilled in the art to implement the method in the embodiment of the application belongs to the scope of protection of the application.
[0100] As Figure 4 shown, Figure 4 a schematic structural diagram of a computer readable storage medium provided by the embodiment of the application.
[0101] The embodiment provides a computer readable storage medium 400, which stores a computer program 411, and the computer program 411 is executed by a processor to implement the following steps:
[0102] Obtain first grayscale image information in a preset range;
[0103] Obtain body color information of a target vehicle to which the charging port to be detected belongs;
[0104] Determine illumination information in the preset range based on the first grayscale image information and the body color information;
[0105] Obtain second grayscale image information in the preset range according to the illumination information and the first grayscale image information;
[0106] Judge whether the charging port to be detected is the target charging port based on the second grayscale image information.
[0107] Those skilled in the art will appreciate that embodiments of the application can be readily used as a method, a system or a computer program product. Accordingly, the application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer readable storage media (including, but not limited to, disk memory, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.
[0108] The present application is described in reference to the flowchart and / or block diagrams of the method, apparatus (system) and computer program product according to embodiments of the application. It should be understood that each flow and / or block in the flowchart and / or block diagrams, as well as combinations of flows and / or blocks in the flowchart and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagrams block or blocks. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the function specified in the flowchart and / or block diagram block or blocks.
[0109] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions means which implement the function specified in the flowchart and / or block diagrams block or blocks. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the function specified in the flowchart and / or block diagram block or blocks.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the function specified in the flowchart and / or block diagrams block or blocks. Figure 1 one or more flows and / or blocks Figure 1 means for carrying out the function specified in the flowchart and / or block diagram block or blocks.
[0111] Embodiments of the application also provide a computer program product, which includes computer software instructions, when the computer software instructions are run on a processing device, cause the processing device to perform the functions as described in the above embodiments. the flow in the vehicle charging port identification method in the corresponding embodiments.
[0112] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described above according to the embodiments of the present application are generated wholly or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be stored by the computer or a data storage device such as a server, data center, etc. containing one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)) and the like.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0114] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the above units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0115] The units described above as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0116] In addition, each of the functional units in the various embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0117] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in part, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods according to the various embodiments of the present application. The aforementioned storage medium includes: various types of U disks, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks, and various other media that can store program codes.
[0118] In summary, the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A vehicle charging inlet recognition method, characterized by, The method comprises the following steps: acquiring first gray scale image information within a preset range, wherein the preset range is an image acquisition range including a to-be-detected charging port and part of a vehicle body around the to-be-detected charging port; acquiring vehicle body color information of a target vehicle to which the to-be-detected charging port belongs; wherein the acquisition of the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs comprises: determining the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs based on login information of a charging device; based on the first gray scale image information and the vehicle body color information, determining illumination information within the preset range; wherein the determination of the illumination information within the preset range based on the first gray scale image information and the vehicle body color information comprises: based on the first gray scale image information, acquiring gray scale image information of part of the vehicle body around the to-be-detected charging port within the preset range; based on the vehicle body color information of the target vehicle, acquiring gray scale value information of the vehicle body color information; acquiring a gray scale difference value of the gray scale image information of the part of the vehicle body and the gray scale value information of the vehicle body color information, and determining the illumination information within the preset range based on the gray scale difference value; based on the illumination information and the first gray scale image information, acquiring second gray scale image information within the preset range; wherein the acquisition of the second gray scale image information within the preset range based on the illumination information and the first gray scale image information comprises: based on the illumination information, adjusting the first gray scale image information until the vehicle body gray scale within the preset range is equal to a target gray scale; in the case that the vehicle body gray scale information within the preset range is equal to the target gray scale, acquiring the second gray scale image information; wherein before the step of adjusting the first gray scale image information based on the illumination information until the vehicle body gray scale within the preset range is equal to the target gray scale, the method further comprises: based on the illumination information and the vehicle body color information, acquiring the target gray scale; based on the second gray scale image information, determining whether the to-be-detected charging port is a target charging port.
2. The vehicle charge port identification method of claim 1, wherein, The acquisition of the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs comprises: acquiring license plate information of the target vehicle; based on the license plate information, acquiring pre-stored vehicle feature information of the target vehicle; based on the pre-stored vehicle feature information, determining the vehicle body color information of the target vehicle.
3. The vehicle charge port identification method of claim 1, wherein, The determination of the illumination information within the preset range based on the first gray scale image information and the vehicle body color information comprises: based on the first gray scale image information, determining gray scale change information within the preset range; based on the gray scale change information, determining illumination direction information within the preset range.
4. The vehicle charge port identification method of claim 3, wherein, The method further comprises: based on the illumination direction information and the gray scale change information, determining illumination intensity information within the preset range.
5. The vehicle charge port identification method of claim 1, wherein, The determination of whether the to-be-detected charging port is the target charging port based on the second gray scale image information comprises: based on the second gray scale image information, acquiring target gray scale image information of the to-be-detected charging port; based on the target gray scale image information, acquiring image gray scale distribution information of the to-be-detected charging port; According to the image gray distribution information, it is judged whether the to-be-detected charging port is the target charging port.
6. A vehicle charging port identification apparatus characterized by comprising: The method comprises the steps of: The first acquisition module is configured to acquire first gray image information in a preset range, wherein the preset range is an image acquisition range including a to-be-detected charging port and part of a vehicle body around the to-be-detected charging port. The second acquisition module is configured to acquire vehicle body color information of a target vehicle to which the to-be-detected charging port belongs, wherein the acquisition of the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs comprises the following steps: based on login information of a charging device, the vehicle body color information of the target vehicle to which the to-be-detected charging port belongs is determined. The determination module is configured to determine illumination information in the preset range based on the first gray image information and the vehicle body color information, wherein the determination of the illumination information in the preset range based on the first gray image information and the vehicle body color information comprises the following steps: based on the first gray image information, gray image information of part of the vehicle body around the to-be-detected charging port in the preset range is acquired, according to the vehicle body color information of the target vehicle, gray value information of the vehicle body color information is acquired, a gray difference value of the gray image information of the part of the vehicle body and the gray value information of the vehicle body color information is acquired, and the illumination information in the preset range is determined based on the gray difference value. The third acquisition module is configured to acquire second gray image information in the preset range according to the illumination information and the first gray image information, wherein the acquisition of the second gray image information in the preset range according to the illumination information and the first gray image information comprises the following steps: the first gray image information is adjusted according to the illumination information until the vehicle body gray in the preset range is equal to a target gray, and in the case that the vehicle body gray information in the preset range is equal to the target gray, the second gray image information is acquired, wherein before the step of adjusting the first gray image information according to the illumination information until the vehicle body gray in the preset range is equal to the target gray, the following step is further included: based on the illumination information and the vehicle body color information, the target gray is acquired. The judgment module is configured to judge whether the to-be-detected charging port is the target charging port based on the second gray image information.
7. An electronic device comprising a memory, a processor, characterized in that, The processor is configured to implement the steps of the vehicle charging port identification method of any one of claims 1 to 5 when executing the computer program stored in the memory.
8. A computer readable storage medium having stored thereon a computer program, characterized in that: The computer program is configured to implement the steps of the vehicle charging port identification method of any one of claims 1 to 5 when executed by the processor.
Citation Information
Patent Citations
Method and device for detecting real-time movement target under dynamic and complicated background
CN101561932A
Illumination intensity detection system and method
CN102445269A