Disclosure of Invention
The invention mainly aims to provide a leakage-proof charging method for a roadside parking device, the roadside parking device and a computer readable storage medium, and aims to solve the problem that the existing roadside parking device method is easy to cause the leakage of charging.
In order to achieve the above object, the present invention provides a leakage-proof charging method for a roadside parking apparatus, including:
after detecting that the automobile drives into a parking space corresponding to the roadside parking equipment, acquiring a license plate number of the automobile and starting charging;
when an object is sensed to move in the parking space, detecting whether the object completes the movement action;
when the object finishes moving, acquiring an original image of the parking space, and identifying license plate information in the original image, so that when the license plate information is empty or the license plate information is not matched with the license plate number, charging is suspended;
after charging is suspended, if an object is induced to leave the parking space, a new image of the parking space is obtained, and when license plate information in the new image is matched with the license plate number, the accumulated parking duration of the automobile is updated according to the time for starting charging.
Optionally, before the step of acquiring the original image of the parking space, the method further includes:
when the object finishes moving, radar ranging distances respectively corresponding to the object and the automobile are obtained;
when the difference between the radar ranging distance of the object and the radar ranging distance of the automobile is larger than or equal to a preset value, executing the following steps: and acquiring an original image of the parking space.
Optionally, after the step of acquiring the new image of the parking space, the method further includes:
and when the license plate information in the new image is not matched with the license plate number, acquiring the accumulated parking time of the automobile according to the time of starting and stopping charging.
Optionally, the method further comprises:
when a vehicle exists in the original image, identifying characteristic parameters of the vehicle in the original image and acquiring the characteristic parameters of the vehicle;
and when the characteristic parameters of the vehicle are identified to be matched with the characteristic parameters of the automobile, continuing charging.
Optionally, the characteristic parameters include a color of the vehicle, a model of the vehicle, and a characteristic identification.
Optionally, the method further comprises:
after the charging is suspended, receiving a driving image sent by a public operation vehicle when the meeting distance between the public operation vehicle and the parking space is smaller than a preset range, and analyzing the driving image;
and when the analyzed image frame comprises the license plate number, continuously carrying out parking charging on the automobile.
Optionally, the method further comprises:
and after the charging is suspended, sending reminding information to the data acquisition equipment.
To achieve the above object, the present invention also provides a roadside parking apparatus including:
the detection module is used for acquiring the license plate number of the automobile and starting charging after detecting that the automobile drives into the parking space corresponding to the roadside parking equipment;
the recognition module is used for sensing whether the object completes the movement action or not when the object is sensed to move in the parking space;
the charging module is used for acquiring an original image of the parking space when the object finishes moving action, identifying license plate information in the original image and suspending charging when the license plate information is empty or the license plate information is not matched with the license plate number;
and the acquisition module is used for acquiring a new image of the parking space after the charging is suspended and if an object is sensed to leave the parking space, so that when the license plate information in the new image is matched with the license plate number, the accumulated parking time of the automobile is updated according to the charging starting time.
To achieve the above object, the present invention also provides a roadside parking apparatus including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the leakage prevention billing method for a roadside parking apparatus as described above.
To achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the antileak charging method for a roadside parking apparatus as described above.
The invention provides a leakage-proof charging method of a roadside parking device, the roadside parking device and a computer readable storage medium, wherein when the license plate information of a vehicle is identified to be empty or not matched with the license plate number of the vehicle, the charging is suspended; after charging is suspended, if an object is induced to leave the parking space, a new image of the parking space is obtained, and when license plate information in the new image is matched with the license plate number, the accumulated parking duration of the automobile is updated according to the time for starting charging. After charging is suspended, when a vehicle or an obstacle possibly leaves the parking space, the parking space image is obtained again, and then the license plate information is compared according to the image, the vehicle is determined to be still in the parking space, and then the accumulated parking time is continuously updated, so that the problem that charging is easily missed by the conventional roadside parking equipment method is solved, and the loss of a parking space manager is reduced.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a roadside parking device, and the roadside parking device can be a low-level radar video device or a high-level camera. Of course, the terminal in the embodiment of the invention can also be a control chip of a roadside parking device, is used for preventing the vehicle from being parked and charging without charge, and can also be a system formed by a low-level radar video device and a high-level camera.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface (e.g., USB interface, Type-C interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a computer program.
In the terminal shown in fig. 1, the network interface 1003 is mainly used for connecting to a backend server and performing data communication with the backend server; and the processor 1001 may be configured to invoke the computer program stored in the memory 1004 and perform the following operations:
after detecting that the automobile drives into a parking space corresponding to the roadside parking equipment, acquiring a license plate number of the automobile and starting charging;
when an object is sensed to move in the parking space, detecting whether the object completes the movement action;
when the object finishes moving, acquiring an original image of the parking space, and identifying license plate information in the original image, so that when the license plate information is empty or the license plate information is not matched with the license plate number, charging is suspended;
after charging is suspended, if an object is induced to leave the parking space, a new image of the parking space is obtained, and when license plate information in the new image is matched with the license plate number, the accumulated parking duration of the automobile is updated according to the time for starting charging.
Further, the processor 1001 may call the computer program stored in the memory 1004, and further perform the following operations:
when the object finishes moving, radar ranging distances respectively corresponding to the object and the automobile are obtained;
when the difference between the radar ranging distance of the object and the radar ranging distance of the automobile is larger than or equal to a preset value, executing the following steps: and acquiring an original image of the parking space.
Further, the processor 1001 may call the computer program stored in the memory 1004, and further perform the following operations:
and when the license plate information in the new image is not matched with the license plate number, acquiring the accumulated parking time of the automobile according to the time of starting and stopping charging.
Further, the processor 1001 may call the computer program stored in the memory 1004, and further perform the following operations:
when a vehicle exists in the original image, identifying characteristic parameters of the vehicle in the original image and acquiring the characteristic parameters of the vehicle;
and when the characteristic parameters of the vehicle are identified to be matched with the characteristic parameters of the automobile, continuing charging.
Further, the characteristic parameters in the computer program stored in the memory 1004 include the color of the vehicle, the model of the vehicle, and the characteristic identification.
Further, the processor 1001 may call the computer program stored in the memory 1004, and further perform the following operations:
after the charging is suspended, receiving a driving image sent by a public operation vehicle when the meeting distance between the public operation vehicle and the parking space is smaller than a preset range, and analyzing the driving image;
and when the analyzed image frame comprises the license plate number, continuously carrying out parking charging on the automobile.
Further, the processor 1001 may call the computer program stored in the memory 1004, and further perform the following operations:
and after the charging is suspended, sending reminding information to the data acquisition equipment.
Based on the hardware structure, the invention provides various embodiments of the leakage-proof charging method of the roadside parking equipment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the leakage-proof charging method of the roadside parking equipment of the present invention.
In this embodiment, the leakage-proof charging method for the roadside parking equipment comprises the following steps:
step S10, after detecting that the automobile drives into the parking space corresponding to the roadside parking equipment, acquiring the license plate number of the automobile and starting charging;
the terminal of the embodiment of the invention can be a roadside parking device or a control chip in the roadside parking device and is used for charging the parked vehicles in the corresponding parking spaces and preventing the missed charging. The roadside parking device may be a low-level radar video device and/or a high-level camera, and the roadside parking device is exemplified as the low-level radar video device.
It should be noted that, for radar video equipment, usually be applicable to roadside parking stall, it sets up in the rear or the side in parking stall, and every equipment corresponds a roadside parking stall. When a car drives into a corresponding parking space, the radar detects that the car drives into the corresponding parking space, the camera of the equipment is triggered to shoot, the license plate number can be captured from the shot picture, the storage module of the equipment stores the license plate number and records the time when the license plate number corresponds to the driving-in of the car, and at the moment, the charging is started.
Step S20, when an object is sensed to move in the parking space, detecting whether the object completes the movement action;
step S30, when the object finishes moving, acquiring an original image of the parking space, and identifying license plate information in the original image, so as to suspend charging when the license plate information is empty or the license plate information is not matched with the license plate number;
after the equipment starts to charge, the radar can sense and determine whether an object moves in the range of the parking space in real time. It will be appreciated that parking spaces typically have greater coverage than automobiles, and that when radar senses movement of an object, it may be movement of a vehicle, or it may be an obstacle, such as a pedestrian/non-motor vehicle. At this time, after the object stops moving, the original image is shot by means of the camera of the device, and the information in the original image is identified by the processor of the device so as to read the license plate information in the original image. The license plate information can be an image of a license plate, or can be all license plate numbers converted from the image into characters, or can be part of numbers which can be identified and distinguished in the license plate numbers. It should be noted that, when the recognition result is: and when the license plate number does not exist in the original image, the license plate information is empty.
After the license plate information is obtained, the license plate number of the automobile can be matched with the license plate information, when the license plate number is consistent with the license plate information, the license plate number is matched with the license plate information, and the automobile can be continuously parked and charged. However, when the license plate number is inconsistent with the license plate information or the license plate information is empty, the license plate number is not matched with the license plate information, a pedestrian or a non-motor vehicle possibly approaches to the vehicle, the license plate of the vehicle is shielded, particularly for the situation that the license plate number is inconsistent, the license plate number of the non-motor vehicle which is temporarily parked and collected by the low-order radar video equipment possibly is collected, and for the situation that the license plate information is not matched, the processor firstly stops temporarily to charge the parking of the vehicle.
In the original image recognition, the image is mainly analyzed to obtain license plate information. On the basis, when the vehicle exists in the original image, the characteristic parameters of the vehicle can be further obtained through image recognition, the characteristic parameters comprise the color of the vehicle, the vehicle type and the characteristic identification, and the characteristic identification can be the scratch mark of the vehicle and/or the decoration mark of the vehicle. The decorative mark can be at least one of a luggage rack, a tail wing and a decorative car sticker, and the collision mark refers to a car body damage mark caused by scraping and the like in the using process of a car.
Step S40, after the charging is suspended, if an object is induced to leave the parking space, a new image of the parking space is obtained, and when the license plate information in the new image is matched with the license plate number, the accumulated parking time of the automobile is updated according to the charging starting time.
In this embodiment, the radar may be used to continue sensing the parking space after the charging is suspended. It can be understood that whether the vehicle is driven out of the parking space or the pedestrian/non-motor vehicle covering the license plate leaves the parking area, the object is sensed by the radar to leave the parking space, and the current charging state can be changed for charging the parking. Borrow to move out the parking stall by the radar and trigger the camera and acquire the new image, this scheme triggers the camera shooting through the radar condition again and can reduce roadside parking equipment's camera and start the number of times, reduces the equipment loss.
When the acquired new image is analyzed, license plate information can be acquired from the new image, if the license plate information acquired from the new image is empty or is inconsistent with the license plate number of the automobile, the license plate information in the new image is not matched with the license plate number, namely the automobile is driven away after secondary verification in the previous parking charging, the interval duration between the starting charging and the parking charging is used as the accumulated parking duration of the automobile, and the automobile is charged for parking according to the accumulated parking duration. When the license plate information in the new image is consistent with the license plate number of the automobile, the fact that the automobile is stopped in the parking space all the time after the automobile enters the parking space is indicated, the license plate is only blocked by the interference of the barrier, and the parking time is accumulated through the time of initial starting charging, namely the time of original charging suspension is updated.
According to the scheme, after the parking is suspended, when the radar senses that the object leaves the parking space, the camera is triggered to shoot again to obtain an image to form a new image, and then whether license plate information in the new image is consistent with the license plate number of the automobile or not is compared, whether the automobile leaves the parking space or not is determined through accurate identification, the problem that the existing roadside parking equipment leaks the charging due to the fact that the license plate is shielded is solved, and the loss of a parking space manager is reduced.
Further, a second embodiment of the leakage prevention billing method of the roadside parking apparatus of the present invention is proposed based on the first embodiment of the leakage prevention billing method of the roadside parking apparatus of the present invention, and in the second embodiment, the step S30 may include:
step S31, when the object finishes moving, radar ranging distances respectively corresponding to the object and the automobile are obtained;
step S32, when the difference between the radar ranging distance of the object and the automobile is larger than or equal to a preset value, executing step S33;
and step S33, obtaining a new image of the parking space, and updating the accumulated parking time of the automobile according to the time for starting charging when the license plate information in the new image is matched with the license plate number.
In this embodiment, when the object stops moving, the opportunity for the camera to capture a new image is also defined by further measuring the difference in radar range distance between the object and the car. When the difference of the radar ranging distances is smaller than the preset value, the automobile is probably caused by slight movement of the automobile, operation is not required to be executed, and the radar continues to sense the automobile. When the difference between the radar ranging distances is larger than or equal to a preset value, the obstacle or the automobile needs to be further confirmed to move, and at the moment, the camera acquires a new image of the parking space. Alternatively, the preset value may be 2 cm. According to the scheme, the object stops moving, and the new image is obtained after the difference of the radar ranging distances meets the condition, so that the starting times of the camera are reduced, and the equipment loss is reduced.
The first embodiment of the leakage-proof charging method for a roadside parking apparatus according to the present invention proposes a third embodiment of the leakage-proof charging method for a roadside parking apparatus according to the present invention, and in this embodiment, after step S30, the method further comprises:
step S34, when a vehicle exists in the original image, identifying the characteristic parameters of the vehicle in the original image and acquiring the characteristic parameters of the vehicle;
and step S35, when the characteristic parameters of the vehicle are identified to be matched with the characteristic parameters of the automobile, continuing to charge.
According to the scheme, under the condition that the license plate information is shielded, characteristic parameters of the vehicle are obtained by identifying the original image. It should be further noted that when the vehicle drives into the parking space, the camera of the roadside parking device can capture the license plate number and obtain the characteristic parameters of the vehicle, when it is determined through the original image that the license plate information is blocked or inconsistent with the license plate number of the vehicle, the characteristic parameters of the vehicle and the characteristic parameters of the vehicle can be compared, if the license plate information is matched with the license plate number of the vehicle, the vehicle on the parking space is proved not to be driven away, and although the license plate information is not matched, the charging can be continued. By using the characteristic parameters as a second charging reference except for the license plate, the missed charging is prevented, and the accuracy of parking charging is improved.
Further, a fourth embodiment of the leakage prevention billing method of the roadside apparatus of the present invention is proposed based on the first, second or third embodiment of the leakage prevention billing method of the roadside apparatus of the present invention, which further comprises:
step S50, after the charging is suspended, receiving a driving image sent by a public operation vehicle when the meeting distance between the public operation vehicle and the parking space is smaller than a preset range, and analyzing the driving image;
and step S60, when the analyzed image frame includes the license plate number, the automobile is continuously charged for parking.
It will be appreciated that the roadside parking facility, being located at the roadside, is typically traversed by other vehicles, such as a public service vehicle which may be a bus or a taxi. The public operation vehicle is often provided with a driving recorder which can shoot images in front of the road, wherein the images comprise parking space images at two sides of the road. The method comprises the steps that vehicles are parked on a public operation vehicle and a parking space, the vehicle-meeting distance is smaller than a preset value, for example, 2-3 m, driving images within a plurality of minutes in the last time, for example, within 2 minutes can be sent to a roadside parking device through a Bluetooth/mobile network, the roadside parking device can check the driving images so as to analyze and identify license plate information of the parked vehicles on the parking space corresponding to equipment shot by the public operation vehicle, and if the license plate information is the license plate number of an automobile, charging can be continued.
It should be noted that the vehicle head and the vehicle tail are both hung with license plates, and the roadside driving equipment is arranged at the rear or the side, so that the license plates at the vehicle tail are shot. The number plate of the head of a vehicle can be shot by utilizing the meeting of public operation vehicles. According to the scheme, by means of the driving images of the public operation vehicles, more information acquisition channels are provided for the parking leakage-proof charging, and the generation of the leakage charging is reduced.
In other embodiments, after the parking charging is suspended, the reminding information can be sent to the data acquisition equipment, so that workers in the parking space management range can check the parking charging abnormity through the data acquisition equipment, and further go to the parking space to confirm according to the reminding information. The parking space management system has the advantages that manual confirmation is carried out by sending the reminding information, the abnormal parking space managed by the intelligent parking equipment can be found in time, and the normal operation of parking charging is guaranteed.
The present invention also provides a roadside parking apparatus including:
the system comprises a detection module 10, a charging module and a charging module, wherein the detection module is used for acquiring the license plate number of an automobile and starting charging after the automobile is detected to drive into a parking space corresponding to the roadside parking equipment;
the recognition module 20 is configured to, when sensing that the object in the parking space moves, detect whether the object completes a movement action;
the charging module 30 is configured to obtain an original image of the parking space when the object completes a moving action, and identify license plate information in the original image, so that when the license plate information is empty or the license plate information is not matched with the license plate number, charging is suspended;
the obtaining module 40 is configured to obtain a new image of the parking space after the charging is suspended and if an object is sensed to leave the parking space, and update the accumulated parking duration of the automobile according to the charging starting time when the license plate information in the new image is matched with the license plate number.
Optionally, the obtaining module is further configured to obtain radar ranging distances respectively corresponding to the object and the automobile when the object completes a moving action; and when the difference between the radar ranging distance of the object and the radar ranging distance of the automobile is larger than or equal to a preset value, triggering a charging module to obtain an original image of the parking space.
Optionally, the charging module is further configured to obtain the accumulated parking time of the automobile according to the time when charging is started and stopped when the license plate information in the new image is not matched with the license plate number.
Optionally, the identification module is further configured to identify a characteristic parameter of a vehicle in the original image and obtain the characteristic parameter of the vehicle when the vehicle exists in the original image; and when the characteristic parameters of the vehicle are identified to be matched with the characteristic parameters of the automobile, triggering the charging module to continue charging.
Optionally, the characteristic parameters include a color of the vehicle, a model of the vehicle, and a characteristic identification.
Optionally, the roadside parking apparatus further comprises:
the receiving module is used for receiving a driving image sent by a public operation vehicle when the meeting distance between the public operation vehicle and the parking space is smaller than a preset range after the charging is suspended, and analyzing the driving image; and when the analyzed image frame comprises the license plate number, triggering the charging module to continue to charge the parking of the automobile.
Optionally, the roadside parking apparatus further comprises:
and the sending module is used for sending the reminding information to the data acquisition equipment after the charging is suspended.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for leakproof charging of a roadside parking apparatus as claimed in any one of the above embodiments.
The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the embodiments of the above-mentioned anti-leakage charging method for roadside parking equipment, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.