Method for realizing electric automobile charging by judging automobile type through image
Technical Field
The invention relates to a method for charging an electric automobile in the technical field of electric automobile charging, in particular to a method for judging the type of the automobile by using an image to realize electric automobile charging.
Background
The electric vehicle parking charging station is used for providing charging equipment for electric vehicles, such as a large number of parking spaces and charging piles, and the specific forms of the electric vehicle parking charging station are various. One is a special charging station, which occupies a large amount of space and needs a special power grid, so that the investment is huge, the cost is difficult to recover, the commercial promotion is difficult, and the premise of popularization of the electric vehicle is to have a charging station network. The second direct current charging station (quick charging) is a box type electric vehicle quick charging station adopting an energy storage device. The third type of AC charging station (slow charging) is a coin-operated wall-mounted electric bicycle charging station.
At present, the parking stall generally only provides to electric automobile among the electric automobile parking charging station, and current parking stall often can be occupied by non-electric automobile, for example fires oil car and other non-motor vehicles, will cause a large amount of electric pile of filling not used like this, produces the wasting of resources, also can lead to some electric automobile to charge unable simultaneously.
Disclosure of Invention
In order to solve the technical problems that in the existing electric automobile parking charging station, parking spaces are occupied by non-electric automobiles, so that resources are wasted, and meanwhile, part of electric automobiles cannot be charged, the invention provides a method for judging the type of an automobile by utilizing images to realize electric automobile charging.
The invention is realized by adopting the following technical scheme: a method for judging the type of a car by using an image to realize electric car charging, which is used for judging the type of the car parked in each parking space in an electric car parking charging station, comprises the following steps:
acquiring bottom line images of each parking space in real time;
judging whether the parking space bottom line in the bottom line image is covered by the parked vehicle or not;
when the parking space bottom line is covered by the parked vehicle, collecting vehicle position information and a contour image of the parked vehicle;
acquiring an infrared image within a contour range at the vehicle position according to the vehicle position and the contour image;
extracting a heating position in the infrared image and heating characteristics of the heating position;
according to the heating position and the heating characteristic, identifying the parked vehicle in a preset vehicle identification system to obtain the vehicle type of the parked vehicle; the heating position and the heating characteristic correspond to a unique vehicle type in the preset vehicle identification system;
judging whether the vehicle type is an electric vehicle or not;
when the vehicle type is a non-electric vehicle, driving away the parked vehicle;
and when the vehicle type is an electric vehicle, charging the parked vehicle.
According to the invention, the bottom line image of the parking space is collected firstly, whether the bottom line of the parking space is covered or not is judged, if yes, the position information and the outline image of the parking vehicle are collected, then the heating position and the heating characteristic in the infrared image are extracted, then the parking vehicle is identified in the preset vehicle identification system to obtain the vehicle type, and finally, whether the vehicle type is an electric vehicle is judged, if yes, the parking vehicle is charged, otherwise, the parking vehicle is directly driven away, so that the technical problems that the parking space in the existing electric vehicle parking charging station is occupied by a non-electric vehicle to cause resource waste and part of the electric vehicles cannot be charged are solved, the occupation prevention is obtained, the utilization rate of equipment resources is high, and meanwhile, the technical effect of charging the electric vehicles is facilitated.
As a further improvement of the above scheme, a visible light camera is used for shooting the parking space bottom line of the parking space to obtain the bottom line image; and carrying out infrared shooting on the area in the outline range at the position of the vehicle through an infrared camera so as to obtain the infrared image.
As a further improvement of the above solution, two different vehicle identification modes are preset in the preset vehicle identification system; one of the vehicle identification modes is for identifying a parked vehicle whose heat generating location is the entire region of the parked vehicle as the electric vehicle, and the other vehicle identification mode is for identifying a parked vehicle whose heat generating location is the engine compartment and the exhaust gas discharge region of the parked vehicle as the non-electric vehicle.
As a further improvement of the above solution, the method for identifying the vehicle type by the preset vehicle identification system comprises the following steps:
acquiring a background gray value and a brightest gray value in the infrared image, and taking the background gray value and the brightest gray value as the heating characteristics;
calculating a gray difference value between the brightest gray value and the background gray value;
judging whether the gray difference value is larger than a preset gray value I or not;
when the gray difference value is larger than the preset gray value, judging that the vehicle type is a non-electric vehicle;
and when the gray difference value is not greater than the preset gray value, determining that the vehicle type is the electric vehicle.
As a further improvement of the above solution, before extracting the heating position and the heating feature, noise processing is further performed on the infrared image, and the processing method includes the steps of:
acquiring a driving position area and a passenger position area of the parked vehicle in the infrared image;
judging whether the gray value of the driving position area or the passenger position area reaches a preset human body infrared gray value or not;
and when the gray value reaches the preset human body infrared gray value, removing the part of which the gray value is larger than the preset human body infrared gray value from the infrared image.
As a further improvement of the above solution, before extracting the heating position and the heating feature, the infrared image is further subjected to moving noise processing, and the processing method includes the steps of:
acquiring a plurality of infrared images at different time periods;
comparing the plurality of infrared images to screen out at least one moving target of which the gray value change value is smaller than a preset gray threshold value and the position change amount is larger than a preset position change value;
and removing the moving target from the infrared image.
As a further improvement of the above solution, the method for identifying the vehicle type by the preset vehicle identification system comprises the following steps:
acquiring a background gray value and a brightest gray value in the infrared image, and taking the background gray value and the brightest gray value as the heating characteristics;
calculating a gray difference value between the brightest gray value and the background gray value;
judging whether the gray difference value is smaller than a preset gray value two or not;
when the gray difference value is smaller than the second preset gray value, judging that the vehicle type is an electric vehicle;
and when the gray difference value is not less than the second preset gray value, judging that the vehicle type is a non-electric vehicle.
As a further improvement of the above solution, the method for determining the type of the vehicle by using the image to charge the electric vehicle further includes the following steps:
when the vehicle type is an electric vehicle, judging whether the parked vehicle is in a charging state;
when the parked vehicle is not in a charging state, sending charging prompt information;
when the parked vehicle is in a charging state, judging whether the charging amount reaches a preset electric quantity;
and when the charging amount reaches the preset electric quantity, sending information that the charging is to be completed.
As a further improvement of the above scheme, when the vehicle type is a non-electric vehicle, the parked vehicle is driven away by a ground lock, a barrier gate and an audible and visual alarm system, and alarm information is sent to a corresponding management platform.
As a further improvement of the above solution, the method for determining the type of the vehicle by using the image to charge the electric vehicle further includes the following steps:
before the infrared image is collected, whether the size of the outline image meets a preset outline size of the motor vehicle is judged;
when the size of the outline image meets the preset motor vehicle outline size, judging that the parked vehicle is a motor vehicle, and collecting the infrared image;
and when the size of the outline image does not meet the preset motor vehicle outline size, judging that the parked vehicle is a non-motor vehicle, stopping collecting the infrared image, and driving away the parked vehicle.
The method for realizing charging of the electric automobile by judging the automobile type by using the image has the following beneficial effects:
1. the method for judging the type of the automobile to charge the electric automobile by using the image comprises the steps of collecting a bottom line image of a parking space, judging whether the bottom line of the parking space is covered, collecting position information and a contour image of the parked automobile if the bottom line of the parking space is covered, extracting a heating position and a heating characteristic in an infrared image, identifying the parked automobile in a preset automobile identification system to obtain the type of the automobile, judging whether the type of the automobile is the electric automobile or not, charging the parked automobile if the type of the automobile is covered, and directly driving away the parked automobile if the type of the automobile is not covered. Because the electric automobile and the non-electric automobile have differences in power heating, the electric automobile charging method realizes type identification of the electric automobile by using heating characteristics, prevents the non-electric automobile from occupying a parking space, guarantees the charging requirement of the electric automobile, improves the utilization rate of charging equipment and avoids resource waste.
2. The method for realizing charging of the electric automobile by judging the automobile type through the image comprises the steps of firstly obtaining a background gray value and a brightest gray value in an infrared image when the automobile type is identified, wherein the brightest gray value can reflect an area with the largest heat productivity of the automobile, the background gray value reflects other non-heat-production areas of the automobile, then calculating a gray difference value, and finally judging whether the gray difference value is larger than a preset gray value one, wherein if yes, the automobile adopts a fuel engine with larger heat productivity, and is the non-electric automobile, and if not, the automobile is the electric automobile. The method can also compare the gray difference value with a preset gray value two when identifying the type of the vehicle, and can judge the vehicle as an electric vehicle only when the gray difference value is smaller than the preset gray value two, otherwise, the vehicle is a non-electric vehicle. The method can judge the vehicle type by utilizing the heating characteristics of the vehicle so as to be convenient for driving away the non-motor vehicle subsequently, and the identification rate of the vehicle type can be obviously improved because the fuel engine and the electric engine have great difference in the aspect of heat generation.
3. According to the method for judging the type of the automobile by using the image to realize charging of the electric automobile, noise processing is carried out on the infrared image before the heating feature is extracted, the driving position area and the passenger position area are obtained, whether the gray value of the driving position area and the passenger position area reaches the preset human body infrared gray value or not is judged, if yes, the driving position area and the passenger position area are removed, factors influencing gray judgment can be removed, factors with large gray values in the automobile do not exist correspondingly, the heating feature can be obtained to be closer to the actual heating feature of the automobile, and the accuracy of data extraction is improved.
4. According to the method for judging the type of the automobile by using the image to realize charging of the electric automobile, the infrared image is subjected to moving noise processing before the heating feature is obtained, the moving target is screened out by comparing the infrared images at different time intervals, and finally the moving target is removed, so that the moving noise with large heat quantity such as a human body and a pet can be avoided, and the accuracy of the extracted heating feature is further improved.
5. The method for realizing charging of the electric automobile by judging the automobile type by using the image can further judge whether the automobile is in a charging state or not after the automobile type is determined, judge whether the charging amount reaches the preset electric quantity or not when the automobile is in the charging state, if so, send out charging to-be-completed information, and send out charging prompt information when the automobile is in a non-charging state so as to remind a driver to charge, avoid the situation that the driver forgets to charge after parking, and simultaneously warn a non-charging electric automobile user occupying a parking space.
6. According to the method for judging the type of the automobile by using the image to realize charging of the electric automobile, the contour image of the automobile can be judged before the infrared image is collected, and judgment of the motor vehicle and the non-motor vehicle is realized, so that the infrared image is prevented from being continuously collected when the non-motor vehicle is driven, the algorithm flow is shortened, the non-motor vehicle is directly driven away, the parking space occupied by the non-motor vehicle can be effectively prevented, and the utilization rate of the parking space is improved.
Drawings
Fig. 1 is a flowchart of a method for determining a vehicle type using an image to charge an electric vehicle according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of the acquisition of a bottom line image and an infrared image in the method shown in fig. 1.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example 1
Referring to fig. 1 and 2, the present invention provides a method for determining a type of a vehicle using an image to charge an electric vehicle, the method being used for determining the type of the vehicle parked in each parking space of an electric vehicle parking station. In the embodiment, the types of parked vehicles are classified into electric vehicles and non-electric vehicles, and the non-electric vehicles are generally fuel vehicles, because most of the current motor vehicles mainly use the fuel vehicles, while the number of the electric vehicles is not large, and because the number of parking spaces is effective, the fuel vehicles occupy the parking spaces of the electric vehicles. Based on this, the method for realizing charging of the electric vehicle by using the image to determine the type of the vehicle of the embodiment comprises the following steps.
1. And acquiring bottom line images of all parking spaces in real time. In this embodiment, a visible light camera is used to capture the parking space bottom line of the parking space to obtain the bottom line image. The visible light camera can be installed in the front side or the rear side of parking the vehicle through mounting structures such as mounting posts, bases and the like, certainly, on some special parking spaces, the visible light camera can also be arranged on the left side or the right side of the parking space, for example, the parking space is a lateral parking space, and then the visible light camera can be arranged in the lateral direction.
2. And judging whether the parking space bottom line in the bottom line image is covered by the parked vehicle or not. Because the parking stall bottom line is complete when the vehicle is not parked, and when the parked vehicle is parked on the parking stall, the parking stall bottom line can be covered by the parked vehicle, so that the parking stall bottom line can not be found in the bottom line image, and the parking stall can be judged to be occupied by the vehicle.
3. When the parking space bottom line is covered by the parked vehicles, the vehicle position information and the outline images of the parked vehicles are collected. When a parked vehicle occupies a parking space, the geomagnetic sensor can be used for detecting vehicle information, the geomagnetic sensor utilizes the characteristic determined by the distribution of the earth magnetic field, the magnetic field distribution can be changed when the vehicle passes through, the basic principle that the resistance characteristic inside the sensor can be changed is used for measuring the magnetic field change, and the vehicle position information can be acquired at the moment. Compared with a common geomagnetic coil detector, the geomagnetic sensor has the advantages of small installation size, high sensitivity, small construction amount, long service life and small damage to the road surface. Generally speaking, the geomagnetic sensor itself may be equipped with a camera function, so as to directly acquire the profile image of the parked vehicle, and of course, other cameras may be used to acquire the profile image of the vehicle.
4. And acquiring an infrared image within the outline range at the vehicle position according to the vehicle position and the outline image. Since the position and contour of the parked vehicle have been determined in the previous step, an infrared image is acquired by infrared photographing an area within the contour range at the position of the vehicle by an infrared camera. The infrared camera can adopt the existing infrared camera equipment, and can gather the infrared image in a certain range, utilize the different corresponding infrared image of formation of thermal radiation.
5. And extracting the heating position in the infrared image and the heating characteristic of the heating position. When the parked vehicle is just parked on a parking space, the heating positions of the fuel vehicle are generally an engine compartment and a tail gas discharge area of the vehicle, namely an engine hood part and a tail gas pipe part at the front part of the vehicle body, the heat of the parts is concentrated, and a strong contrast effect is formed between the parts and the heating states of other parts of the vehicle body. The electric automobile is powered by electricity, the heating area of the electric automobile is generally the whole automobile body, and even if the heating value of part of the area is larger, the heating value is not larger than that of the fuel automobile.
6. And identifying the parked vehicle in a preset vehicle identification system according to the heating position and the heating characteristic so as to obtain the vehicle type of the parked vehicle. The heating position and the heating characteristic correspond to a unique vehicle type in a preset vehicle identification system. In the preset vehicle recognition system, two different vehicle recognition modes are preset. One of the vehicle identification modes is used to identify a parked vehicle whose heat generation location is the entire region of the parked vehicle as an electric vehicle, and the other vehicle identification mode is used to identify a parked vehicle whose heat generation location is the engine compartment and the exhaust gas emission region of the parked vehicle as a non-electric vehicle. Generally, the heating positions of the fuel vehicle and the electric vehicle are different, and if the heating positions are the same, the heating characteristics are necessarily different. For the heating characteristic, the fuel vehicle adopts a fuel engine, so that the heating value is very large, and meanwhile, the heating area (shape) is relatively fixed. The area where the electric automobile generates heat is generally the storage battery and the engine, the heat productivity is obviously smaller than that of the fuel engine, and meanwhile, the heating area is different. Here, it can be verified that if the heat of the engine or the storage battery of the electric motor can reach the heat of the fuel engine, the fuel engine uses the fuel to compress air to do work, the temperature can reach the ignition point, if the temperature occurs in the electric automobile, the cable of the electric automobile is inevitably in fire, which is not normal, and therefore the local heat of the electric motor cannot reach the heat of the fuel automobile.
7. And judging whether the vehicle type is an electric vehicle. In the last step, the type of the vehicle can be determined through the heating position and the heating characteristic, so that whether the parked vehicle is an electric vehicle or not can be judged in the step, and corresponding processing can be conveniently carried out subsequently.
8. And when the type of the vehicle is a non-electric vehicle, driving away the parked vehicle. Because non-electric automobile occupies the parking stall and can lead to filling the charging resource of electric pile to be wasted, also make some electric automobile not have the parking stall to charge simultaneously, consequently need drive away non-electric automobile. When driving away, the parked vehicles can be driven away through the ground lock, the barrier gate and the sound and light alarm system, and alarm information is sent to the corresponding management platform. Of course, also can send out warning sound through the attention device of setting in charging the stake, remind the driver who parks the vehicle to move the vehicle away. Like this, on the one hand can guarantee that the resource of charging station is by make full use of, on the other hand makes things convenient for electric automobile to charge, but also can guide green vehicle's selection, and then can play the effect of environmental protection deeply.
9. When the vehicle type is an electric vehicle, the parked vehicle is charged. This step can directly be predetermine in the electric pile that fills in parking stall, when judging that the vehicle type is electric automobile, fills the electric pile and directly realizes the function of charging to parking the vehicle.
In summary, the method for determining the type of the vehicle by using the image to charge the electric vehicle of the embodiment has the following advantages:
the method for judging the type of the automobile to charge the electric automobile by using the image comprises the steps of collecting a bottom line image of a parking space, judging whether the bottom line of the parking space is covered, collecting position information and a contour image of the parked automobile if the bottom line of the parking space is covered, extracting a heating position and a heating characteristic in an infrared image, identifying the parked automobile in a preset automobile identification system to obtain the type of the automobile, judging whether the type of the automobile is the electric automobile or not, charging the parked automobile if the type of the automobile is covered, and directly driving away the parked automobile if the type of the automobile is not covered. Because the electric automobile and the non-electric automobile have differences in power heating, the electric automobile charging method realizes type identification of the electric automobile by using heating characteristics, prevents the non-electric automobile from occupying a parking space, guarantees the charging requirement of the electric automobile, improves the utilization rate of charging equipment and avoids resource waste.
Example 2
The embodiment provides a method for realizing charging of an electric automobile by judging the type of the automobile by using an image, which adds a step of identifying a preset vehicle identification system on the basis of embodiment 1. The method for identifying the type of the vehicle by the preset vehicle identification system comprises the following steps.
And (6.1) acquiring a background gray value and a brightest gray value in the infrared image as the heating characteristics. The background gray value is a region with stable temperature in the parked vehicle, such as a vehicle frame, and the brightest gray value is a region with the largest heat generation amount of the vehicle, and is also a region with the strongest heat generation amount, such as a fuel cabin of a fuel vehicle.
And (6.2) calculating the gray difference value of the brightest gray value and the background gray value. The grey scale difference value actually reflects the temperature difference in the parked vehicle, i.e., the temperature difference between the hottest zone and the average temperature. During calculation, the brightest gray value is generally the gray value of a dark color area in the infrared image, and the value with the largest gray value can be selected, while the background gray value is the gray value of a light color area, and the gray value with the largest area occupied by the same color can be selected.
And (6.3) judging whether the gray difference value is greater than a preset gray value one. And comparing the gray difference value with the preset gray value one, so that the type of the vehicle can be accurately judged according to the gray information. In fact, the principle used in this step is based on the difference between the maximum temperature in the fuel vehicle and the maximum temperature in the electric vehicle, so as to identify the parked vehicle.
And (6.4) when the gray difference value is larger than the preset gray value, judging that the vehicle type is the non-electric vehicle. At this time, the temperature difference is very large, and it can be judged that the parked vehicle is not an electric vehicle. For the determination of the preset gray value one, the heating conditions of various electric vehicles can be integrated for setting, and meanwhile, the electric vehicle with the largest heating value and the fuel vehicle with the smallest heating value are selected as two limit conditions in consideration of the heating condition of the fuel vehicle, so as to determine the specific numerical value of the preset gray value one. For example, the maximum temperature that the electric vehicle can generate is 75 degrees celsius, and the minimum temperature that the fuel vehicle can generate is 400 degrees celsius, then the temperature corresponding to the preset gray value one may be selected from the range of 75 degrees celsius to 400 degrees celsius, and an intermediate value is selected as far as possible.
And (6.5) when the gray difference value is not greater than the preset gray value, judging that the vehicle type is the electric vehicle. Therefore, the method in the embodiment can judge the vehicle type by utilizing the heating characteristics of the vehicle so as to facilitate the subsequent driving-away treatment of the non-motor vehicle, and the recognition rate of the vehicle type can be obviously improved because the fuel engine and the electric engine have great difference in the aspect of heat generation.
Example 3
The embodiment provides a method for realizing charging of an electric vehicle by utilizing image determination of the type of the vehicle, which adds a part of steps on the basis of embodiment 1, namely, noise processing is further carried out on an infrared image before extracting a heat generation position and heat generation characteristics. The method for processing the noise comprises the following steps.
And (5.1) acquiring a driving position area and a passenger position area of the parked vehicle in the infrared image. In general, the driving location area and the passenger location area in the parked vehicle are determined, and thus the areas in the infrared image can be directly selected at the time of acquisition. In both areas there are usually people located when the vehicle is just parked, and this step is to screen out the two people-occupied areas.
(5.2) judging whether the gray value of the driving position area or the passenger position area reaches a preset human body infrared gray value. The preset human body infrared gray value is consistent with the gray value corresponding to the human body temperature, a vehicle can be parked on a parking space in advance during specific setting, meanwhile, the infrared features of people in the vehicle are extracted, the infrared gray value related to the body temperature is obtained, and the value is used as the preset human body infrared gray value.
And (5.3) when the gray value reaches the preset human body infrared gray value, removing the part of which the gray value is larger than the preset human body infrared gray value from the infrared image. Therefore, factors influencing the gray level judgment can be eliminated, factors with larger gray level values in the vehicle do not exist correspondingly, the obtained heating characteristics are closer to the actual heating characteristics of the vehicle, and the accuracy of data extraction is improved.
Example 4
The embodiment provides a method for realizing charging of an electric vehicle by utilizing image determination of the type of the vehicle, which is based on embodiment 1, and carries out moving noise processing on an infrared image before extracting a heat generation position and heat generation characteristics, and the processing method comprises the following steps.
And (5.4) acquiring a plurality of infrared images in different periods. In selecting the time period, it is preferable that the parked vehicle is in a time period after being parked in the parking space, and the driver and the passenger in the parked vehicle generally get off the vehicle during the time period.
And (5.5) comparing the infrared images to screen out at least one moving target with a gray value change value smaller than a preset gray threshold value and a position change value larger than a preset position change value. Here, since there are traces of movement in the infrared image when the human body or other moving objects move, the part of the moving objects can be accurately selected.
And (5.6) removing the moving target from the infrared image. Therefore, the moving target is screened out by comparing the infrared images in different time periods, and finally the moving target is removed, so that the moving noise with larger heat of human bodies, pets and the like can be avoided, and the accuracy of the extracted heating features is further improved.
Example 5
The embodiment provides a method for realizing charging of an electric automobile by judging the type of the automobile by using an image, which adds a step of identifying a preset vehicle identification system on the basis of embodiment 1. The method for identifying the type of the vehicle by the preset vehicle identification system comprises the following steps.
And (6.1) acquiring a background gray value and a brightest gray value in the infrared image as the heating characteristics. The background gray value is a region with stable temperature in the parked vehicle, such as a vehicle frame, and the brightest gray value is a region with the largest heat generation amount of the vehicle, and is also a region with the strongest heat generation amount, such as a fuel cabin of a fuel vehicle.
And (6.2) calculating the gray difference value of the brightest gray value and the background gray value. The grey scale difference value actually reflects the temperature difference in the parked vehicle, i.e., the temperature difference between the hottest zone and the average temperature. During calculation, the brightest gray value is generally the gray value of a dark color area in the infrared image, and the value with the largest gray value can be selected, while the background gray value is the gray value of a light color area, and the gray value with the largest area occupied by the same color can be selected.
And (6.3) judging whether the gray difference value is smaller than a preset gray value two. And comparing the gray difference value with the preset gray value two, so that the type of the vehicle can be accurately judged according to the gray information. In fact, the principle used in this step is based on the difference between the maximum temperature in the fuel vehicle and the maximum temperature in the electric vehicle, so as to identify the parked vehicle.
And (6.4) when the gray difference value is smaller than the preset gray value two, judging that the vehicle type is the electric vehicle. At this time, the temperature difference is very large, and it can be judged that the parked vehicle is not an electric vehicle. For the determination of the second preset gray value, the heating conditions of various electric vehicles can be integrated for setting, and meanwhile, the electric vehicle with the largest heating value and the fuel vehicle with the smallest heating value are selected as two limit conditions in consideration of the heating conditions of the fuel vehicles, so that the specific numerical value of the second preset gray value is determined. For example, the maximum temperature that the electric vehicle can generate is 85 degrees celsius, and the minimum temperature that the fuel vehicle can generate is 500 degrees celsius, then the temperature corresponding to the preset gray value one may be selected from a range of 85 degrees celsius to 500 degrees celsius, and an intermediate value may be selected as far as possible.
And (6.5) when the gray difference value is not less than the second preset gray value, judging that the vehicle type is a non-electric vehicle. Therefore, the method in the embodiment can judge the vehicle type by utilizing the heating characteristics of the vehicle so as to facilitate the subsequent driving-away treatment of the non-motor vehicle, and the recognition rate of the vehicle type can be obviously improved because the fuel engine and the electric engine have great difference in the aspect of heat generation.
Example 6
The embodiment provides a method for realizing charging of an electric automobile by utilizing image to judge the type of the automobile, which adds the following steps on the basis of the embodiment 1.
10. And when the vehicle type is the electric vehicle, judging whether the parked vehicle is in a charging state. Here, can judge through the user state who fills electric pile. Because park the vehicle when charging, fill electric pile and can have charging current, the while charge volume also can change, so just can judge through these two parameters.
11. And when the parked vehicle is not in the charging state, sending out charging prompt information. There may be a number of possibilities when the vehicle is in an uncharged state. One possibility is that the driver forgets to charge the vehicle after parking. Another possibility is that the driver is still very charged after parking, and it is not very much needed to charge it, just to occupy the parking space. Therefore, in both cases, it is necessary to send charging prompt information to enable the first possible driver to charge and to enable the second possible driver to give a certain warning effect to enable the vehicle to leave the parking space.
12. When the parked vehicle is in a charging state, whether the charging amount reaches a preset electric quantity is judged. The preset electric quantity can be set to 90%, 95% and 98%, and can be specifically selected according to the charging speed.
13. And when the charging amount reaches the preset electric quantity, sending information that the charging is to be completed. Therefore, whether the vehicle is in a charging state or not is further judged after the type of the vehicle is determined, whether the charging amount reaches the preset electric quantity or not is judged when the vehicle is in the charging state, if yes, charging to-be-completed information is sent, and if not, charging prompt information is sent so as to remind a driver of charging, the situation that the driver forgets to charge after parking is avoided, and meanwhile, a user of the non-charging electric automobile occupying a parking space is warned.
Example 7
The embodiment provides a method for realizing charging of an electric automobile by utilizing image to judge the type of the automobile, which adds the following steps on the basis of the embodiment 1.
Before the infrared image is collected, whether the size of the outline image meets a preset outline size of the motor vehicle is judged. Generally, the size of the outline image of the motor vehicle is larger, while the size of the non-motor vehicle is smaller, so that the preset size of the outline of the motor vehicle can be determined according to actual needs.
And when the size of the outline image meets the preset outline size of the motor vehicle, judging that the parked vehicle is the motor vehicle, and acquiring an infrared image. At this time, if it is determined by the outline image size that the parked vehicle is a motor vehicle, the next steps, i.e., the other steps in embodiment 1, can be performed.
And when the size of the outline image does not meet the preset motor vehicle outline size, judging that the parked vehicle is a non-motor vehicle, stopping collecting the infrared image, and driving away the parked vehicle. Similarly, the non-motor vehicles need to drive away when occupying parking spaces, so that the infrared images are prevented from being continuously acquired when the non-motor vehicles are driven, the algorithm flow is shortened, the non-motor vehicles are directly driven away, the non-motor vehicles can be effectively prevented from occupying the parking spaces, and the utilization rate of the parking spaces is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.