A charging pile abnormal use detection method, electronic device and storage medium
Through multi-frame image detection and current analysis, the problem of abnormal use detection of electric vehicle charging piles is solved, behavior monitoring and early warning during free charging is realized, and detection efficiency and user experience are improved.
Patent Information
- Application Number
- CN202210744232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2042-06-27
AI Technical Summary
It is difficult for the prior art to accurately detect and early warning of abnormal use of electric vehicle charging piles, especially when car owners may charge repeatedly during free charging, visual monitoring alone cannot be effectively identified.
Through multi-frame images in the monitoring area, detect vehicle and personnel's stay behavior, judge code scanning and plug-in and unplug the behavior, count the number of behaviors, determine abnormal usage based on the current sudden change point, and send early warning information.
Accurate detection and early warning of abnormal use of charging piles is achieved, reducing the need for managers to view on-site and improving user experience.
Smart Images

Figure CN115100598B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of abnormal use of charging piles, and in particular to a method for detecting abnormal use of charging piles, an electronic device and a storage medium. Background Art
[0002] At present, with the construction of smart communities in recent years, smart electric vehicle charging piles have become one of the indispensable facilities in the community. In order to encourage car owners to actively use electric vehicle charging piles to charge, some governments or communities provide fee reduction services when they put these charging piles into operation, that is, during the charging process, no fees are charged for the initial charging time or electricity consumption. However, some people will use the free charging period to charge their electric vehicles repeatedly. In response to this phenomenon, visual monitoring detection alone cannot accurately identify it. Therefore, it is necessary to provide an effective detection method to effectively warn of abnormal use of charging piles. Summary of the invention
[0003] Based on the above problems, the present application provides a method for detecting abnormal use of a charging pile, an electronic device and a storage medium.
[0004] In a first aspect, an embodiment of the present application provides a method for detecting abnormal use of a charging pile, comprising:
[0005] When there is a vehicle in the monitoring area, the vehicle is marked;
[0006] Detect whether there is a person in the monitoring area. When there are both marked vehicles and persons in the monitoring area, determine whether there is a person or vehicle stopping behavior based on the continuous multi-frame images of the monitoring area. If the determination result is that the person or vehicle is stopping behavior;
[0007] Determine whether the person has scanned the code and plugged in or unplugged the power supply. If the result of the determination is that the person has scanned the code and plugged in or unplugged the power supply, count the number of code scanning behaviors within a preset time period and the number of plugging in or unplugging behaviors within a preset time period respectively;
[0008] Determine whether the charging pile is suspected of abnormal use according to the number of code scanning behaviors and the number of plugging and unplugging behaviors within the preset time period. If the result is that the charging pile is suspected of abnormal use, determine the number of current mutation points;
[0009] Determine whether there is abnormal usage of the charging pile based on the time interval of each current mutation point and the number of current mutation points within the preset time period. If the determination result is that there is abnormal usage of the charging pile, send an early warning message to the management office.
[0010] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, determining whether there is a person or vehicle staying behavior based on multiple frames of images in the monitoring area includes:
[0011] When there are both marked vehicles and people in the monitoring area, the current frame image is determined as the image to be inspected;
[0012] When the number of images to be inspected in the continuous multiple-frame images of the monitoring area is greater than a first preset threshold, it is determined that there is a stop behavior of people and vehicles.
[0013] Furthermore, in the above-mentioned method for detecting abnormal use of a charging pile, judging whether a person has performed a code scanning behavior includes:
[0014] Mark the coordinates of the QR code area in the monitoring area, and obtain the head center coordinates, eye coordinates, and nose coordinates of the face;
[0015] Calculate the person orientation score based on the coordinates of the QR code area, the coordinates of the head center, the eye coordinates, and the nose coordinates of the face;
[0016] Determine the difference between the person's orientation score and a second preset threshold;
[0017] If the judgment result is that the person's orientation score is greater than the second preset threshold, then the person is determined to be facing the QR code;
[0018] Obtain the elbow coordinates and wrist coordinates of the person, and calculate the person's posture score based on the elbow coordinates and wrist coordinates of the person;
[0019] If the person's posture score is greater than the seventh preset threshold, it is determined that the person has performed a code scanning action;
[0020] Whether the person has performed the code scanning behavior is determined based on the relationship between the number of frames in which the code scanning action appears in the multiple frames of images where the code scanning action begins and the eighth preset threshold.
[0021] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, the person orientation score g is calculated according to the coordinates of the QR code area (x0, y0, w0, h0), the center coordinates of the head of the face (x1, y1), the eye coordinates (x2, y2), (x3, y3) and the nose coordinates (x4, y4). d It is calculated by the following formula:
[0022] g d =max(g1 d , g2 d )
[0023] in
[0024]
[0025]
[0026] x00=x0+0.5w0
[0027] y00=y0+0.5h0
[0028]
[0029]
[0030] Calculate the person's posture score g based on the person's elbow coordinates (xe1, ye1), (xe2, ye2) and wrist coordinates (xa1, ya1), (xa2, ya2) z It is calculated by the following formula:
[0031] g z =max(g1 z , g2 z )
[0032] in
[0033] g1 z =g11 z g12 z
[0034]
[0035]
[0036]
[0037]
[0038] A1=y00-y1
[0039] B1=x1-x00
[0040] C1=x00y1-y00x1
[0041] When (xe1, ye1), (xa1, ya1) do not all exist, g1 z =0
[0042] g2 z =g21 z g22 z
[0043]
[0044]
[0045]
[0046]
[0047] When (xe2, ye2), (xa2, ya2) do not all exist, g2z =0,
[0048] ts3 is a preset third preset threshold, ts4 is a preset fourth preset threshold, ts5 is a preset fifth preset threshold, and ts6 is a preset sixth preset threshold.
[0049] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, judging whether a person has plugged or unplugged a charging pile includes:
[0050] Mark the coordinates of the power socket area in the monitoring area and obtain the coordinates of the personnel's wrist;
[0051] Determine the charging action score based on the power socket area coordinates and the person's wrist coordinates;
[0052] Determine the difference between the charging action score and an eleventh preset threshold;
[0053] If the judgment result is that the charging action score is greater than the eleventh preset threshold value, it is determined that the person has a charging action;
[0054] Whether the person has plugged or unplugged the power supply is determined according to the relationship between the number of frames in which the charging action appears in the multi-frame images where the charging action begins and the twelfth preset threshold.
[0055] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, the charging action score g is determined according to the power socket area coordinates (x7, y7, w7, h7) and the wrist coordinates (xa1, ya1), (xa2, ya2) of the person. c , is calculated by the following formula:
[0056]
[0057] Among them, ts9 is the ninth preset threshold, ts 10 is the preset tenth preset threshold;
[0058]
[0059]
[0060] When (xa1, ya1) does not exist, g1 c =ts 10 , (xa2, ya2) does not exist, g2 c =ts 10 .
[0061] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, whether the suspected abnormal use of the charging pile occurs is determined according to the number of code scanning behaviors m3 within the preset time period t1 and the number of plugging and unplugging behaviors m4 within the preset time period t1, which is determined by the following formula:
[0062] when hour,
[0063] where ts 13 The thirteenth preset threshold value, ts 14 The fourteenth preset threshold is set to determine that the charging pile is suspected of abnormal use;
[0064] when Yes, it is confirmed that there is no suspected abnormal use of the charging piles.
[0065] Furthermore, in the above-mentioned method for detecting abnormal use of a charging pile, if the result of the determination is that the charging pile is suspected to be in abnormal use, determining the number of current mutation points includes:
[0066] The current signal within the preset time period t1 is obtained. The time interval between each detection point is t2. For the current I i , where i is the serial number of the detection point, and the current values of N3 consecutive detection points starting from detection point i are obtained to form a set {I i}, calculate the current difference score g r
[0067] g r =max({I i})-min({I i})
[0068] When the g r >ts 15 When ts 15 The fifteenth preset threshold is set, and the detection point i is determined to be a mutation point, and the number of mutation points m5 is counted;
[0069] According to the time interval t2 of each current mutation point and the number m5 of current mutation points within the preset time period t1, it is determined whether there is abnormal use behavior of the charging pile, which is determined by the following formula:
[0070] when When the charging pile is abnormally used, it is determined that there is abnormal use of the charging pile; among them, ts 16 The sixteenth preset threshold is set.
[0071] In a second aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
[0072] The processor is used to execute the method for detecting abnormal use of a charging pile as described in any one of the above items by calling the program or instruction stored in the memory.
[0073] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute the method for detecting abnormal use of a charging pile as described in any one of the above.
[0074] The advantages of the embodiments of the present application are: when the present application determines that there is a vehicle in the monitoring area, the vehicle is marked; detects whether there are personnel, and when there are vehicles and personnel at the same time, determines whether there are personnel and vehicle stopping behaviors based on multiple frames of images, if the determination result is that there are personnel and vehicle stopping behaviors; judges whether the personnel have scanned codes and plugged in and out of the power, if there are scanned codes and plugged in and out of the power; determines whether there is suspected abnormal use of the charging pile based on the number of scanned codes in the preset time period and the number of plugged in and out of the power in the preset time period, if the determination result is suspected abnormal use of the charging pile, determines the number of current mutation points; determines whether there is abnormal use of the charging pile based on the time interval and the number of current mutation points of each current mutation point in the preset time period, if the determination result is that there is abnormal use of the charging pile, sends an early warning message to the management office. The management office staff promptly prevents the occurrence of abnormal use of the charging pile based on the early warning information, and the management office staff does not need to go to the site to check or stare at the monitoring in real time, and the user experience is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0076] Figure 1 A method for detecting abnormal use of a charging pile provided in an embodiment of the present application is shown in FIG. Figure 1 ;
[0077] Figure 2 A method for detecting abnormal use of a charging pile provided in an embodiment of the present application is shown in FIG. Figure 2 ;
[0078] Figure 3 It is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0079] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0080] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0081] Figure 1 A method for detecting abnormal use of a charging pile provided in an embodiment of the present application is shown in FIG. Figure 1 .
[0082] In a first aspect, an embodiment of the present application provides a method for detecting abnormal use of a charging pile, including five steps from S101 to S105:
[0083] S101: When there is a vehicle in the monitoring area, mark the vehicle.
[0084] Specifically, in an embodiment of the present application, images of charged electric bicycles and charged cars are collected and the charged vehicles are labeled, a YOLO-based training model is used to train the labeled data to obtain a charging vehicle detection model, and the trained charging vehicle detection model is used to monitor the vehicle information in the monitoring area. When there is a vehicle in the monitoring area, feature data such as the color and model of the vehicle are extracted to label the vehicle.
[0085] S102: Detect whether there are people in the monitoring area. When there are marked vehicles and people in the monitoring area at the same time, determine whether there are people and vehicles staying in the monitoring area based on continuous multiple-frame images of the monitoring area. If the determination result is that there are people and vehicles staying in the monitoring area.
[0086] Specifically, in an embodiment of the present application, after the vehicle is labeled, it is simultaneously detected whether there are people in the monitoring area. When there are labeled vehicles and people in the monitoring area at the same time, it is determined whether there are people and vehicles stopping based on continuous multiple-frame images of the monitoring area. The steps for determining whether there are people and vehicles stopping are described in detail below.
[0087] S103: Determine whether the person has performed code scanning and plugging and unplugging. If the result of the determination is that the person has performed code scanning and plugging and unplugging, count the number of code scanning behaviors within a preset time period and the number of plugging and unplugging behaviors within a preset time period, respectively.
[0088] Specifically, in the embodiment of the present application, after determining that there is a person or vehicle stopping, it is judged whether the person has performed a code scanning behavior and a plugging and unplugging behavior. The steps for determining whether a code scanning behavior and a plugging and unplugging behavior have occurred are described in detail below. After determining the code scanning behavior and the plugging and unplugging behavior, the number of code scanning behaviors within a preset time period and the number of plugging and unplugging behaviors within a preset time period are counted respectively.
[0089] S104: Determine whether the charging pile is suspected of abnormal use according to the number of code scanning behaviors and the number of plugging and unplugging behaviors within the preset time period. If the determination result is that the charging pile is suspected of abnormal use, determine the number of current mutation points.
[0090] Specifically, in an embodiment of the present application, suspected abnormal use of the charging pile is determined based on the number of code scanning behaviors within a preset time period and the number of plugging and unplugging behaviors within a preset time period. The following describes in detail how to determine the suspected abnormal use of the charging pile based on the number of code scanning behaviors within a preset time period and the number of plugging and unplugging behaviors within a preset time period. If the determination result is that the charging pile is suspected of abnormal use, the number of current mutation points is determined. The following describes in detail the steps for determining the number of current mutation points.
[0091] S105: Determine whether there is abnormal use of the charging pile based on the time interval and the number of current mutation points within a preset time period. If the determination result is that there is abnormal use of the charging pile, send an early warning message to the management office.
[0092] Specifically, in the embodiment of the present application, the steps of determining whether there is abnormal use of the charging pile according to the time interval and the number of current mutation points in the preset time period are described in detail below. If the result of the determination is that there is abnormal use of the charging pile, an early warning message is sent to the management office. The management office staff promptly prevents the occurrence of abnormal use of the charging pile based on the early warning information, and the management office staff does not need to go to the site to check or monitor in real time, and the user experience is high.
[0093] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, determining whether there is a person or vehicle staying behavior based on multiple frames of images in the monitoring area includes:
[0094] When there are both marked vehicles and people in the monitoring area, the current frame image is determined as the image to be inspected;
[0095] When the number of images to be inspected in the continuous multiple-frame images of the monitoring area is greater than a first preset threshold, it is determined that there is a stop behavior of people and vehicles.
[0096] Specifically, in an embodiment of the present application, when there are labeled vehicles and personnel in the monitoring area at the same time, the current frame image is determined to be an image to be inspected; when the number of images to be inspected n in N consecutive frames of images is greater than ts1, where ts1 is the first preset threshold, it is determined that there is a stop behavior of personnel and vehicles.
[0097] Figure 2 A method for detecting abnormal use of a charging pile provided in an embodiment of the present application is shown in FIG. Figure 2 .
[0098] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, judging whether a person has a code scanning behavior includes five steps from S201 to S205:
[0099] S201: Mark the coordinates of the QR code area in the monitoring area, and obtain the head center coordinates, eye coordinates and nose coordinates of the face.
[0100] Specifically, in the embodiment of the present application, the coordinates of the QR code area in the monitoring area are marked (x0, y0, w0, h0), where (x0, y0) are the coordinates of the left vertex of the QR code area, w0 is the width of the QR code area, and h0 is the height of the QR code area, and the head center coordinates (x1, y1), eye coordinates (x2, y2), (x3, y3) and nose coordinates (x4, y4) of the human face are obtained.
[0101] S202: Calculate the person orientation score according to the coordinates of the QR code area, the head center coordinates, the eye coordinates and the nose coordinates of the face.
[0102] Specifically, in the embodiment of the present application, the person orientation score g is calculated based on the coordinates of the QR code area (x0, y0, w0, h0), the center coordinates of the head of the face (x1, y1), the eye coordinates (x2, y2), (x3, y3) and the nose coordinates (x4, y4). d The steps are described in detail below.
[0103] S203: Determine the difference between the person orientation score and a second preset threshold value. If the determination result is that the person orientation score is greater than the second preset threshold value, determine the person orientation QR code.
[0104] Specifically, in the embodiment of the present application, when the person is heading towards the score g d >ts2, wherein ts2 is a second preset threshold, and it is determined that the person is facing the QR code.
[0105] S204: Obtain the elbow coordinates and wrist coordinates of the person, and calculate the person's posture score based on the elbow coordinates and wrist coordinates of the person. If the person's posture score is greater than a seventh preset threshold, it is determined that the person has performed a code scanning action.
[0106] Specifically, in the embodiment of the present application, when it is detected that a person is facing the QR code, the elbow coordinates (xe1, ye1), (xe2, ye2) and wrist coordinates (xa1, ya1), (xa2, ya2) of the person are obtained, and the person's posture score g is calculated according to the elbow coordinates (xe1, ye1), (xe2, ye2) and wrist coordinates (xa1, ya1), (xa2, ya2) of the person. z , when the personnel posture score g z >ts7, where ts7 is the seventh preset threshold, it is determined that the person has performed a code scanning action, and the person's posture score g is calculated based on the person's elbow coordinates (xe1, ye1), (xe2, ye2) and wrist coordinates (xa1, ya1), (xa2, ya2) z Details are given below.
[0107] S205: Determine whether the person has performed the code scanning behavior based on the relationship between the number of frames in which the code scanning action appears in the multiple frames of images in which the code scanning action begins and an eighth preset threshold.
[0108] Specifically, in the embodiment of the present application, when a code scanning action occurs in the n1th frame of the video, the number of frames m1 in which the code scanning action occurs in N1 consecutive frames starting from the n1th frame is obtained;
[0109] when Yes, it is determined that the person has scanned the code; wherein, ts8 is the eighth preset threshold.
[0110] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, the person orientation score g is calculated according to the coordinates of the QR code area (x0, y0, w0, h0), the center coordinates of the head of the face (x1, y1), the eye coordinates (x2, y2), (x3, y3) and the nose coordinates (x4, y4). d It is calculated by the following formula:
[0111] g d =max(g1 d , g2 d )
[0112] in
[0113]
[0114]
[0115] x00=x0+0.5w0
[0116] y00=y0+0.5h0
[0117]
[0118]
[0119] Calculate the person's posture score g based on the person's elbow coordinates (xe1, ye1), (xe2, ye2) and wrist coordinates (xa1, ya1), (xa2, ya2) z It is calculated by the following formula:
[0120] g z =max(g1 z , g2 z )
[0121] in
[0122] g1 z =g11 z g12 z
[0123]
[0124]
[0125]
[0126]
[0127] A1=y00-y1
[0128] B1=x1-x00
[0129] C1=x00y1-y00x1
[0130] When (xe1, ye1), (xa1, ya1) do not all exist, g1 z =0
[0131] g2 z =g21 z g22 z
[0132]
[0133]
[0134]
[0135]
[0136] When (xe2, ye2), (xa2, ya2) do not all exist, g2 z =0,
[0137] ts3 is a preset third preset threshold, ts4 is a preset fourth preset threshold, ts5 is a preset fifth preset threshold, and ts6 is a preset sixth preset threshold.
[0138] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, judging whether a person has plugged or unplugged a charging pile includes:
[0139] Mark the coordinates of the power socket area in the monitoring area and obtain the coordinates of the personnel's wrist;
[0140] Specifically, in the embodiment of the present application, the coordinates of the power socket area in the monitoring area are marked (x7, y7, w7, h7), where (x7, y7) are the left vertex coordinates of the power socket area, w7 is the width of the power socket area, and h7 is the height of the power socket area; the wrist coordinates of the person are obtained (xa1, ya1), (xa2, ya2).
[0141] The charging action score is determined based on the power socket area coordinates and the person's wrist coordinates.
[0142] Specifically, in the embodiment of the present application, the charging action score g is determined according to the power socket area coordinates (x7, y7, w7, h7) and the wrist coordinates (xa1, ya1), (xa2, ya2) of the person. c The steps are described in detail below.
[0143] Determine the difference between the charging action score and the eleventh preset threshold value. If the judgment result is that the charging action score is greater than the eleventh preset threshold value, it is determined that the person has a charging action.
[0144] Specifically, in the embodiment of the present application, when the charging action score g c >ts 11 When ts 11 The eleventh preset threshold is set to determine whether the person is performing charging action.
[0145] Whether the person has plugged or unplugged the power supply is determined according to the relationship between the number of frames in which the charging action appears in the multi-frame images where the charging action begins and the twelfth preset threshold.
[0146] Specifically, in the embodiment of the present application, when a charging action occurs in the n2th frame of the video, the number of frames m2 in which the charging action occurs in N2 consecutive frames starting from the n2th frame is obtained;
[0147] when When ts 12 The twelfth preset threshold is set to determine whether a person has plugged or unplugged the power cord.
[0148] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, the charging action score g is determined according to the power socket area coordinates (x7, y7, w7, h7) and the wrist coordinates (xa1, ya1), (xa2, ya2) of the person. c , is calculated by the following formula:
[0149]
[0150] Among them, ts9 is the ninth preset threshold, ts 10 is the preset tenth preset threshold;
[0151]
[0152]
[0153] When (xa1, ya1) does not exist, g1 c =ts 10 , (xa2, ya2) does not exist, g2 c =ts 10 .
[0154] Furthermore, in the above-mentioned abnormal use detection method of a charging pile, whether the suspected abnormal use of the charging pile occurs is determined according to the number of code scanning behaviors m3 within the preset time period t1 and the number of plugging and unplugging behaviors m4 within the preset time period t1, which is determined by the following formula:
[0155] when hour,
[0156] where ts 13 The thirteenth preset threshold value, ts 14 The fourteenth preset threshold is set to determine that the charging pile is suspected of abnormal use;
[0157] when Yes, it is confirmed that there is no suspected abnormal use of the charging piles.
[0158] Furthermore, in the above-mentioned method for detecting abnormal use of a charging pile, if the result of the determination is that the charging pile is suspected to be in abnormal use, determining the number of current mutation points includes:
[0159] The current signal within the preset time period t1 is obtained. The time interval between each detection point is t2. For the current I i , where i is the serial number of the detection point, and the current values of N3 consecutive detection points starting from detection point i are obtained to form a set {I i}, calculate the current difference score g r
[0160] g r =max({I i})-min({I i})
[0161] When the g r >ts 15 When ts 15 The fifteenth preset threshold is set, and the detection point i is determined to be a mutation point, and the number of mutation points m5 is counted;
[0162] According to the time interval t2 of each current mutation point and the number m5 of current mutation points within the preset time period t1, it is determined whether there is abnormal use behavior of the charging pile, which is determined by the following formula:
[0163] when Yes, it is confirmed that there is abnormal use of charging piles;
[0164] Among them, ts 16 The sixteenth preset threshold is set.
[0165] Specifically, in the embodiment of the present application, the last N3 point in the current signal is directly determined to be a non-mutation point.
[0166] In a second aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
[0167] The processor is used to execute the method for detecting abnormal use of a charging pile as described in any one of the above items by calling the program or instruction stored in the memory.
[0168] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute the method for detecting abnormal use of a charging pile as described in any one of the above.
[0169] Figure 3 It is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure.
[0170] like Figure 3 As shown, the electronic device includes: at least one processor 301, at least one memory 302 and at least one communication interface 303. The various components in the electronic device are coupled together through a bus system 304. The communication interface 303 is used to transmit information between external devices. It can be understood that the bus system 304 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 304 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 3 Various buses are labeled as bus system 304 .
[0171] It can be understood that the memory 302 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
[0172] In some implementations, the memory 302 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.
[0173] Among them, the operating system includes various system programs, such as the framework layer, the core library layer, the driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. A program that implements any method of the abnormal use detection method of a charging pile provided in an embodiment of the present application can be included in the application program.
[0174] In an embodiment of the present application, the processor 301 calls a program or instruction stored in the memory 302, specifically, a program or instruction stored in an application, and the processor 301 is used to execute the steps of each embodiment of a charging pile abnormal use detection method provided in an embodiment of the present application.
[0175] When there is a vehicle in the monitoring area, the vehicle is marked;
[0176] Detect whether there is a person in the monitoring area. When there are both marked vehicles and persons in the monitoring area, determine whether there is a person or vehicle stopping behavior based on the continuous multi-frame images of the monitoring area. If the determination result is that the person or vehicle is stopping behavior;
[0177] Determine whether the person has scanned the code and plugged in or unplugged the power supply. If the result of the determination is that the person has scanned the code and plugged in or unplugged the power supply, count the number of code scanning behaviors within a preset time period and the number of plugging in or unplugging behaviors within a preset time period respectively;
[0178] Determine whether the charging pile is suspected of abnormal use according to the number of code scanning behaviors and the number of plugging and unplugging behaviors within the preset time period. If the result is that the charging pile is suspected of abnormal use, determine the number of current mutation points;
[0179] Determine whether there is abnormal usage of the charging pile based on the time interval of each current mutation point and the number of current mutation points within the preset time period. If the determination result is that there is abnormal usage of the charging pile, send an early warning message to the management office.
[0180] Any method in the abnormal use detection method of a charging pile provided in an embodiment of the present application can be applied to the processor 301, or implemented by the processor 301. The processor 301 can be an integrated circuit chip with signal capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 301 or instructions in the form of software. The above-mentioned device 301 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional device, etc.
[0181] The steps of any method in the abnormal use detection method of a charging pile provided in an embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302, and completes the steps of a method for detecting abnormal use of a charging pile in combination with its hardware.
[0182] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present application and to form different embodiments.
[0183] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0184] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for detecting abnormal use of a charging pile, characterized in that: include: When there is a vehicle in the monitoring area, the vehicle is marked; Detect whether there is a person in the monitoring area. When there are both marked vehicles and persons in the monitoring area, determine whether there is a person or vehicle stopping behavior based on the continuous multi-frame images of the monitoring area. If the determination result is that the person or vehicle is stopping behavior; Determine whether the person has scanned the code and plugged in or unplugged the power supply. If the result of the determination is that the person has scanned the code and plugged in or unplugged the power supply, count the number of code scanning behaviors within a preset time period and the number of plugging in or unplugging behaviors within a preset time period respectively; Determine whether the charging pile is suspected of abnormal use according to the number of code scanning behaviors and the number of plugging and unplugging behaviors within the preset time period. If the result is that the charging pile is suspected of abnormal use, determine the number of current mutation points; Determine whether there is abnormal use of the charging pile according to the time interval and the number of current mutation points of each current mutation point within the preset time period, and if the determination result is that there is abnormal use of the charging pile, send an early warning message to the management office; Determine whether a person has scanned a code, including: Mark the coordinates of the QR code area in the monitoring area, and obtain the head center coordinates, eye coordinates and nose coordinates of the face; Calculating a person orientation score according to the coordinates of the QR code area, the center coordinates of the head of the face, the eye coordinates, and the nose coordinates; Determine the difference between the personnel orientation score and a second preset threshold; If the judgment result is that the person orientation score is greater than the second preset threshold, then determining the person orientation QR code; Obtaining the elbow coordinates and wrist coordinates of the person, and calculating the posture score of the person according to the elbow coordinates and the wrist coordinates of the person; If the person's posture score is greater than a seventh preset threshold, it is determined that the person has performed a code scanning action; Determining whether the person has performed a code scanning behavior according to a relationship between the number of frames in which the code scanning behavior appears in the multiple frames of images in which the code scanning behavior begins and an eighth preset threshold; Determine whether the person has plugged or unplugged the power supply, including: Mark the coordinates of the power socket area in the monitoring area and obtain the coordinates of the wrist of the person; Determine a charging action score according to the power socket area coordinates and the personnel wrist coordinates; Determining a value between the charging action score and the eleventh preset threshold; If the judgment result is that the charging action score is greater than the eleventh preset threshold, it is determined that the person has a charging action; Whether the person has plugged or unplugged the power supply is determined according to the relationship between the number of frames in which the charging action appears in the multi-frame images where the charging action begins and the twelfth preset threshold.
2. A method for detecting abnormal use of a charging pile according to claim 1, characterized in that: The determining whether there is a person or vehicle stopping behavior based on multiple frames of images in the monitoring area includes: When there are both marked vehicles and people in the monitoring area, determining the current frame image as an image to be inspected; When the number of images to be inspected in the continuous multiple-frame images of the monitoring area is greater than a first preset threshold, it is determined that there is a stop behavior of people and vehicles.
3. A method for detecting abnormal use of a charging pile according to claim 1, characterized in that: According to the coordinates of the QR code area , the head center coordinates of the face , Eye coordinates , and nose coordinates Calculate the person's orientation score It is calculated by the following formula: ; in ; ; ; ; ; ; According to the elbow coordinates of the person and wrist coordinates Calculate the person's posture score It is calculated by the following formula: ; in ; ; ; ; ; ; ; ; when , When not all exists, ; ; ; ; ; ; when , When not all exists, , is a preset third preset threshold, is a preset fourth preset threshold, is a preset fifth preset threshold, It is a preset sixth preset threshold.
4. A method for detecting abnormal use of a charging pile according to claim 1, characterized in that: The power socket area coordinates and the wrist coordinates of the person Determine the charging action score , is calculated by the following formula: ; in, is the preset ninth preset threshold, is the preset tenth preset threshold; ; ; When it does not exist, When it does not exist, .
5. A method for detecting abnormal use of a charging pile according to claim 1, characterized in that: According to the preset time period Number of internal code scanning behaviors and within a preset time period Number of plugging and unplugging operations Whether there is suspected abnormal use of the charging pile is determined by the following formula: when , hour, where ts 13 The thirteenth preset threshold value, ts 14 The fourteenth preset threshold is set to determine that the charging pile is suspected of abnormal use; when , When checking, make sure there is no suspected abnormal use of the charging pile.
6. A method for detecting abnormal use of a charging pile according to claim 1, characterized in that: If the determination result is that the charging pile is suspected of abnormal use, the number of current mutation points is determined, including: Get the preset time period The current signal within the detector is , for the current at any detection point , where i is the serial number of the detection point, and the continuous The current values of the detection points form a set { }, calculate the current difference score ; When the When ts 15 The fifteenth preset threshold is set, and the detection point i is determined to be a mutation point, and the number of mutation points is counted ; According to the preset time period The time interval of each current mutation point and the number of current mutation points Whether there is abnormal use of the charging pile is determined by the following formula: when When the charging pile is abnormally used, it is determined that there is abnormal use of the charging pile; Among them, ts 16 The sixteenth preset threshold is set.
7. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the method for detecting abnormal use of a charging pile as described in any one of claims 1 to 6 by calling the program or instruction stored in the memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute a method for detecting abnormal use of a charging pile as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Electric vehicle charging method and device based on two-dimensional code
CN106740210A
Event detection method, apparatus, electronic device, and storage medium
WO2022105243A1