Charging pile water inlet trip control method and system based on image recognition

文档序号:8488 发布日期:2021-09-17 浏览:35次 中文

1. The charging pile water inlet trip control method based on image recognition is characterized by comprising the following steps of:

monitoring images in a charging pile cabinet body;

carrying out image recognition on the image in the charging pile cabinet body, and determining whether water enters the charging pile cabinet body;

if fill electric pile cabinet internal water then control fill the switch tripping operation in the electric pile.

2. The method of claim 1, wherein after controlling the switch in the charging post to trip if water enters the charging post cabinet, the method further comprises:

and sending a trip notification message to a maintainer of the charging pile.

3. The method of claim 1, wherein the image recognition of the image of the charging post cabinet body to determine whether water is entering the charging post cabinet body comprises:

carrying out image recognition on the image in the charging pile cabinet body, and determining whether water enters at least one circuit area in the charging pile cabinet body;

if it then controls to fill the internal water that intakes of electric pile cabinet fill the switch tripping operation in the electric pile, include:

and if at least one circuit area in the charging pile cabinet body is filled with water, controlling the switch corresponding to the circuit area filled with water in the charging pile to trip.

4. The method according to any one of claims 1 to 3, wherein the image recognition of the image in the charging pile cabinet body to determine whether water enters the charging pile cabinet body comprises:

carrying out haar-like feature extraction on the image in the charging pile cabinet body;

classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image in the charging pile cabinet body;

and determining whether water enters the charging pile cabinet body or not according to the characteristic classification result of the image in the charging pile cabinet body.

5. The method of claim 4, wherein before the extracting the haar-like features of the image in the charging pile cabinet, the method further comprises:

the Gentel AdaBoost classifier is trained using training sample images.

6. The utility model provides a fill electric pile tripping operation control system of intaking based on image recognition which characterized in that includes:

the image monitoring device is used for monitoring images in the charging pile cabinet body;

the image recognition device is used for carrying out image recognition on the image in the charging pile cabinet body and determining whether water enters the charging pile cabinet body;

and the switch control device is used for controlling the switch in the charging pile to trip if water enters the charging pile cabinet body.

7. The system of claim 6, wherein the switch control device is further configured to send a trip notification message to a maintenance person of the charging post after controlling the switch in the charging post to trip.

8. The system according to claim 6, wherein the image recognition device is specifically configured to perform image recognition on an image in the charging pile cabinet body, and determine whether water enters at least one circuit area in the charging pile cabinet body;

the switch control device is specifically used for controlling the switch tripping corresponding to the circuit area of the water inflow in the charging pile if the water inflow is generated in at least one circuit area in the charging pile cabinet body.

9. The system according to any one of claims 6 to 8, wherein the image recognition device is specifically configured to perform haar-like feature extraction on the image in the charging pile cabinet body; classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image in the charging pile cabinet body; and determining whether water enters the charging pile cabinet body or not according to the characteristic classification result of the image in the charging pile cabinet body.

10. The system of claim 9, wherein the image recognition device is further configured to train the Gentel AdaBoost classifier using a training sample image prior to haar-like feature extraction on the image.

Background

In order to reduce the influence of the exhaust gas of the traditional fuel automobile on the environment and reduce the dependence on the traditional petroleum energy, the electric automobile is vigorously developed in recent years. The electric automobile is a vehicle driven by an electric vehicle by taking a vehicle-mounted power supply as power. The electric automobile does not need to add fuel, and energy supplement of the vehicle is realized through charging.

The charging pile is an unnecessary infrastructure in electric automobile popularization, and the electric automobile can realize quick charging in the distributed public charging pile. Along with popularization and popularization of charging piles, unattended self-service charging piles are widely deployed. Fill electric pile by oneself and greatly saved the cost of labor of operation maintenance, nevertheless fill electric pile by oneself and probably dispose in outdoor environment, receive external factors's influence easily to safe handling to filling electric pile produces the influence.

What produce the biggest threat to the safe handling of charging stake is the electric leakage hidden danger of charging stake, because self-service charging stake probably deploys in outdoor environment, the rain and snow weather probably leads to charging stake intaking. And the charging pile after water inflow may cause harm to human body due to electric leakage. And present charging pile can only take place the automatic disconnection switch after the electric leakage, to the personnel that use charging pile and near pedestrian's potential safety hazard that has produced.

Disclosure of Invention

The invention provides a charging pile water inlet trip control method and system based on image recognition, which can eliminate potential safety hazards of electric leakage when a charging pile enters water.

In a first aspect, an embodiment of the present invention provides a charging pile water inlet trip control method based on image recognition, including:

monitoring images in a charging pile cabinet body;

carrying out image recognition on an image in the charging pile cabinet body, and determining whether water enters the charging pile cabinet body;

if fill electric pile cabinet internal water then the tripping operation of the switch in the control electric pile.

In a possible implementation of the first aspect, if fill electric pile cabinet internal water intaking then the control fill after the switch tripping operation in the electric pile, still include:

and sending a trip notification message to a maintainer of the charging pile.

In a possible implementation of the first aspect, image recognition is performed on an image in the charging pile cabinet body, and it is determined whether water enters the charging pile cabinet body, including:

carrying out image recognition on an image in the charging pile cabinet body, and determining whether water enters at least one circuit area in the charging pile cabinet body;

if fill the internal switch tripping operation that then the control was filled the interior water of electric pile cabinet, include:

if at least one circuit area in the charging pile cabinet body is filled with water, the switch tripping corresponding to the circuit area filled with water in the charging pile is controlled.

In a possible implementation of the first aspect, image recognition is performed on an image in the charging pile cabinet body, and it is determined whether water enters the charging pile cabinet body, including:

carrying out haar-like feature extraction on the image in the charging pile cabinet body;

classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image in the charging pile cabinet body;

and determining whether water enters the charging pile cabinet body or not according to the characteristic classification result of the image in the charging pile cabinet body.

In a possible implementation manner of the first aspect, before performing haar-like feature extraction on an image in a charging pile cabinet, the method further includes:

the Gentel AdaBoost classifier was trained using training sample images.

In a second aspect, an embodiment of the present invention provides an image recognition-based charging pile water inlet trip control system, including:

the image monitoring device is used for monitoring images in the charging pile cabinet body;

the image recognition device is used for carrying out image recognition on the image in the charging pile cabinet body and determining whether water enters the charging pile cabinet body or not;

and the switch control device is used for controlling the switch trip in the charging pile if water enters the charging pile cabinet body.

In a possible implementation manner of the second aspect, the switch control device is further configured to send a trip notification message to a maintainer of the charging pile after controlling the switch in the charging pile to trip.

In a possible implementation manner of the second aspect, the image recognition device is specifically configured to perform image recognition on an image in the charging pile cabinet body, and determine whether water enters into at least one circuit area in the charging pile cabinet body;

switch control device specifically is used for if fill the regional income of at least one circuit in the electric pile cabinet body, then the switch tripping operation that the regional correspondence of circuit of the interior water of control charging pile.

In a possible implementation manner of the second aspect, the image recognition device is specifically configured to perform haar-like feature extraction on an image in a charging pile cabinet body; classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image in the charging pile cabinet body; and determining whether water enters the charging pile cabinet body or not according to the characteristic classification result of the image in the charging pile cabinet body.

In a possible implementation manner of the second aspect, the image recognition device is further configured to train a Gentel AdaBoost classifier using the training sample image before performing haar-like feature extraction on the image.

According to the charging pile water inlet tripping control method and system based on image recognition, the image in the charging pile cabinet body is monitored, then the image in the charging pile cabinet body is subjected to image recognition, whether water enters the charging pile cabinet body or not is determined, if water enters the charging pile cabinet body, a switch in the charging pile is controlled to trip, the power supply of the charging pile can be cut off in time when water enters the charging pile, and potential safety hazards of electric shock of a human body caused by water entering the charging pile are eliminated.

Drawings

Fig. 1 is a flowchart of a charging pile water inlet trip control method based on image recognition according to an embodiment of the present invention;

fig. 2 is a flowchart of another charging pile water inlet trip control method based on image recognition according to an embodiment of the present invention;

FIG. 3 is a histogram of Haar-like features;

FIG. 4 is a plot of integral definitions for Haar-like features;

FIG. 5 is a schematic diagram of a cascade classifier;

fig. 6 is a schematic structural diagram of a charging pile water inlet trip control system based on image recognition according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Fig. 1 is a flowchart of a charging pile water inlet trip control method based on image recognition according to an embodiment of the present invention, and as shown in fig. 1, the charging pile water inlet trip control method based on image recognition according to the embodiment includes:

and S101, monitoring images in the charging pile cabinet body.

The charging pile water inlet tripping control method based on image recognition is used for carrying out water inlet recognition on an electric vehicle charging pile based on the image recognition method, and controlling a switch in the charging pile to trip after recognizing that the charging pile enters water, so that electric leakage of the charging pile due to water inlet is avoided.

First, images inside the charging pile cabinet body need to be monitored. At least one image monitoring device can be arranged in the charging pile cabinet body, the image monitoring device can be a video camera or a camera, and images in the charging pile cabinet body can be continuously monitored, namely video images in the charging pile cabinet body are collected; or the images in the charging pile cabinet body are collected in a certain period, wherein the period can be set according to the capacity of the image monitoring device and the actual use requirement, for example, the period is 10 seconds. Monitoring of charging pile cabinet internal image can be to the image acquisition of charging pile cabinet internal all regions, also can monitor the image of charging pile cabinet internal specific area.

Because the method that this embodiment provided is used for detecting charging pile intaking, and only the electric leakage can be caused to the partial intaking of the internal circuit of charging pile cabinet, consequently can monitor the image of the internal circuit place region of charging pile cabinet. In addition, it is regional that the internal circuit that probably exists in a plurality of different regions of electric pile cabinet that fills, consequently to filling the image in the electric pile and monitoring can be to filling the image of each circuit region in the electric pile cabinet body and monitoring.

And S102, carrying out image recognition on the image in the charging pile cabinet body, and determining whether water enters the charging pile cabinet body.

After monitoring the internal image of filling electric pile cabinet, will obtain and fill a series of images in the electric pile. In order to determine whether water enters the charging pile or not, image recognition needs to be carried out on a series of monitored images in the charging pile cabinet body. The purpose of image recognition is to confirm whether the charging pile cabinet is internally filled with water. The image recognition is carried out on the image in the charging pile cabinet body, any image recognition method can be adopted in the method for determining whether water enters into the charging pile cabinet body, and only the classification recognition can be carried out on the image whether water enters into the charging pile cabinet body or not. Because there is certain difference between the image of charging pile cabinet internal water intaking and the image of not intaking, consequently can carry out classification and discernment to the image of intaking and the image of not intaking through image identification's method. Generally, image recognition is provided with an image recognition model, and the purpose of image classification recognition can be achieved by training the image recognition model by using a plurality of training images.

And S103, controlling a switch in the charging pile to trip if water enters the charging pile cabinet body.

If fill the internal water that intakes of electric pile cabinet, then probably because water and the internal circuit contact of electric pile cabinet of filling produces the electric leakage, threatens to the user that uses to fill electric pile and the people near filling electric pile. Consequently carrying out image identification to the internal image of electric pile cabinet that fills, confirm to fill electric pile cabinet internal back of intaking, can control and fill the switch tripping operation in the electric pile. That is to say when the internal back of intaking of electric pile cabinet is filled in the definite determination, the switch that directly cuts off electric pile fills for fill the electric pile outage. Fill the internal circuit of electric pile cabinet like this and just not electrified, the user that uses to fill electric pile or the near people that fills electric pile just have not had the risk of electrocuteeing. Wherein the switch in the charging post may be an air switch, for example.

Although the control fills the interior switch tripping operation back of electric pile, fills electric pile and will not be electrified, can't provide charging service for electric automobile, but can guarantee people's safety. In addition, after the switch in the charging pile is controlled to trip, trip information can be sent to a maintainer of the charging pile, so that the maintainer of the charging pile can timely know that the charging pile is tripped due to water inflow. The maintainer who fills electric pile can in time carry out maintenance to the electric pile that fills of intaking like this, makes to fill electric pile and can resume normal service as early as possible.

The charging pile water inlet tripping control method based on image recognition provided by the embodiment is characterized in that images in a charging pile cabinet body are monitored, then image recognition is carried out on the images in the charging pile cabinet body, whether water enters the charging pile cabinet body or not is determined, if water enters the charging pile cabinet body, the tripping of a switch in the charging pile is controlled, a power supply of the charging pile can be timely cut off when the water enters the charging pile, and potential safety hazards of electric shock of a human body caused by the fact that the charging pile enters the water are eliminated.

Fig. 2 is a flowchart of another charging pile water inlet trip control method based on image recognition according to an embodiment of the present invention, and as shown in fig. 2, the charging pile water inlet trip control method based on image recognition according to the embodiment includes:

and step S201, monitoring images in the charging pile cabinet body.

Step S202, image recognition is carried out on the image in the charging pile cabinet body, and whether water enters at least one circuit area in the charging pile cabinet body or not is determined.

Within the charging post, there may be a number of different circuit areas, such as charging circuits, display circuits, lighting circuits, and the like. Different circuit regions are located the internal different positions of electric pile cabinet, and no matter which kind of circuit region is intake, have the risk of electrocuteeing when all probably leading to human contact to charge the cabinet. However, if the switch of all the circuits of the charging pile is turned off regardless of the water inflow of the circuit area in the charging pile, the charging pile cannot provide the charging service completely. In fact, if some auxiliary circuits which do not affect the charging service much enter water, and only the switch of the circuit for entering water is switched off, the charging pile can still provide the charging service normally, for example, if the external lighting circuit provided by the charging pile is switched off, the charging pile can still provide the normal charging service.

Therefore in this embodiment, carry out image identification to the internal image of the electric pile cabinet that fills, whether the internal at least one circuit region of electric pile cabinet of discernment is intake. Each circuit area in the charging pile cabinet body is divided, each circuit area is used as an independent identification area, image identification is carried out on each independent identification area, and whether water enters each circuit area is determined.

Step S203, if at least one circuit area in the charging pile cabinet body is filled with water, controlling a switch corresponding to the circuit area filled with water in the charging pile to trip.

If it is confirmed through image recognition that at least one circuit area in the charging pile cabinet body is filled with water, the switch tripping corresponding to the circuit area filled with water in the charging pile can be controlled. That is, set up independent switch respectively for every circuit region in filling electric pile, the switch trip that only circuit region corresponds that only controls into water. Therefore, the circuit area without water in the charging pile can still work normally. If the circuit area of switch trip-out is not the circuit area that provides the charging service must in filling electric pile, then fill electric pile this moment and still can provide charging service, and can not lead to the user or fill other human electric shocks of electric pile nearby.

The charging pile water inlet tripping control method based on image recognition provided by the embodiment is characterized in that images in a charging pile cabinet body are monitored, then the images in the charging pile cabinet body are subjected to image recognition, whether water enters at least one circuit area in the charging pile cabinet body is determined, a power supply of the charging pile can be timely cut off when the water enters the charging pile, and potential safety hazards of electric shock of a human body caused by the fact that the charging pile enters the water are eliminated.

Further, in the embodiment shown in fig. 1 or fig. 2, a specific method for performing image recognition on an image in the charging pile cabinet body and determining whether water enters the charging pile cabinet body may be an image recognition method based on a Gentel AdaBoost classifier. The method specifically comprises the following steps: carrying out haar-like feature extraction on the image in the charging pile cabinet body; classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image in the charging pile cabinet body; and determining whether water enters the charging pile cabinet body or not according to the characteristic classification result of the image in the charging pile cabinet body.

The Haar-like characteristic value mainly reflects the gray level change condition of the image. The method mainly utilizes the characteristic template, and can obtain a large number of rectangular characteristics in the image by changing the size and the position of the characteristic template in the image, thereby achieving the purpose of identifying the structure of the target object. The Haar-like features mainly comprise edge features, linear features and the like according to a basic graph structure. The rectangle of the Haar-like feature is shown in FIG. 3. FIG. 3 is a rectangle diagram of the Haar-like feature.

The Haar-like feature mainly uses an integral graph to calculate the feature value of the corresponding point of the image. The integral definition map of the Haar-like feature is shown in fig. 4, and fig. 4 is the integral definition map of the Haar-like feature. The size of the integrogram is consistent with the identified picture. The value of each point is the sum of the gray values of all the pixel points in the area enclosed by the upper left corner of the point. Is calculated by the formula

Wherein ii (x, y) represents the sum of all grays of the grayscale map of the upper left corner of point (x, y); i (x ', y') represents the gray value of the point (x, y). That is, only one time of scanning the whole image is needed, x' integral images can be obtained through calculation. Therefore, regardless of the variation of the rectangular window of the feature, after the integral map is applied, the time taken for calculating the feature value of the haar-like feature is a fixed value, and the feature values of the sub-windows with different sizes can be calculated very quickly.

AdaBoost originates from the Boosting operator. The operator of this class contains 2 important techniques, namely weak learning and strong learning. The process from weak learning to strong learning is the Boosting process. On the basis of Boosting algorithm, Freund et al [ ] proposes an adaptive Boosting algorithm, namely AdaBoost. The algorithm requires cascading a series of weak classifiers to form a strong classifier. Fig. 5 is a schematic diagram of a cascade classifier.

The calculation flow of the Adaboost algorithm is as follows: 1. an initial weight of the training sample is given. 2. Setting T as 1, normalizing the sample weight, training a weak classifier for each feature, selecting the optimal weak classifier, and updating the sample weight. 3. Obtain a strong classifier

Commonly used AdaBoost algorithms are dab (discrete AdaBoost), rab (real AdaBoost) and lb (logitboost), respectively. They differ in that the DAB algorithm must require that the output of the weak classifier is binary, whereas the output of the weak classifier of the RAB and LB algorithms can be real. The Gentel AdaBoost generally achieves better results, so the Gentel AdaBoost classifier is used in this embodiment. Gentle AdaBoost is also called Gentle AdaBoost if the classifier is defined as:

compared with the classification result of the traditional DiscretAdaboost algorithm which is only-1 or 1, the classification value alpha is1And alpha2Is an absolute value of [0, 1](actual value is [ -1, 1 ]]) The absolute value is larger, and the higher the credibility of the classification is; such a representation is more realistic. The training process for the GentleAdaboost algorithm is as follows:

1) assume a total of N training samples, labeled (x)1,y1),…,(xn,yn) Wherein y isi∈{-1,1};yiExpressed as water intake sample, yiNo water sample is indicated as-1.

2) The sample weight is initialized to wi=1/N,i=1,…,N。

3) for j is 1; m (M represents training round number)

a. From all the rectangular features, the best classifier h of the j round is selectedj(x) So that the weighted mean square error of the samples is minimized under the distribution of the sample weights.

b. Update the weights, wi←wi*exp(-yi*hm(xi)),i=1,...,N。

c. The weights are normalized such that

4) Outputting a strong classifier:sign (x) is 1 when x is greater than or equal to 0, otherwise is-1.

Fig. 6 is a schematic structural diagram of a charging pile water inlet trip control system based on image recognition according to an embodiment of the present invention, and as shown in fig. 6, the charging pile water inlet trip control system based on image recognition according to the embodiment includes:

the image monitoring device 61 is used for monitoring images in the charging pile cabinet body;

the image recognition device 62 is used for carrying out image recognition on the image in the charging pile cabinet body and determining whether water enters the charging pile cabinet body;

and the switch control device 63 is used for controlling the switch in the charging pile to trip if water enters the charging pile cabinet body.

The charging pile water inlet trip control system based on image recognition provided by the embodiment is used for realizing the technical scheme of the charging pile water inlet trip control method based on image recognition shown in fig. 1, the realization principle and the technical effect are similar, and the description is omitted here.

Further, on the basis of the embodiment shown in fig. 6, the switch control device 63 is further configured to send a trip notification message to a maintenance person of the charging pile after controlling the switch in the charging pile to trip.

Further, on the basis of the embodiment shown in fig. 6, the image recognition device 62 is specifically configured to perform image recognition on an image and determine whether water enters at least one circuit area in the charging pile cabinet; switch control device 63 is specifically used for if fill the internal at least one circuit region of electric pile cabinet and intake, then the switch tripping operation that the circuit region that the control was intake corresponds in the electric pile.

Further, on the basis of the embodiment shown in fig. 6, the image recognition device 62 is specifically configured to perform haar-like feature extraction on the image; classifying the extracted features based on a Gentel AdaBoost classifier to obtain a feature classification result of the image; whether the internal water intaking of electric pile cabinet according to the characteristic classification result of image is confirmed.

Further, on the basis of the embodiment shown in fig. 6, the image recognition device 62 is further configured to train the generic AdaBoost classifier using the training sample image before performing haar-like feature extraction on the image.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种透射式智能超表面辅助的跌倒检测方法与系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!