A method for managing gates in unattended parking lots

By collecting gate images through pre-trained target recognition models and cameras, the waiting time and initial area are generated, which solves the accuracy problem of manual management of automatic gates, realizes unattended gate status detection and management, and improves management efficiency.

CN118379689BActive Publication Date: 2024-08-27CHENGDU YIBO INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410842019.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-27
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

The existing technology relies on manual management of automatic gates, and there are problems such as loose and worn identification tags and inaccurate human judgment, which affects the normal operation of unattended parking lots.

Method used

The pre-trained target recognition model is used in combination with the camera to collect gate images, and the waiting time and initial area are generated. Unattended gate status detection is realized through contour extraction and angle judgment, and maintenance personnel are automatically notified.

Benefits of technology

It achieves accurate and reliable judgment on the status of the barrier gate, reduces the dependence on manual inspection and judgment, improves management efficiency, and is suitable for various types of barrier gates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379689B
    Figure CN118379689B
Patent Text Reader

Abstract

The present invention discloses a method for managing a barrier gate in an unattended parking lot, and relates to the technical field of parking lot management, and includes the following steps: pre-training a target recognition model M1 for identifying a barrier gate in an image; arranging a camera facing the barrier gate at the unattended parking lot for collecting barrier gate images and barrier gate videos, and establishing a coordinate system based on the imaging area; generating a waiting time, marking an initial area and an initial contour; presetting a patrol interval, and performing a barrier gate inspection once each patrol interval, and notifying maintenance personnel if the damage is minor; and suspending the use of the barrier gate and notifying maintenance personnel if the damage is serious. The present invention is applicable to barriers of the same type, does not rely on external objects such as identification tags, directly identifies the barrier gate, obtains the center point and the outer contour, and the recognition result is more accurate, and does not require manual inspection and judgment at all, which can improve the inspection efficiency and realize completely unattended parking lot management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of parking lot management, and in particular to a method for managing a barrier gate in an unattended parking lot. Background Art

[0002] Automatic barriers are an important part of intelligent parking lots, including barriers and control units. The control unit sends commands to control the opening and closing of the barriers to control vehicles entering and leaving. The commands of the control unit include lifting and lowering commands. If there is a problem with the barriers, timely maintenance is required, otherwise the normal operation of the entire parking lot will be affected.

[0003] At present, the management of the barrier gate mainly relies on manual work. For example, identification labels (reflective strips, identification codes, etc.) are manually pasted on the barrier gate, and the status of the barrier gate, including fully closed, fully open, and in the process of switching, is determined by reading the identification labels. However, the identification labels are prone to loosening, falling off, wearing, shifting, etc., which will affect the recognition results. Another example is management through security patrols. However, this method does not conform to the development trend of unmanned parking lots. At the same time, relying on the judgment of security guards is not only prone to inaccurate judgments due to personal expertise, but also leads to a waste of manpower. Summary of the invention

[0004] The purpose of the present invention is to provide a method for managing an unmanned parking lot barrier gate which solves the above-mentioned problems, does not rely on on-site manpower, accurately and reliably judges the status of the barrier gate, and facilitates effective management of the barrier gate.

[0005] In order to achieve the above-mentioned object, the technical solution adopted by the present invention is as follows: a method for managing an unattended parking lot barrier gate is applied to an automatic barrier gate, wherein the automatic barrier gate includes a barrier gate and a control unit, wherein the control unit is used to issue instructions to control the barrier gate action, wherein the instructions include a bar lifting instruction and a bar lowering instruction, and comprises the following steps;

[0006] S1, a pre-trained target recognition model M1, is used to identify the gate in the image;

[0007] S2, a camera is placed facing the barrier at the unattended parking lot to collect barrier images and barrier videos. When the barrier is completely closed or fully opened, it can be completely located in the imaging area of ​​the camera, and a coordinate system is established based on the imaging area;

[0008] S3, generating a waiting time, marking an initial area and an initial contour, including steps S31 to S35;

[0009] S31, collecting the video of the barrier gate when the barrier gate is instructed to drop, obtaining the barrier gate drop time T1, and generating the waiting time T2=T1+Δt, where Δt is a preset time increment, and the barrier gate drop time is the time required for the barrier gate to be fully opened and fully closed;

[0010] S32, acquiring an image of the gate in a fully closed state to form a data set D1;

[0011] S33, for each barrier gate image in D1, use M1 to identify the barrier gate, extract the contour of the barrier gate to obtain the outer contour, and obtain the coordinates of the center point of the barrier gate based on the outer contour;

[0012] S34, marking the center positions of all the center points as the initial point, and marking a circular area with the initial point as the center and a radius of d as the initial area;

[0013] S35, finding the gate image corresponding to the center point closest to the initial point, and marking the outer contour of the gate with the initial contour;

[0014] S4, preset patrol interval, perform a gate inspection once every patrol interval, wherein one inspection includes steps S41 to S45,

[0015] S41, obtain the last instruction and instruction time of the control unit. If the last instruction is a rod drop instruction, the instruction time is T Last , and T Last If the current time length is greater than T2, then execute S42, otherwise do not process and repeat S41 at the next sampling interval;

[0016] S42, obtaining the barrier image x at the current moment, and using M1 to perform barrier recognition;

[0017] If the barrier is not identified, the barrier in this detection will be marked as severely damaged;

[0018] If the exit gate G is identified x , extract its outer contour K x and the center point coordinates P x ;

[0019] S43, if P x If it is in the initial area, the gate in this test is marked as normal;

[0020] If P x Not in the initial region, calculate K x Angle α with the initial contour;

[0021] S44, and marking the gate in this detection according to the angle;

[0022] If α < 5°, it is marked as normal;

[0023] If 5°≤α<15°, it is marked as slight damage;

[0024] If α>15°, it is marked as severe damage;

[0025] S45: If the damage is minor, notify the maintenance personnel; if the damage is serious, suspend the use of the gate and notify the maintenance personnel.

[0026] Preferably, the target recognition model is the YOLOv series.

[0027] As a preferred embodiment: step S32 is specifically as follows;

[0028] Collect the gate image within the time period and find the time point corresponding to each bar drop instruction within the time period;

[0029] If the time point of a drop command is T L , and at time point T L +T2, if there is no command to lift the stick, then the time point T L The barrier gate image from +T2 to the next lift command time point is added to the data set D1 as the barrier gate image in the fully closed state.

[0030] Preferably, the contour extraction is based on a contour extraction algorithm of edge detection, including Sobel, Canny, Deriche1, Deriche2, Lanser1, Lanser2 and Shen algorithms.

[0031] Preferably, the radius d is 2 mm-4 mm.

[0032] As a preferred embodiment: in S42, when acquiring the gate image x and using M1 to perform gate recognition;

[0033] First, continuously acquire m gate images x1~x m Construct image set D x , where x1 is the current moment,

[0034] Use M1 to identify x1. If a barrier is identified, use x1 as the barrier image x.

[0035] If the barrier is not identified, identify x2~x in sequence m If one of the gate images recognizes a gate, it is used as the gate image x. If neither of the gate images recognizes a gate, x1 is used as the gate image x.

[0036] As a preference: the instructions and instruction time of the control unit are acquired by the instruction acquisition unit.

[0037] Compared with the prior art, the advantages of the present invention are:

[0038] The present invention proposes a new method for identifying and managing the status of a barrier gate. The method makes a judgment based on the barrier gate in a fully closed state, combines target recognition, contour extraction and other methods, first marks the initial area and initial contour of the barrier gate in a fully closed state, and uses this as a criterion for determining whether the barrier gate is normal during the subsequent patrol process. The present invention generates a waiting time based on the length of time the barrier gate drops during the actual closing process, which is used to determine the subsequent time nodes, ensuring that the barrier gate images constituting the data set D1 all correspond to barrier gate images in a fully closed state, and that the barrier gate images collected during the patrol are all barrier gate images in a closed state.

[0039] The present invention is applicable to various types of barriers, does not rely on external objects such as identification tags, directly identifies the barriers, obtains the center point and the outer contour, and has more accurate identification results. It also does not require manual inspection and judgment, thus improving inspection efficiency and realizing completely unmanned parking lot management. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described below in conjunction with the accompanying drawings.

[0042] Example 1: See Figure 1 , a barrier gate management method for an unattended parking lot, applied to an automatic barrier gate, the automatic barrier gate comprising a barrier gate and a control unit, the control unit being used to issue instructions to control the barrier gate action, the instructions comprising a bar lifting instruction and a bar lowering instruction, comprising the following steps;

[0043] S1, a pre-trained target recognition model M1, is used to identify the gate in the image;

[0044] S2: A camera is placed facing the barrier at the unattended parking lot to collect barrier images and barrier videos. When the barrier is completely closed or fully opened, it is completely located in the imaging area of ​​the camera, and a coordinate system is established based on the imaging area.

[0045] S3, generating a waiting time, marking an initial area and an initial contour, including steps S31 to S35;

[0046] S31, collecting the video of the barrier gate when the barrier gate is instructed to drop, obtaining the barrier gate drop time T1, and generating the waiting time T2=T1+Δt, where Δt is a preset time increment, and the barrier gate drop time is the time required for the barrier gate to be fully opened and fully closed;

[0047] S32, acquiring a large number of images of the gate in a fully closed state to form a data set D1;

[0048] S33, for each barrier gate image in D1, use M1 to identify the barrier gate, extract the contour of the barrier gate to obtain the outer contour, and obtain the coordinates of the center point of the barrier gate based on the outer contour;

[0049] S34, marking the center positions of all the center points as the initial point, and marking a circular area with the initial point as the center and a radius of d as the initial area;

[0050] S35, finding the gate image corresponding to the center point closest to the initial point, and marking the outer contour of the gate with the initial contour;

[0051] S4, preset patrol interval, perform a gate inspection once every patrol interval, wherein one inspection includes steps S41 to S45,

[0052] S41, obtain the last instruction and instruction time of the control unit. If the last instruction is a rod drop instruction, the instruction time is T Last , and T Last If the current time length is greater than T2, then execute S42, otherwise do not process and repeat S41 at the next sampling interval;

[0053] S42, obtaining the barrier image x at the current moment, and using M1 to perform barrier recognition;

[0054] If the barrier is not identified, the barrier in this detection will be marked as severely damaged;

[0055] If the exit gate G is identified x , extract its outer contour K x and the center point coordinates P x ;

[0056] S43, if P x If it is in the initial area, the gate in this test is marked as normal;

[0057] If P x Not in the initial region, calculate K x Angle α with the initial contour;

[0058] S44, and marking the gate in this detection according to the angle;

[0059] If α < 5°, it is marked as normal;

[0060] If 5°≤α<15°, it is marked as slight damage;

[0061] If α>15°, it is marked as severe damage;

[0062] S45: If the damage is minor, notify the maintenance personnel; if the damage is serious, suspend the use of the gate and notify the maintenance personnel.

[0063] Since the time for the gate to drop may be different for different types and lengths, generally 3-5 seconds, this embodiment first obtains the time T1 for the gate to drop determined by S31, assuming that it is 4 seconds in this embodiment, and then generates the waiting time T2 according to the preset time increment Δt, Δt can be preset based on experience, generally 1-2 seconds, if in this embodiment, Δt=1 second, then T2=4+1=5 seconds. T2 is to ensure that the gate image collected must be in the state after the gate is completely closed.

[0064] In addition, in this embodiment, the radius d is 2mm-4mm; its purpose is to take into account the slight errors that exist after the gate rod is lowered each time it is closed, so as to improve the fault tolerance rate.

[0065] Example 2: See Figure 1 Based on Example 1, we further refine the solution:

[0066] The target recognition model is a YOLOv series, such as YOLOv5 and YOLOv8. During pre-training, a large number of barrier gate images containing barrier gates are obtained, first manually marked to form a training data set, and then trained with the target recognition model, and the generated model has the ability to recognize the barrier gates in the image.

[0067] Step S32 is to acquire a large number of barrier gate images in a fully closed state to form a data set D1. This step is specifically implemented in the following manner:

[0068] A large number of barrier gate images are collected within a time period, and the time point corresponding to each bar-dropping instruction within the time period is found; if the time point of a bar-dropping instruction is T L , and at time point T L +T2, if there is no command to lift the stick, then the time point T L The barrier gate image from +T2 to the next lift command time point is added to the data set D1 as the barrier gate image in the fully closed state.

[0069] For example, the parking lot has relatively little traffic at midnight, and there are relatively few barrier lifting commands. Most of the barriers are in a static state after the barrier lowering command. Therefore, we select the time period from 0:00 to 2:00 on a certain day to collect a large number of barrier images. If a car passes through the automatic barrier during this time period, a barrier lifting command and a barrier lowering command will be generated. The time point corresponding to each barrier lowering command in this time period is obtained. Assume that the time point T of one of the barrier lowering commands is L The time at which the barrier is lifted is 00:30:29, and the next barrier lifting instruction immediately following the instruction is 00:49:50. In Example 1, T2=5s, and the barrier images collected between 00:30:34 and 00:49:50 are added to the data set D1.

[0070] In this embodiment, the contour extraction is based on the contour extraction algorithm of edge detection, including Sobel, Canny, Deriche1, Deriche2, Lanser1, Lanser2 and Shen algorithms. After the gate is identified by M1, the contour extraction algorithm is used to perform edge detection, generate the outer contour, and then extract the center point based on the outer contour. There are many methods for extracting the center point based on the outer contour, for example: the method based on the moment, the principle of which is that the moment is the basic tool for describing the shape and size of the object in the image. By calculating the moment of the contour, especially the zero-order moment and the first-order moment, the center point of the contour can be derived. For another example, the method based on boundary tracking, the principle is that starting from a boundary point of the contour, according to a certain strategy (such as clockwise or counterclockwise) to search for the next boundary point until the search point coincides with the initial point, thereby completing the contour tracking. During the tracking process, the centroid of the contour or other center point indicators can be calculated. There are also some more complex algorithms, such as methods based on ellipse fitting, methods based on polygon fitting, etc., which can extract the center point by fitting the shape of the contour. In addition, deep learning technology can also be used to extract the center point of the contour by training the neural network model to learn the mapping relationship from the contour to the center point.

[0071] In S42, when the gate image x is acquired and the gate recognition is performed using M1;

[0072] First, continuously acquire m gate images x1~x m Construct image set D x , where x1 is the current moment,

[0073] Use M1 to identify x1. If a barrier is identified, use x1 as the barrier image x.

[0074] If the barrier is not identified, identify x2~x in sequence m If one of the gate images recognizes a gate, it is used as the gate image x. If neither of them recognizes a gate, x1 is used as the gate image x. Due to the shooting environment, target recognition algorithm, and other reasons, there may be a problem that the gate is not effectively recognized. Here, the image set D is used. x The method described in S42 can avoid the above defects as much as possible.

[0075] The instructions and instruction time of the control unit are acquired by the instruction acquisition unit. The acquisition unit reads the instructions of the control unit and sends them to the system that executes the method of the present invention.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for managing barriers in an unattended parking lot, applied to an automatic barrier, wherein the automatic barrier comprises a barrier and a control unit, wherein the control unit is used to issue instructions to control the action of the barrier, wherein the instructions include a bar lifting instruction and a bar lowering instruction, and wherein: The steps include: S1, a pre-trained target recognition model M1, is used to identify the gate in the image; S2, a camera is placed facing the barrier at the unattended parking lot to collect barrier images and barrier videos. When the barrier is completely closed or fully opened, it can be completely located in the imaging area of ​​the camera, and a coordinate system is established based on the imaging area; S3, generating a waiting time, marking an initial area and an initial contour, including steps S31 to S35; S31, collecting the video of the barrier gate when the barrier gate is instructed to drop, obtaining the barrier gate drop time T1, and generating the waiting time T2=T1+Δt, where Δt is a preset time increment, and the barrier gate drop time is the time required for the barrier gate to be fully opened and fully closed; S32, acquiring an image of the gate in a fully closed state to form a data set D1; S33, for each barrier gate image in D1, use M1 to identify the barrier gate, extract the contour of the barrier gate to obtain the outer contour, and obtain the coordinates of the center point of the barrier gate based on the outer contour; S34, marking the center positions of all the center points as the initial point, and marking a circular area with the initial point as the center and a radius of d as the initial area; S35, finding the gate image corresponding to the center point closest to the initial point, and marking the outer contour of the gate with the initial contour; S4, preset patrol interval, perform a gate inspection once every patrol interval, wherein one inspection includes steps S41 to S45, S41, obtain the last instruction and instruction time of the control unit. If the last instruction is a rod drop instruction, the instruction time is T Last , and T Last If the current time length is greater than T2, then execute S42, otherwise do not process and repeat S41 at the next sampling interval; S42, obtaining the barrier image x at the current moment, and using M1 to perform barrier recognition; If the barrier is not identified, the barrier in this detection will be marked as severely damaged; If the exit gate G is identified x , extract its outer contour K x and the center point coordinates P x ; S43, if P x If it is in the initial area, the gate in this test is marked as normal; If P x Not in the initial region, calculate K x Angle α with the initial contour; S44, and marking the gate in this detection according to the angle; If α < 5°, it is marked as normal; If 5°≤α<15°, it is marked as slight damage; If α>15°, it is marked as severe damage; S45: If the damage is minor, notify the maintenance personnel; if the damage is serious, suspend the use of the gate and notify the maintenance personnel.

2. The unattended parking lot gate management method according to claim 1 is characterized by: The target recognition model is the YOLOv series.

3. The unmanned parking lot gate management method according to claim 1 is characterized by: Step S32 is specifically as follows: Collect the gate image within the time period and find the time point corresponding to each bar drop instruction within the time period; If the time point of a drop command is T L , and at time point T L +T2, if there is no command to lift the stick, then the time point T L The barrier gate image from +T2 to the next lift command time point is added to the data set D1 as the barrier gate image in the fully closed state.

4. The unmanned parking lot gate management method according to claim 1 is characterized by: The contour extraction is based on a contour extraction algorithm of edge detection, including Sobel, Canny, Deriche1, Deriche2, Lanser1, Lanser2 and Shen algorithms.

5. The unmanned parking lot gate management method according to claim 1 is characterized by: The radius d is 2mm-4mm.

6. The unmanned parking lot gate management method according to claim 1 is characterized by: In S42, when the gate image x is acquired and the gate recognition is performed using M1; First, continuously acquire m gate images x1~x m Construct image set D x , where x1 is the current moment, Use M1 to identify x1. If a barrier is identified, use x1 as the barrier image x. If the barrier is not recognized, identify x2~x in sequence m If one of the gate images recognizes a gate, it is used as the gate image x. If neither of the gate images recognizes a gate, x1 is used as the gate image x.

7. The unmanned parking lot gate management method according to claim 1 is characterized by: The instructions and instruction time of the control unit are obtained by the instruction acquisition unit.